Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|damper.s_rel|damper.v_rel|massWithStopAndFriction.s|massWithStopAndFriction.v|springDamper.s_rel|springDamper.v_rel|springDamper1.s_rel|springDamper1.v_rel|brake.mode|brake.startBackward|brake.startForward|massWithStopAndFriction.mode|massWithStopAndFriction.startBackward|massWithStopAndFriction.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|damper.s_rel|damper.v_rel|massWithStopAndFriction.s|massWithStopAndFriction.v|springDamper.s_rel|springDamper.v_rel|springDamper1.s_rel|springDamper1.v_rel|brake.mode|brake.startBackward|brake.startForward|massWithStopAndFriction.mode|massWithStopAndFriction.startBackward|massWithStopAndFriction.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 184 kB / 8.138 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.272/1.272, allocations: 221.4 MB / 229.9 MB, free: 3.094 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 108.2 kB / 280.8 MB, free: 1.281 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.354e-06/7.394e-06, allocations: 4 kB / 336.5 MB, free: 9.535 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2037/0.2037, allocations: 50.39 MB / 386.9 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0894/0.2932, allocations: 84.81 MB / 471.7 MB, free: 2.004 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000182/0.2934, allocations: 80.98 kB / 471.8 MB, free: 1.926 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.04445/0.3378, allocations: 14.96 MB / 486.8 MB, free: 2.953 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.754e-05/0.3379, allocations: 16 kB / 486.8 MB, free: 2.938 MB / 362.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.002427/0.3403, allocations: 1.119 MB / 487.9 MB, free: 1.77 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.837e-05/0.3404, allocations: 8.031 kB / 487.9 MB, free: 1.762 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002107/0.3406, allocations: 87.05 kB / 488 MB, free: 1.676 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005265/0.3411, allocations: 415 kB / 488.4 MB, free: 1.23 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.974e-05/0.3412, allocations: 24 kB / 488.4 MB, free: 1.207 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001128/0.3413, allocations: 43.98 kB / 488.5 MB, free: 1.164 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001235/0.3425, allocations: 0.6872 MB / 489.1 MB, free: 488 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001121/0.3437, allocations: 0.6203 MB / 489.8 MB, free: 15.85 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.88e-05/0.3437, allocations: 7.906 kB / 489.8 MB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.207e-05/0.3438, allocations: 0 / 489.8 MB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.614e-05/0.3438, allocations: 16 kB / 489.8 MB, free: 15.83 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004336/0.3482, allocations: 2.369 MB / 492.2 MB, free: 13.34 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006865/0.3489, allocations: 440.5 kB / 492.6 MB, free: 12.91 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005727/0.3494, allocations: 387.7 kB / 493 MB, free: 12.52 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.205e-05/0.3495, allocations: 16.77 kB / 493 MB, free: 12.51 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007086/0.3502, allocations: 472.4 kB / 493.4 MB, free: 12.04 MB / 378.7 MB Notification: Performance of pre-optimization done (n=89): time 2.034e-06/0.3503, allocations: 0 / 493.4 MB, free: 12.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=109): time 0.005397/0.3557, allocations: 2.569 MB / 496 MB, free: 9.383 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.129e-05/0.3557, allocations: 68.39 kB / 496.1 MB, free: 9.305 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000266/0.356, allocations: 284.8 kB / 496.4 MB, free: 9.023 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.814e-05/0.3561, allocations: 45.69 kB / 496.4 MB, free: 8.973 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001265/0.3562, allocations: 221.1 kB / 496.6 MB, free: 8.75 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002592/0.3565, allocations: 358.8 kB / 497 MB, free: 8.395 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.999e-05/0.3565, allocations: 4 kB / 497 MB, free: 8.391 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.3567, allocations: 366.8 kB / 497.3 MB, free: 8.023 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005686/0.3573, allocations: 338.6 kB / 497.7 MB, free: 7.695 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006329/0.3579, allocations: 424.9 kB / 498.1 MB, free: 7.258 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006248/0.3585, allocations: 298.3 kB / 498.4 MB, free: 6.973 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3585, allocations: 0 / 498.4 MB, free: 6.973 MB / 378.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.0024/0.3609, allocations: 1.105 MB / 499.5 MB, free: 5.848 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.361, allocations: 8 kB / 499.5 MB, free: 5.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.465e-05/0.361, allocations: 0 / 499.5 MB, free: 5.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009928/0.362, allocations: 0.5178 MB / 500 MB, free: 5.312 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000845/0.3628, allocations: 223.7 kB / 0.4885 GB, free: 5.094 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002895/0.3658, allocations: 2.904 MB / 0.4913 GB, free: 2.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001284/0.3671, allocations: 243.9 kB / 0.4916 GB, free: 1.781 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001057/0.3672, allocations: 43.89 kB / 0.4916 GB, free: 1.738 MB / 378.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): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0002716/0.3675, allocations: 141.5 kB / 0.4917 GB, free: 1.602 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001335/0.3676, allocations: 71.25 kB / 0.4918 GB, free: 1.531 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002414/0.37, allocations: 1.121 MB / 0.4929 GB, free: 396 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.08e-05/0.37, allocations: 12 kB / 0.4929 GB, free: 384 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.37, allocations: 0 / 0.4929 GB, free: 384 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.361e-05/0.3701, allocations: 11.88 kB / 0.4929 GB, free: 372 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1077/0.4778, allocations: 2.188 MB / 0.4951 GB, free: 133.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.4779, allocations: 3.875 kB / 0.4951 GB, free: 133.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007989/0.4787, allocations: 193.7 kB / 0.4952 GB, free: 133.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007485/0.4794, allocations: 0.492 MB / 0.4957 GB, free: 133.7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.541e-05/0.4795, allocations: 27.52 kB / 0.4958 GB, free: 133.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001954/0.4815, allocations: 2.833 MB / 0.4985 GB, free: 131.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.4815, allocations: 6.281 kB / 0.4985 GB, free: 131.5 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00233/0.4838, allocations: 1.65 MB / 0.5001 GB, free: 131.1 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002816/0.4841, allocations: 229.9 kB / 0.5004 GB, free: 131 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001463/0.4843, allocations: 16.56 kB / 0.5004 GB, free: 131 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001228/0.4855, allocations: 273.1 kB / 0.5006 GB, free: 131 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000305/0.4858, allocations: 192 kB / 0.5008 GB, free: 131 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.849e-05/0.4859, allocations: 48.77 kB / 0.5009 GB, free: 131 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001527/0.4861, allocations: 216.5 kB / 0.5011 GB, free: 131 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005927/0.4867, allocations: 204.2 kB / 0.5013 GB, free: 131 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (90): * Single equations (assignments): 87 * 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.0002532/0.4869, allocations: 163.2 kB / 0.5014 GB, free: 130.9 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00135/0.4883, allocations: 1.012 MB / 0.5024 GB, free: 130.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.4883, allocations: 3.281 kB / 0.5024 GB, free: 130.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001003/0.4893, allocations: 0.6476 MB / 0.503 GB, free: 130.6 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005696/0.4899, allocations: 87.8 kB / 0.5031 GB, free: 130.6 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003112/0.493, allocations: 1.563 MB / 0.5047 GB, free: 130.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004914/0.4935, allocations: 1.007 MB / 0.5056 GB, free: 129.5 MB / 378.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4935, allocations: 3 kB / 0.5056 GB, free: 129.5 MB / 378.7 MB Notification: Performance of Templates: time 0.02254/0.5161, allocations: 14.97 MB / 0.5203 GB, free: 127.8 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches