Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_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.3+maint.om/package.mo): time 0.002511/0.00251, allocations: 176.4 kB / 8.154 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.694/1.694, allocations: 205.2 MB / 213.7 MB, free: 13.87 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001286/0.001286, allocations: 95.86 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.786e-06/8.957e-06, allocations: 0 / 314.3 MB, free: 9.051 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2521/0.2522, allocations: 47.56 MB / 361.8 MB, free: 45.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1315/0.3837, allocations: 82.68 MB / 444.5 MB, free: 3.352 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002702/0.384, allocations: 75.28 kB / 444.6 MB, free: 3.281 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.09057/0.4746, allocations: 14.75 MB / 459.3 MB, free: 4.551 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.007e-05/0.4748, allocations: 12 kB / 459.3 MB, free: 4.539 MB / 346.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.006833/0.4816, allocations: 1.119 MB / 460.5 MB, free: 3.371 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.135e-05/0.4817, allocations: 8.031 kB / 460.5 MB, free: 3.363 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007293/0.4825, allocations: 91.05 kB / 460.6 MB, free: 3.273 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001777/0.4843, allocations: 417.5 kB / 461 MB, free: 2.824 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001233/0.4845, allocations: 24 kB / 461 MB, free: 2.801 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004097/0.4849, allocations: 43.98 kB / 461 MB, free: 2.758 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003571/0.4885, allocations: 0.6794 MB / 461.7 MB, free: 2.078 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003502/0.4921, allocations: 0.6281 MB / 462.3 MB, free: 1.438 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.103e-05/0.4922, allocations: 0 / 462.3 MB, free: 1.438 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000133/0.4923, allocations: 4 kB / 462.3 MB, free: 1.434 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.956e-05/0.4923, allocations: 19.98 kB / 462.4 MB, free: 1.414 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01201/0.5044, allocations: 2.364 MB / 464.7 MB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001911/0.5063, allocations: 432.5 kB / 465.2 MB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001522/0.5079, allocations: 383.8 kB / 465.5 MB, free: 14.13 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001604/0.5081, allocations: 16.77 kB / 465.5 MB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002016/0.5102, allocations: 472.4 kB / 466 MB, free: 13.64 MB / 362.7 MB Notification: Performance of pre-optimization done (n=89): time 8.756e-06/0.5102, allocations: 8 kB / 466 MB, free: 13.63 MB / 362.7 MB Notification: Performance of matching and sorting (n=109): time 0.01545/0.5257, allocations: 2.589 MB / 468.6 MB, free: 10.95 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.815e-05/0.5258, allocations: 68.39 kB / 468.7 MB, free: 10.88 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000758/0.5266, allocations: 280.8 kB / 468.9 MB, free: 10.6 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004368/0.5271, allocations: 37.69 kB / 469 MB, free: 10.55 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002851/0.5274, allocations: 271.5 kB / 469.2 MB, free: 10.29 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008186/0.5282, allocations: 354.8 kB / 469.6 MB, free: 9.934 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001488/0.5284, allocations: 3.984 kB / 469.6 MB, free: 9.93 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002375/0.5287, allocations: 346.8 kB / 469.9 MB, free: 9.582 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001761/0.5304, allocations: 339.8 kB / 470.3 MB, free: 9.25 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001973/0.5325, allocations: 440.8 kB / 470.7 MB, free: 8.801 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002015/0.5346, allocations: 290.3 kB / 471 MB, free: 8.52 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.911e-05/0.5346, allocations: 4 kB / 471 MB, free: 8.516 MB / 362.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.007216/0.5419, allocations: 1.074 MB / 472.1 MB, free: 7.426 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.678e-05/0.542, allocations: 7.984 kB / 472.1 MB, free: 7.418 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-05/0.542, allocations: 4 kB / 472.1 MB, free: 7.414 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002664/0.5447, allocations: 0.5256 MB / 472.6 MB, free: 6.879 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002512/0.5473, allocations: 211.7 kB / 472.8 MB, free: 6.672 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007128/0.5545, allocations: 2.897 MB / 475.7 MB, free: 3.609 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003588/0.5581, allocations: 243.8 kB / 475.9 MB, free: 3.371 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004036/0.5586, allocations: 43.89 kB / 476 MB, free: 3.328 MB / 362.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.0006042/0.5592, allocations: 60.73 kB / 476 MB, free: 3.27 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003745/0.5596, allocations: 67.25 kB / 476.1 MB, free: 3.203 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006649/0.5663, allocations: 1.121 MB / 477.2 MB, free: 2.051 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.624e-05/0.5664, allocations: 12 kB / 477.2 MB, free: 2.039 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/0.5664, allocations: 0 / 477.2 MB, free: 2.039 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.632e-05/0.5665, allocations: 11.92 kB / 477.2 MB, free: 2.027 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01163/0.5781, allocations: 2.179 MB / 479.4 MB, free: 15.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.882e-05/0.5782, allocations: 7.938 kB / 479.4 MB, free: 15.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002591/0.5808, allocations: 196 kB / 479.6 MB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002501/0.5834, allocations: 0.5093 MB / 480.1 MB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003613/0.5838, allocations: 19.97 kB / 480.2 MB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006825/0.5906, allocations: 2.825 MB / 483 MB, free: 12.03 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.445e-05/0.5907, allocations: 9.281 kB / 483 MB, free: 12.02 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00815/0.5989, allocations: 1.648 MB / 484.6 MB, free: 10.27 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001146/0.6001, allocations: 228.2 kB / 484.9 MB, free: 10.03 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004264/0.6006, allocations: 16 kB / 484.9 MB, free: 10.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004104/0.6047, allocations: 267.8 kB / 485.1 MB, free: 9.754 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001112/0.6059, allocations: 200.5 kB / 485.3 MB, free: 9.559 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002988/0.6062, allocations: 47.95 kB / 485.4 MB, free: 9.512 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0005875/0.6068, allocations: 219.2 kB / 485.6 MB, free: 9.297 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00184/0.6087, allocations: 204 kB / 485.8 MB, free: 9.098 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.000725/0.6094, allocations: 153.2 kB / 485.9 MB, free: 8.941 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004799/0.6143, allocations: 1.022 MB / 487 MB, free: 7.898 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.239e-05/0.6143, allocations: 320 / 487 MB, free: 7.898 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003112/0.6175, allocations: 0.6107 MB / 487.6 MB, free: 7.277 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001848/0.6194, allocations: 84.53 kB / 487.7 MB, free: 7.195 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007686/0.6271, allocations: 1.609 MB / 489.3 MB, free: 5.527 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001146/0.6283, allocations: 1.005 MB / 490.3 MB, free: 4.492 MB / 378.7 MB Notification: Performance of SimCode: time 1.212e-06/0.6284, allocations: 0 / 490.3 MB, free: 4.492 MB / 378.7 MB Notification: Performance of Templates: time 0.03563/0.664, allocations: 16.86 MB / 0.4952 GB, free: 3.609 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches