Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Mechanics.Translational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.1_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.006396/0.006397, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.00139/0.001391, allocations: 195.2 kB / 16.67 MB, free: 5.52 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.603/1.603, allocations: 205.1 MB / 222.5 MB, free: 12.25 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.001823/0.001823, allocations: 51.94 kB / 326.5 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1089, allocations: 46.61 MB / 373.2 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006277/0.1152, allocations: 4.31 MB / 377.5 MB, free: 252 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2246/0.3398, allocations: 1.322 MB / 378.8 MB, free: 9.68 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000373/0.3402, allocations: 14.19 kB / 378.8 MB, free: 9.68 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003251/0.3406, allocations: 117.1 kB / 378.9 MB, free: 9.68 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000386/0.341, allocations: 241.7 kB / 379.2 MB, free: 9.574 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001099/0.3421, allocations: 422.1 kB / 379.6 MB, free: 9.555 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001105/0.3432, allocations: 1.139 MB / 380.7 MB, free: 9.359 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004526/0.3437, allocations: 270.2 kB / 381 MB, free: 9.309 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007018/0.3444, allocations: 486.2 kB / 381.4 MB, free: 9.238 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005798/0.345, allocations: 0.5156 MB / 382 MB, free: 9.023 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001471/0.3451, allocations: 95.69 kB / 382 MB, free: 9.02 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003354/0.3455, allocations: 151.3 kB / 382.2 MB, free: 9 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002358/0.3457, allocations: 225.6 kB / 382.4 MB, free: 8.867 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004386/0.3462, allocations: 445.4 kB / 382.9 MB, free: 8.613 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001443/0.3476, allocations: 1.056 MB / 383.9 MB, free: 8.242 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.183e-06/0.3476, allocations: 0 / 383.9 MB, free: 8.242 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.3477, allocations: 0 / 383.9 MB, free: 8.242 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.352e-05/0.3477, allocations: 1.312 kB / 383.9 MB, free: 8.242 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.003523/0.3512, allocations: 1.293 MB / 385.2 MB, free: 7.492 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.751e-05/0.3513, allocations: 11.22 kB / 385.2 MB, free: 7.492 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002906/0.3516, allocations: 86.12 kB / 385.3 MB, free: 7.453 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007375/0.3523, allocations: 451.3 kB / 385.7 MB, free: 7.113 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.336e-05/0.3524, allocations: 53.44 kB / 385.8 MB, free: 7.09 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000152/0.3525, allocations: 70.25 kB / 385.9 MB, free: 7.066 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001864/0.3544, allocations: 0.8163 MB / 386.7 MB, free: 6.758 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.038e-05/0.3545, allocations: 5.094 kB / 386.7 MB, free: 6.758 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.054e-05/0.3546, allocations: 30.03 kB / 386.7 MB, free: 6.734 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.974e-05/0.3546, allocations: 15.72 kB / 386.7 MB, free: 6.734 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001983/0.3566, allocations: 0.8652 MB / 387.6 MB, free: 6.477 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004947/0.3615, allocations: 2.369 MB / 390 MB, free: 5.156 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001628/0.3632, allocations: 0.7179 MB / 390.7 MB, free: 4.871 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001231/0.3644, allocations: 473 kB / 391.1 MB, free: 4.691 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.303e-05/0.3645, allocations: 9 kB / 391.1 MB, free: 4.691 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001414/0.3659, allocations: 0.5512 MB / 391.7 MB, free: 4.48 MB / 318.1 MB Notification: Performance of pre-optimization done (n=86): time 3.616e-06/0.366, allocations: 1.156 kB / 391.7 MB, free: 4.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=106): time 0.01149/0.3775, allocations: 4.23 MB / 395.9 MB, free: 2.52 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.047e-05/0.3775, allocations: 62.03 kB / 396 MB, free: 2.457 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004982/0.378, allocations: 394.5 kB / 396.4 MB, free: 2.254 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.626e-05/0.3781, allocations: 55.33 kB / 396.4 MB, free: 2.203 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001559/0.3783, allocations: 274.5 kB / 396.7 MB, free: 1.957 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002177/0.3785, allocations: 358.5 kB / 397 MB, free: 1.652 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003104/0.3788, allocations: 185.8 kB / 397.2 MB, free: 1.535 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.379, allocations: 373.6 kB / 397.6 MB, free: 1.176 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009553/0.3799, allocations: 436.1 kB / 398 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001027/0.381, allocations: 0.5284 MB / 398.5 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001717/0.3827, allocations: 0.7864 MB / 399.3 MB, free: 272 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.3827, allocations: 1.031 kB / 399.3 MB, free: 272 kB / 318.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003284/0.386, allocations: 1.35 MB / 400.7 MB, free: 15.6 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.756e-05/0.386, allocations: 10.19 kB / 400.7 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.3861, allocations: 5.203 kB / 400.7 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001237/0.3873, allocations: 0.6527 MB / 401.4 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008326/0.3881, allocations: 205.8 kB / 401.6 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004494/0.3927, allocations: 3.426 MB / 405 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001356/0.394, allocations: 181.2 kB / 405.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001078/0.3941, allocations: 32.28 kB / 405.2 MB, free: 12.04 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.0005694/0.3947, allocations: 232.9 kB / 405.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002238/0.3949, allocations: 70.23 kB / 405.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000261/0.3952, allocations: 107.6 kB / 405.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.207e-05/0.3952, allocations: 13.98 kB / 405.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.669e-05/0.3953, allocations: 0 / 405.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.089e-05/0.3953, allocations: 5.016 kB / 405.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005271/0.4006, allocations: 2.499 MB / 408.1 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.276e-06/0.4006, allocations: 1.375 kB / 408.1 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008117/0.4014, allocations: 172.1 kB / 408.3 MB, free: 9.996 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001149/0.4026, allocations: 0.6259 MB / 408.9 MB, free: 9.688 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001054/0.4027, allocations: 36.83 kB / 408.9 MB, free: 9.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003663/0.4064, allocations: 3.216 MB / 412.2 MB, free: 6.738 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.4064, allocations: 6.625 kB / 412.2 MB, free: 6.734 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004131/0.4105, allocations: 1.842 MB / 414 MB, free: 5.012 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000542/0.4111, allocations: 232.2 kB / 414.2 MB, free: 4.766 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001994/0.4113, allocations: 35.98 kB / 414.3 MB, free: 4.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001488/0.4128, allocations: 203.7 kB / 414.5 MB, free: 4.531 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009666/0.4138, allocations: 376.4 kB / 414.8 MB, free: 4.164 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001125/0.4139, allocations: 47.89 kB / 414.9 MB, free: 4.117 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003483/0.4142, allocations: 267.2 kB / 415.1 MB, free: 3.855 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4142, allocations: 0 / 415.1 MB, free: 3.855 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001037/0.4153, allocations: 252 kB / 415.4 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.0003483/0.4157, allocations: 162.9 kB / 415.5 MB, free: 3.441 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002825/0.4185, allocations: 1.2 MB / 416.7 MB, free: 2.23 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/0.4185, allocations: 3.938 kB / 416.7 MB, free: 2.227 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001759/0.4203, allocations: 0.782 MB / 417.5 MB, free: 1.43 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001093/0.4214, allocations: 126.4 kB / 417.7 MB, free: 1.312 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004465/0.4259, allocations: 1.953 MB / 419.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006322/0.4265, allocations: 0.9322 MB / 420.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004424/0.427, allocations: 81.45 kB / 420.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002435/0.4272, allocations: 67.34 kB / 420.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of SimCode: time 1.041e-06/0.4272, allocations: 0 / 420.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of Templates: time 0.03423/0.4615, allocations: 17.74 MB / 438.4 MB, free: 12.46 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_3.1_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1)