Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.003292/0.003292, allocations: 176.6 kB / 7.452 MB, free: 2.453 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.346/1.346, allocations: 170.6 MB / 178.4 MB, free: 15.46 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001883/0.001883, allocations: 111.8 kB / 217.7 MB, free: 8.23 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.035e-05/1.065e-05, allocations: 0 / 261.7 MB, free: 26.66 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08967/0.0897, allocations: 38.75 MB / 300.5 MB, free: 3.91 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3171/0.4068, allocations: 72.9 MB / 373.4 MB, free: 11.68 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003369/0.4072, allocations: 71.22 kB / 373.5 MB, free: 11.64 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.04708/0.4543, allocations: 14.54 MB / 388 MB, free: 15.23 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.297e-05/0.4545, allocations: 20 kB / 388 MB, free: 15.21 MB / 282.7 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.003692/0.4582, allocations: 1.125 MB / 389.2 MB, free: 14.08 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/0.4583, allocations: 8.031 kB / 389.2 MB, free: 14.07 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005452/0.4588, allocations: 90.97 kB / 389.3 MB, free: 13.98 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001005/0.4598, allocations: 416.2 kB / 389.7 MB, free: 13.59 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.058e-05/0.4599, allocations: 27.91 kB / 389.7 MB, free: 13.56 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002917/0.4602, allocations: 39.88 kB / 389.7 MB, free: 13.52 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001886/0.4621, allocations: 0.7208 MB / 390.4 MB, free: 13.04 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001617/0.4638, allocations: 0.6383 MB / 391.1 MB, free: 12.57 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.036e-05/0.4638, allocations: 7.906 kB / 391.1 MB, free: 12.56 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001102/0.4639, allocations: 3.875 kB / 391.1 MB, free: 12.56 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.644e-05/0.464, allocations: 16 kB / 391.1 MB, free: 12.55 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005583/0.4695, allocations: 2.358 MB / 393.5 MB, free: 10.55 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009051/0.4705, allocations: 433.5 kB / 393.9 MB, free: 10.28 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006396/0.4711, allocations: 390 kB / 394.3 MB, free: 10.05 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.905e-05/0.4713, allocations: 12.66 kB / 394.3 MB, free: 10.04 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008487/0.4721, allocations: 473.5 kB / 394.7 MB, free: 9.699 MB / 282.7 MB Notification: Performance of pre-optimization done (n=86): time 3.997e-06/0.4721, allocations: 4 kB / 394.8 MB, free: 9.695 MB / 282.7 MB Notification: Performance of matching and sorting (n=106): time 0.006845/0.479, allocations: 2.695 MB / 397.4 MB, free: 7.465 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.246e-05/0.4791, allocations: 64.41 kB / 397.5 MB, free: 7.391 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005087/0.4796, allocations: 306.5 kB / 397.8 MB, free: 7.141 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001194/0.4797, allocations: 37.39 kB / 397.8 MB, free: 7.105 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002506/0.48, allocations: 231.9 kB / 398.1 MB, free: 6.895 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003869/0.4804, allocations: 349.3 kB / 398.4 MB, free: 6.594 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.544e-05/0.4805, allocations: 0 / 398.4 MB, free: 6.594 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002343/0.4807, allocations: 374.7 kB / 398.8 MB, free: 6.246 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006809/0.4814, allocations: 355.7 kB / 399.1 MB, free: 6.047 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007371/0.4821, allocations: 452.7 kB / 399.6 MB, free: 5.742 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008401/0.483, allocations: 308.6 kB / 399.9 MB, free: 5.547 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.522e-06/0.483, allocations: 0 / 399.9 MB, free: 5.547 MB / 282.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003001/0.486, allocations: 1.262 MB / 401.1 MB, free: 4.562 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.446e-05/0.4861, allocations: 8 kB / 401.1 MB, free: 4.555 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.351e-05/0.4861, allocations: 0 / 401.1 MB, free: 4.555 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001227/0.4873, allocations: 0.6364 MB / 401.8 MB, free: 4.055 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009568/0.4883, allocations: 214 kB / 402 MB, free: 3.852 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003524/0.4918, allocations: 2.977 MB / 405 MB, free: 1.023 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001433/0.4933, allocations: 247.3 kB / 405.2 MB, free: 0.7852 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001482/0.4934, allocations: 38.67 kB / 405.2 MB, free: 0.7539 MB / 282.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: supportFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: massWithStopAndFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real 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,$whenCondition1,elastoGap.contact,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,massWithStopAndFriction.free,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 7,1 5,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004074/0.4939, allocations: 144.1 kB / 405.4 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002091/0.4941, allocations: 66.38 kB / 405.4 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002158/0.4943, allocations: 89.81 kB / 405.5 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.164e-05/0.4943, allocations: 12 kB / 405.5 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.148e-05/0.4943, allocations: 3.906 kB / 405.6 MB, free: 0.5 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.4943, allocations: 3.984 kB / 405.6 MB, free: 0.4961 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004958/0.4993, allocations: 2.333 MB / 407.9 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.612e-06/0.4993, allocations: 0 / 407.9 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009843/0.5003, allocations: 198.2 kB / 408.1 MB, free: 14.42 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001142/0.5015, allocations: 0.6091 MB / 408.7 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001131/0.5016, allocations: 18.59 kB / 408.7 MB, free: 13.92 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003483/0.5051, allocations: 2.893 MB / 411.6 MB, free: 11.03 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.773e-06/0.5051, allocations: 0 / 411.6 MB, free: 11.03 MB / 298.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003917/0.5091, allocations: 1.789 MB / 413.4 MB, free: 9.148 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006067/0.5097, allocations: 232.1 kB / 413.6 MB, free: 8.902 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002303/0.5099, allocations: 19.98 kB / 413.6 MB, free: 8.883 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001603/0.5115, allocations: 263.8 kB / 413.9 MB, free: 8.625 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004768/0.512, allocations: 200.5 kB / 414.1 MB, free: 8.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001528/0.5122, allocations: 43.95 kB / 414.1 MB, free: 8.387 MB / 298.7 MB Notification: Performance of sort global known variables: time 0.0003758/0.5126, allocations: 227.2 kB / 414.4 MB, free: 8.164 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001114/0.5137, allocations: 204 kB / 414.6 MB, free: 7.965 MB / 298.7 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 6,1 6,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.000407/0.5141, allocations: 161.3 kB / 414.7 MB, free: 7.797 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00206/0.5162, allocations: 0.984 MB / 415.7 MB, free: 6.801 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.7e-06/0.5162, allocations: 0 / 415.7 MB, free: 6.801 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001311/0.5175, allocations: 0.6311 MB / 416.3 MB, free: 6.164 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000807/0.5183, allocations: 89.83 kB / 416.4 MB, free: 6.074 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004546/0.5229, allocations: 1.571 MB / 418 MB, free: 4.449 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009823/0.5239, allocations: 1.009 MB / 419 MB, free: 3.414 MB / 298.7 MB Notification: Performance of SimCode: time 1.162e-06/0.5239, allocations: 0 / 419 MB, free: 3.414 MB / 298.7 MB Notification: Performance of Templates: time 0.02892/0.5528, allocations: 14.63 MB / 433.6 MB, free: 4.766 MB / 314.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1)