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.001058/0.001058, allocations: 89.97 kB / 15.36 MB, free: 0.7383 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.008282/0.008282, allocations: 174.4 kB / 16.27 MB, free: 6.613 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.691/1.691, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.0005371/0.0005372, allocations: 8 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3413/0.3419, allocations: 47.59 MB / 327 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.002783/0.3447, allocations: 2.64 MB / 329.7 MB, free: 15.3 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002569/0.3473, allocations: 1.196 MB / 330.9 MB, free: 14.33 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003395/0.3477, allocations: 4.219 kB / 330.9 MB, free: 14.33 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005138/0.3482, allocations: 66.8 kB / 330.9 MB, free: 14.28 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002825/0.3485, allocations: 106 kB / 331 MB, free: 14.19 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00103/0.3495, allocations: 358.8 kB / 331.4 MB, free: 13.91 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009348/0.3505, allocations: 0.7585 MB / 332.1 MB, free: 13.48 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002189/0.3507, allocations: 83.12 kB / 332.2 MB, free: 13.43 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000628/0.3513, allocations: 326.7 kB / 332.5 MB, free: 13.25 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001749/0.3531, allocations: 1.327 MB / 333.9 MB, free: 12.51 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001002/0.3532, allocations: 36 kB / 333.9 MB, free: 12.47 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000226/0.3535, allocations: 79.95 kB / 334 MB, free: 12.39 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002279/0.3537, allocations: 204.2 kB / 334.2 MB, free: 12.2 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003768/0.3541, allocations: 339.8 kB / 334.5 MB, free: 11.86 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008372/0.3549, allocations: 0.8095 MB / 335.3 MB, free: 11.04 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.678e-06/0.3549, allocations: 0 / 335.3 MB, free: 11.04 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.355, allocations: 7.938 kB / 335.3 MB, free: 11.04 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.047e-05/0.355, allocations: 0 / 335.3 MB, free: 11.04 MB / 270.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.004075/0.3591, allocations: 1.298 MB / 336.6 MB, free: 9.688 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.037e-05/0.3591, allocations: 8.031 kB / 336.6 MB, free: 9.68 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000214/0.3593, allocations: 80 kB / 336.7 MB, free: 9.602 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006364/0.36, allocations: 423.5 kB / 337.1 MB, free: 9.145 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.155e-05/0.3601, allocations: 33.38 kB / 337.2 MB, free: 9.109 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001168/0.3602, allocations: 44.27 kB / 337.2 MB, free: 9.066 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002161/0.3624, allocations: 1.169 MB / 338.4 MB, free: 7.887 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.723e-05/0.3624, allocations: 11.94 kB / 338.4 MB, free: 7.875 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.403e-05/0.3625, allocations: 12 kB / 338.4 MB, free: 7.863 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.237e-05/0.3625, allocations: 8 kB / 338.4 MB, free: 7.855 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002653/0.3652, allocations: 1.779 MB / 340.2 MB, free: 6.078 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005026/0.3702, allocations: 2.557 MB / 342.7 MB, free: 3.438 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001695/0.3719, allocations: 0.9343 MB / 343.7 MB, free: 2.484 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001111/0.373, allocations: 0.7357 MB / 344.4 MB, free: 1.742 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.786e-05/0.3731, allocations: 4 kB / 344.4 MB, free: 1.738 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001587/0.3747, allocations: 0.9162 MB / 345.3 MB, free: 0.8047 MB / 270.1 MB Notification: Performance of pre-optimization done (n=47): time 3.857e-06/0.3747, allocations: 0 / 345.3 MB, free: 0.8047 MB / 270.1 MB Notification: Performance of matching and sorting (n=49): time 0.0118/0.3865, allocations: 6.037 MB / 351.4 MB, free: 10.61 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.747e-05/0.3866, allocations: 96.92 kB / 351.5 MB, free: 10.49 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001173/0.3878, allocations: 0.9141 MB / 352.4 MB, free: 9.57 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 9.953e-05/0.3879, allocations: 49.69 kB / 352.4 MB, free: 9.516 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002227/0.3882, allocations: 300.3 kB / 352.7 MB, free: 9.219 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001571/0.3883, allocations: 161.9 kB / 352.9 MB, free: 9.059 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001051/0.3884, allocations: 61.67 kB / 352.9 MB, free: 8.992 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.3886, allocations: 378.8 kB / 353.3 MB, free: 8.613 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001272/0.3899, allocations: 0.8603 MB / 354.2 MB, free: 7.75 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001435/0.3913, allocations: 0.9519 MB / 355.1 MB, free: 6.77 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002277/0.3936, allocations: 1.492 MB / 356.6 MB, free: 5.246 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.645e-06/0.3936, allocations: 0 / 356.6 MB, free: 5.246 MB / 286.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004044/0.3977, allocations: 2.525 MB / 359.1 MB, free: 2.703 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.102e-05/0.3977, allocations: 10.97 kB / 359.1 MB, free: 2.695 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.915e-05/0.3978, allocations: 0 / 359.1 MB, free: 2.695 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002132/0.3999, allocations: 1.904 MB / 361 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005228/0.4004, allocations: 119.9 kB / 361.2 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007737/0.4082, allocations: 6.45 MB / 367.6 MB, free: 9.914 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001641/0.4099, allocations: 303.7 kB / 367.9 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.014e-05/0.4099, allocations: 20 kB / 367.9 MB, free: 9.598 MB / 302.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.0004834/0.4104, allocations: 256.1 kB / 368.2 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001336/0.4106, allocations: 71.23 kB / 368.3 MB, free: 9.266 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002124/0.4108, allocations: 106.1 kB / 368.4 MB, free: 9.152 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.133e-06/0.4108, allocations: 8 kB / 368.4 MB, free: 9.145 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.798e-06/0.4108, allocations: 0 / 368.4 MB, free: 9.145 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.4108, allocations: 0 / 368.4 MB, free: 9.145 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004176/0.415, allocations: 3.134 MB / 371.5 MB, free: 5.941 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.415, allocations: 0 / 371.5 MB, free: 5.941 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004778/0.4155, allocations: 95.94 kB / 371.6 MB, free: 5.848 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001884/0.4174, allocations: 1.865 MB / 373.5 MB, free: 3.973 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.306e-05/0.4175, allocations: 27.97 kB / 373.5 MB, free: 3.945 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007339/0.4248, allocations: 6.156 MB / 379.6 MB, free: 13.49 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/0.4249, allocations: 7.922 kB / 379.6 MB, free: 13.48 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005126/0.43, allocations: 3.278 MB / 382.9 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004486/0.4305, allocations: 204.2 kB / 383.1 MB, free: 9.957 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001083/0.4306, allocations: 20 kB / 383.1 MB, free: 9.938 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001778/0.4324, allocations: 359.6 kB / 383.5 MB, free: 9.586 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001323/0.4337, allocations: 0.5459 MB / 384 MB, free: 9.039 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001011/0.4339, allocations: 35.89 kB / 384.1 MB, free: 9.004 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007497/0.4346, allocations: 0.6748 MB / 384.8 MB, free: 8.332 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4346, allocations: 0 / 384.8 MB, free: 8.332 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008829/0.4355, allocations: 184 kB / 384.9 MB, free: 8.152 MB / 318.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.0003747/0.4359, allocations: 159.1 kB / 385.1 MB, free: 7.988 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003561/0.4395, allocations: 1.952 MB / 387 MB, free: 6.004 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.4395, allocations: 0 / 387 MB, free: 6.004 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002087/0.4416, allocations: 1.095 MB / 388.1 MB, free: 4.883 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008991/0.4425, allocations: 66.97 kB / 388.2 MB, free: 4.82 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004855/0.4474, allocations: 2.36 MB / 390.6 MB, free: 2.426 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006517/0.448, allocations: 0.927 MB / 391.5 MB, free: 1.477 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002666/0.4483, allocations: 39.28 kB / 391.5 MB, free: 1.434 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001366/0.4485, allocations: 35.41 kB / 391.6 MB, free: 1.398 MB / 318.1 MB Notification: Performance of SimCode: time 1.964e-06/0.4485, allocations: 0 / 391.6 MB, free: 1.398 MB / 318.1 MB Notification: Performance of Templates: time 0.03389/0.4824, allocations: 21.72 MB / 413.3 MB, free: 11.65 MB / 350.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)