Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction") translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00845/0.00845, allocations: 101.4 kB / 15.73 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0015/0.0015, allocations: 195.8 kB / 16.67 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.48/1.48, allocations: 205.1 MB / 222.5 MB, free: 4.512 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001138/0.001138, allocations: 49.89 kB / 326.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.112, allocations: 46.63 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004298/0.1163, allocations: 2.964 MB / 376.1 MB, free: 14.34 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002358/0.1187, allocations: 1.213 MB / 377.3 MB, free: 13.12 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001603/0.1189, allocations: 4 kB / 377.3 MB, free: 13.12 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005441/0.1195, allocations: 79.25 kB / 377.4 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002253/0.1197, allocations: 119 kB / 377.5 MB, free: 12.92 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000939/0.1207, allocations: 407.2 kB / 377.9 MB, free: 12.52 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008121/0.1215, allocations: 0.8036 MB / 378.7 MB, free: 11.72 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002289/0.1217, allocations: 101.6 kB / 378.8 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004355/0.1222, allocations: 355.1 kB / 379.2 MB, free: 11.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001451/0.1237, allocations: 1.346 MB / 380.5 MB, free: 9.918 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001052/0.1238, allocations: 68 kB / 380.6 MB, free: 9.852 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002177/0.124, allocations: 119.9 kB / 380.7 MB, free: 9.734 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002103/0.1242, allocations: 227.8 kB / 380.9 MB, free: 9.512 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003007/0.1245, allocations: 350 kB / 381.3 MB, free: 9.168 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008602/0.1254, allocations: 0.8722 MB / 382.2 MB, free: 8.293 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.1254, allocations: 0 / 382.2 MB, free: 8.293 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1254, allocations: 0 / 382.2 MB, free: 8.293 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.308e-06/0.1254, allocations: 4 kB / 382.2 MB, free: 8.289 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.003742/0.1292, allocations: 1.32 MB / 383.5 MB, free: 6.918 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.1292, allocations: 12.03 kB / 383.5 MB, free: 6.906 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001772/0.1294, allocations: 76.09 kB / 383.6 MB, free: 6.832 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006645/0.1301, allocations: 427.5 kB / 384 MB, free: 6.375 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.338e-05/0.1302, allocations: 33.38 kB / 384 MB, free: 6.344 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000116/0.1303, allocations: 44.22 kB / 384.1 MB, free: 6.301 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001865/0.1322, allocations: 1.158 MB / 385.2 MB, free: 5.129 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.1322, allocations: 0 / 385.2 MB, free: 5.129 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.447e-05/0.1323, allocations: 20 kB / 385.2 MB, free: 5.109 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.1323, allocations: 8 kB / 385.2 MB, free: 5.102 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00256/0.1348, allocations: 1.74 MB / 387 MB, free: 3.359 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004265/0.1391, allocations: 2.478 MB / 389.5 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001589/0.1407, allocations: 0.9069 MB / 390.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001125/0.1419, allocations: 0.7123 MB / 391.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.958e-05/0.1419, allocations: 11.98 kB / 391.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001416/0.1434, allocations: 0.9011 MB / 392 MB, free: 14.22 MB / 334.1 MB Notification: Performance of pre-optimization done (n=47): time 2.424e-06/0.1434, allocations: 0 / 392 MB, free: 14.22 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.01109/0.1545, allocations: 5.795 MB / 397.8 MB, free: 8.266 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.086e-05/0.1546, allocations: 85.11 kB / 397.9 MB, free: 8.164 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001117/0.1557, allocations: 0.9102 MB / 398.8 MB, free: 7.246 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.11e-05/0.1558, allocations: 49.69 kB / 398.8 MB, free: 7.191 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002111/0.156, allocations: 292.3 kB / 399.1 MB, free: 6.898 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001478/0.1562, allocations: 173.7 kB / 399.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002286/0.1564, allocations: 118.2 kB / 399.4 MB, free: 6.605 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.1566, allocations: 382.8 kB / 399.8 MB, free: 6.223 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001272/0.1578, allocations: 0.8447 MB / 400.6 MB, free: 5.379 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001308/0.1592, allocations: 0.9401 MB / 401.6 MB, free: 4.406 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002074/0.1613, allocations: 1.461 MB / 403 MB, free: 2.914 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.1613, allocations: 4 kB / 403 MB, free: 2.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003863/0.1651, allocations: 2.486 MB / 405.5 MB, free: 416 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.576e-05/0.1652, allocations: 8.156 kB / 405.5 MB, free: 408 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.328e-06/0.1652, allocations: 0 / 405.5 MB, free: 408 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002103/0.1673, allocations: 1.9 MB / 407.4 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005224/0.1678, allocations: 111.8 kB / 407.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007883/0.1757, allocations: 6.711 MB / 414.2 MB, free: 7.363 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00145/0.1772, allocations: 231.7 kB / 414.5 MB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.824e-05/0.1773, allocations: 24 kB / 414.5 MB, free: 7.113 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 28 (supportFriction.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,stop1.stopped,stop1.mode,$PRE.stop1.mode,stop1.locked,stop1.startBackward,$PRE.stop1.startBackward,stop1.startForward,$PRE.stop1.startForward,stop1.free,$whenCondition2,stop2.stopped,stop2.mode,$PRE.stop2.mode,stop2.locked,stop2.startBackward,$PRE.stop2.startBackward,stop2.startForward,$PRE.stop2.startForward,stop2.free,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,6), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004919/0.1778, allocations: 259.8 kB / 414.7 MB, free: 6.848 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001261/0.1779, allocations: 67.16 kB / 414.8 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001907/0.1781, allocations: 110.2 kB / 414.9 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.1781, allocations: 8 kB / 414.9 MB, free: 6.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.1781, allocations: 0 / 414.9 MB, free: 6.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.1782, allocations: 0 / 414.9 MB, free: 6.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004229/0.1824, allocations: 3.094 MB / 418 MB, free: 3.492 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.336e-06/0.1824, allocations: 7.984 kB / 418 MB, free: 3.484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004899/0.1829, allocations: 84.05 kB / 418.1 MB, free: 3.402 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001983/0.1849, allocations: 1.865 MB / 420 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.575e-05/0.185, allocations: 23.97 kB / 420 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007084/0.1921, allocations: 6.326 MB / 426.3 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.1921, allocations: 0 / 426.3 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004804/0.1969, allocations: 3.233 MB / 429.6 MB, free: 7.598 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004243/0.1974, allocations: 208.2 kB / 429.8 MB, free: 7.375 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001283/0.1975, allocations: 24 kB / 429.8 MB, free: 7.352 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001751/0.1993, allocations: 267.6 kB / 430 MB, free: 7.09 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001435/0.2007, allocations: 0.5655 MB / 430.6 MB, free: 6.523 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001104/0.2009, allocations: 27.95 kB / 430.6 MB, free: 6.496 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007951/0.2017, allocations: 0.6748 MB / 431.3 MB, free: 5.828 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2017, allocations: 0 / 431.3 MB, free: 5.828 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009325/0.2026, allocations: 188 kB / 431.5 MB, free: 5.645 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (stop2.s,stop2.v,stop1.s,stop1.v,mass.s,mass.v) * Number of discrete variables: 18 ($whenCondition1,stop2.free,stop2.startForward,stop2.startBackward,stop2.locked,stop2.mode,stop2.stopped,$whenCondition2,stop1.free,stop1.startForward,stop1.startBackward,stop1.locked,stop1.mode,stop1.stopped,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode) * Number of discrete states: 9 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,stop2.mode,stop2.startBackward,stop2.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,5), (1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000328/0.203, allocations: 155 kB / 431.6 MB, free: 5.484 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003108/0.2061, allocations: 1.918 MB / 433.6 MB, free: 3.539 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.2061, allocations: 0 / 433.6 MB, free: 3.539 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00175/0.2078, allocations: 1.083 MB / 434.6 MB, free: 2.43 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006753/0.2085, allocations: 83.34 kB / 434.7 MB, free: 2.348 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004541/0.2131, allocations: 1.951 MB / 436.7 MB, free: 368 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005995/0.2137, allocations: 0.9221 MB / 437.6 MB, free: 15.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002354/0.214, allocations: 43.27 kB / 437.6 MB, free: 15.38 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001373/0.2141, allocations: 43.42 kB / 437.7 MB, free: 15.33 MB / 382.1 MB Notification: Performance of SimCode: time 8.01e-07/0.2141, allocations: 0 / 437.7 MB, free: 15.33 MB / 382.1 MB Notification: Performance of Templates: time 0.268/0.4821, allocations: 25.74 MB / 463.4 MB, free: 72.75 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1)