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.00723/0.007229, allocations: 103.4 kB / 15.74 MB, free: 5.957 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.001166/0.001167, allocations: 192.6 kB / 16.68 MB, free: 5.887 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.501/1.501, allocations: 205.1 MB / 222.5 MB, free: 4.488 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.001181/0.001181, allocations: 46.19 kB / 326.5 MB, free: 14.44 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1176, allocations: 46.63 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004292/0.122, allocations: 2.972 MB / 376.1 MB, free: 14.31 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002128/0.1241, allocations: 1.205 MB / 377.3 MB, free: 13.11 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000165/0.1243, allocations: 8 kB / 377.3 MB, free: 13.1 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000445/0.1248, allocations: 79.3 kB / 377.4 MB, free: 13.02 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002023/0.125, allocations: 114.9 kB / 377.5 MB, free: 12.91 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009148/0.1259, allocations: 403.2 kB / 377.9 MB, free: 12.51 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007606/0.1267, allocations: 0.8074 MB / 378.7 MB, free: 11.7 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002326/0.1269, allocations: 101.6 kB / 378.8 MB, free: 11.6 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004439/0.1274, allocations: 355.1 kB / 379.2 MB, free: 11.25 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001465/0.1289, allocations: 1.342 MB / 380.5 MB, free: 9.906 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001225/0.129, allocations: 68 kB / 380.6 MB, free: 9.84 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000245/0.1292, allocations: 119.8 kB / 380.7 MB, free: 9.723 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002357/0.1295, allocations: 227.8 kB / 380.9 MB, free: 9.5 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003548/0.1299, allocations: 350 kB / 381.3 MB, free: 9.156 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009402/0.1308, allocations: 0.8761 MB / 382.1 MB, free: 8.277 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.1308, allocations: 0 / 382.1 MB, free: 8.277 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1308, allocations: 0 / 382.1 MB, free: 8.277 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.508e-05/0.1309, allocations: 0 / 382.1 MB, free: 8.277 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.00385/0.1347, allocations: 1.328 MB / 383.5 MB, free: 6.898 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.155e-05/0.1348, allocations: 8.031 kB / 383.5 MB, free: 6.891 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001736/0.135, allocations: 80.08 kB / 383.6 MB, free: 6.812 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006292/0.1356, allocations: 427.5 kB / 384 MB, free: 6.355 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.611e-05/0.1356, allocations: 29.38 kB / 384 MB, free: 6.328 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000109/0.1358, allocations: 44.28 kB / 384.1 MB, free: 6.285 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001777/0.1375, allocations: 1.161 MB / 385.2 MB, free: 5.109 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.949e-05/0.1376, allocations: 0 / 385.2 MB, free: 5.109 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.968e-05/0.1377, allocations: 19.98 kB / 385.2 MB, free: 5.09 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.275e-05/0.1377, allocations: 12 kB / 385.2 MB, free: 5.078 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002801/0.1405, allocations: 1.736 MB / 387 MB, free: 3.34 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005065/0.1456, allocations: 2.482 MB / 389.5 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001772/0.1474, allocations: 0.903 MB / 390.4 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001156/0.1485, allocations: 0.7084 MB / 391.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.966e-05/0.1486, allocations: 15.98 kB / 391.1 MB, free: 15.12 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001551/0.1502, allocations: 0.8972 MB / 392 MB, free: 14.21 MB / 334.1 MB Notification: Performance of pre-optimization done (n=47): time 3.096e-06/0.1502, allocations: 0 / 392 MB, free: 14.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.01213/0.1623, allocations: 5.793 MB / 397.8 MB, free: 8.254 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.322e-05/0.1625, allocations: 89.11 kB / 397.9 MB, free: 8.148 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001201/0.1637, allocations: 0.9102 MB / 398.8 MB, free: 7.23 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.862e-05/0.1638, allocations: 45.7 kB / 398.8 MB, free: 7.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002777/0.1641, allocations: 292.3 kB / 399.1 MB, free: 6.887 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001888/0.1643, allocations: 169.8 kB / 399.3 MB, free: 6.719 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002738/0.1645, allocations: 118.2 kB / 399.4 MB, free: 6.598 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002311/0.1648, allocations: 382.8 kB / 399.8 MB, free: 6.215 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001384/0.1662, allocations: 0.8447 MB / 400.6 MB, free: 5.371 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001443/0.1676, allocations: 0.9401 MB / 401.5 MB, free: 4.398 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00227/0.1699, allocations: 1.461 MB / 403 MB, free: 2.906 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.1699, allocations: 0 / 403 MB, free: 2.906 MB / 334.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003881/0.1738, allocations: 2.494 MB / 405.5 MB, free: 404 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.295e-05/0.1739, allocations: 4 kB / 405.5 MB, free: 400 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.352e-05/0.1739, allocations: 7.984 kB / 405.5 MB, free: 392 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002123/0.176, allocations: 1.896 MB / 407.4 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005335/0.1766, allocations: 119.7 kB / 407.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008221/0.1848, allocations: 6.707 MB / 414.2 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001688/0.1865, allocations: 227.7 kB / 414.5 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.945e-05/0.1866, allocations: 20 kB / 414.5 MB, free: 7.105 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.0005709/0.1872, allocations: 267.8 kB / 414.7 MB, free: 6.832 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001605/0.1874, allocations: 75.14 kB / 414.8 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000205/0.1876, allocations: 102.2 kB / 414.9 MB, free: 6.652 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-06/0.1876, allocations: 4 kB / 414.9 MB, free: 6.648 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.1876, allocations: 4 kB / 414.9 MB, free: 6.645 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.597e-06/0.1876, allocations: 3.984 kB / 414.9 MB, free: 6.641 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00448/0.1921, allocations: 3.094 MB / 418 MB, free: 3.473 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/0.1921, allocations: 0 / 418 MB, free: 3.473 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000488/0.1926, allocations: 84 kB / 418.1 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002132/0.1948, allocations: 1.873 MB / 420 MB, free: 1.508 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.706e-05/0.1949, allocations: 19.97 kB / 420 MB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008132/0.203, allocations: 6.322 MB / 426.3 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.2031, allocations: 4.031 kB / 426.3 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005584/0.2086, allocations: 3.229 MB / 429.5 MB, free: 7.586 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005169/0.2092, allocations: 212.2 kB / 429.8 MB, free: 7.359 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001159/0.2093, allocations: 20 kB / 429.8 MB, free: 7.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001701/0.211, allocations: 271.6 kB / 430 MB, free: 7.074 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001401/0.2125, allocations: 0.5655 MB / 430.6 MB, free: 6.508 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.637e-05/0.2125, allocations: 27.95 kB / 430.6 MB, free: 6.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008398/0.2134, allocations: 0.6748 MB / 431.3 MB, free: 5.812 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.11e-07/0.2134, allocations: 0 / 431.3 MB, free: 5.812 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009163/0.2143, allocations: 188 kB / 431.5 MB, free: 5.629 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.0004112/0.2147, allocations: 151.1 kB / 431.6 MB, free: 5.473 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003477/0.2182, allocations: 1.918 MB / 433.6 MB, free: 3.527 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.2183, allocations: 0 / 433.6 MB, free: 3.527 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001726/0.22, allocations: 1.087 MB / 434.6 MB, free: 2.414 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006596/0.2207, allocations: 79.09 kB / 434.7 MB, free: 2.336 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004459/0.2251, allocations: 1.967 MB / 436.7 MB, free: 340 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005824/0.2258, allocations: 0.9143 MB / 437.6 MB, free: 15.39 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002705/0.226, allocations: 47.27 kB / 437.6 MB, free: 15.35 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001348/0.2262, allocations: 43.42 kB / 437.7 MB, free: 15.31 MB / 382.1 MB Notification: Performance of SimCode: time 1.022e-06/0.2262, allocations: 0 / 437.7 MB, free: 15.31 MB / 382.1 MB Notification: Performance of Templates: time 0.3055/0.5317, allocations: 24.37 MB / 462.1 MB, free: 73.4 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)