Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.HeatLosses.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.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 109.9 kB / 17.06 MB, free: 5.969 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.00134/0.00134, allocations: 200 kB / 18.01 MB, free: 5.055 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.49/1.49, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.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.001281/0.001281, allocations: 51.92 kB / 327.9 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1032, allocations: 46.62 MB / 374.5 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005702/0.1089, allocations: 4.299 MB / 378.8 MB, free: 244 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2096/0.3186, allocations: 1.335 MB / 380.1 MB, free: 9.648 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003769/0.319, allocations: 12.38 kB / 380.1 MB, free: 9.648 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003502/0.3194, allocations: 116.7 kB / 380.2 MB, free: 9.648 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003845/0.3198, allocations: 224.5 kB / 380.5 MB, free: 9.547 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001068/0.3209, allocations: 433.3 kB / 380.9 MB, free: 9.523 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001089/0.322, allocations: 1.139 MB / 382 MB, free: 9.332 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003947/0.3224, allocations: 258.7 kB / 382.3 MB, free: 9.285 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007026/0.3231, allocations: 493.9 kB / 382.8 MB, free: 9.211 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000573/0.3237, allocations: 0.5144 MB / 383.3 MB, free: 9 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000137/0.3238, allocations: 92.41 kB / 383.4 MB, free: 9 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002785/0.3241, allocations: 157.4 kB / 383.5 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001985/0.3243, allocations: 222.5 kB / 383.7 MB, free: 8.848 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003423/0.3247, allocations: 443.7 kB / 384.2 MB, free: 8.594 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001123/0.3258, allocations: 1.06 MB / 385.2 MB, free: 8.219 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.3258, allocations: 0 / 385.2 MB, free: 8.219 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3258, allocations: 0 / 385.2 MB, free: 8.219 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.884e-05/0.3258, allocations: 0 / 385.2 MB, free: 8.219 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: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.003317/0.3292, allocations: 1.292 MB / 386.5 MB, free: 7.469 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.3292, allocations: 9.969 kB / 386.5 MB, free: 7.469 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002442/0.3295, allocations: 85.27 kB / 386.6 MB, free: 7.43 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006999/0.3302, allocations: 448.5 kB / 387.1 MB, free: 7.09 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.775e-05/0.3302, allocations: 50.62 kB / 387.1 MB, free: 7.07 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001415/0.3304, allocations: 73.72 kB / 387.2 MB, free: 7.043 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001645/0.332, allocations: 0.8102 MB / 388 MB, free: 6.742 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.889e-05/0.3321, allocations: 6.312 kB / 388 MB, free: 6.738 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.839e-05/0.3322, allocations: 32.72 kB / 388 MB, free: 6.715 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.841e-05/0.3322, allocations: 18.22 kB / 388 MB, free: 6.715 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001948/0.3341, allocations: 0.8654 MB / 388.9 MB, free: 6.457 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004536/0.3387, allocations: 2.371 MB / 391.3 MB, free: 5.137 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001617/0.3403, allocations: 0.7183 MB / 392 MB, free: 4.848 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001018/0.3414, allocations: 468 kB / 392.4 MB, free: 4.672 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.143e-05/0.3415, allocations: 13.53 kB / 392.5 MB, free: 4.672 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001247/0.3427, allocations: 0.5528 MB / 393 MB, free: 4.457 MB / 318.1 MB Notification: Performance of pre-optimization done (n=86): time 3.126e-06/0.3427, allocations: 0 / 393 MB, free: 4.457 MB / 318.1 MB Notification: Performance of matching and sorting (n=106): time 0.01163/0.3544, allocations: 4.232 MB / 397.2 MB, free: 2.496 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.136e-05/0.3545, allocations: 62.03 kB / 397.3 MB, free: 2.434 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005796/0.3551, allocations: 391 kB / 397.7 MB, free: 2.234 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001069/0.3552, allocations: 59.09 kB / 397.7 MB, free: 2.18 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001713/0.3554, allocations: 269.2 kB / 398 MB, free: 1.938 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002478/0.3556, allocations: 359.8 kB / 398.4 MB, free: 1.633 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003041/0.3559, allocations: 186.4 kB / 398.5 MB, free: 1.516 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.294e-05/0.356, allocations: 373.8 kB / 398.9 MB, free: 1.156 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009076/0.3569, allocations: 432.8 kB / 399.3 MB, free: 0.957 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001007/0.358, allocations: 0.5315 MB / 399.9 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001726/0.3597, allocations: 0.788 MB / 400.7 MB, free: 252 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.3597, allocations: 0 / 400.7 MB, free: 252 kB / 318.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003368/0.3631, allocations: 1.347 MB / 402 MB, free: 15.58 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.091e-05/0.3631, allocations: 9.719 kB / 402 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.3632, allocations: 6.5 kB / 402 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001419/0.3646, allocations: 0.655 MB / 402.7 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001299/0.3659, allocations: 201.7 kB / 402.9 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007222/0.3731, allocations: 3.436 MB / 406.3 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002182/0.3754, allocations: 178.9 kB / 406.5 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000309/0.3757, allocations: 36.83 kB / 406.5 MB, free: 12.02 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 27 (supportFriction.free,massWithStopAndFriction.stopped,massWithStopAndFriction.mode,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.locked,massWithStopAndFriction.startBackward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,elastoGap.contact,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 112 * 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,7), (1,5), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0012/0.3769, allocations: 236.1 kB / 406.7 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005474/0.3775, allocations: 73.06 kB / 406.8 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004425/0.378, allocations: 103.3 kB / 406.9 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.027e-05/0.378, allocations: 10.03 kB / 406.9 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.543e-05/0.378, allocations: 1.344 kB / 406.9 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.159e-05/0.3781, allocations: 7.969 kB / 406.9 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00807/0.3861, allocations: 2.493 MB / 409.4 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.109e-05/0.3862, allocations: 1.594 kB / 409.4 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001296/0.3875, allocations: 175.2 kB / 409.6 MB, free: 9.973 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001689/0.3892, allocations: 0.6219 MB / 410.2 MB, free: 9.668 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001734/0.3894, allocations: 37.05 kB / 410.3 MB, free: 9.641 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005241/0.3947, allocations: 3.211 MB / 413.5 MB, free: 6.723 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.844e-06/0.3947, allocations: 2.719 kB / 413.5 MB, free: 6.723 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00641/0.4011, allocations: 1.851 MB / 415.3 MB, free: 5.012 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007967/0.402, allocations: 232.2 kB / 415.5 MB, free: 4.766 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002926/0.4023, allocations: 35.92 kB / 415.6 MB, free: 4.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002028/0.4043, allocations: 203.7 kB / 415.8 MB, free: 4.531 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001433/0.4058, allocations: 376.4 kB / 416.2 MB, free: 4.164 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001904/0.406, allocations: 43.97 kB / 416.2 MB, free: 4.121 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005434/0.4066, allocations: 271.1 kB / 416.5 MB, free: 3.855 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4066, allocations: 0 / 416.5 MB, free: 3.855 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001629/0.4082, allocations: 252 kB / 416.7 MB, free: 3.609 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (springDamper.s_rel,springDamper.v_rel,elastoGap.s_rel,elastoGap.v_rel,massWithStopAndFriction.s,massWithStopAndFriction.v,springDamper1.s_rel,springDamper1.v_rel) * Number of discrete variables: 17 ($whenCondition1,elastoGap.contact,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,massWithStopAndFriction.free,massWithStopAndFriction.startForward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 9 (massWithStopAndFriction.mode,massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,brake.mode,brake.startForward,brake.startBackward,supportFriction.mode,supportFriction.startForward,supportFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 86 * 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,6), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005222/0.4088, allocations: 164.8 kB / 416.9 MB, free: 3.438 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004007/0.4128, allocations: 1.2 MB / 418.1 MB, free: 2.23 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.4128, allocations: 0 / 418.1 MB, free: 2.23 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002473/0.4153, allocations: 0.7781 MB / 418.8 MB, free: 1.438 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001547/0.4169, allocations: 133 kB / 419 MB, free: 1.312 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005718/0.4226, allocations: 1.951 MB / 420.9 MB, free: 15.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008152/0.4235, allocations: 0.9322 MB / 421.9 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006328/0.4241, allocations: 77.45 kB / 421.9 MB, free: 14.28 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003033/0.4244, allocations: 71.41 kB / 422 MB, free: 14.21 MB / 350.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4245, allocations: 0 / 422 MB, free: 14.21 MB / 350.1 MB Notification: Performance of Templates: time 0.03347/0.4579, allocations: 18.4 MB / 440.4 MB, free: 11.81 MB / 366.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1)