Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001946/0.001946, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.687/1.687, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001073/0.001073, allocations: 86.69 kB / 262.4 MB, free: 1.676 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.299e-05/1.302e-05, allocations: 4 kB / 315.5 MB, free: 22.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.104, allocations: 47.59 MB / 363.1 MB, free: 7.074 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3735/0.4776, allocations: 83 MB / 446.1 MB, free: 12.69 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002038/0.4779, allocations: 64.66 kB / 446.1 MB, free: 12.66 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04595/0.5239, allocations: 14.8 MB / 460.9 MB, free: 32 kB / 330.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.5239, allocations: 0 / 460.9 MB, free: 32 kB / 330.7 MB Notification: Performance of Transformations before backend: time 4.798e-05/0.524, allocations: 12 kB / 460.9 MB, free: 20 kB / 330.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.003206/0.5272, allocations: 1.074 MB / 462 MB, free: 14.95 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.184e-05/0.5273, allocations: 8.031 kB / 462 MB, free: 14.94 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004819/0.5278, allocations: 91.02 kB / 462.1 MB, free: 14.85 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009296/0.5287, allocations: 418.5 kB / 462.5 MB, free: 14.45 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.112e-05/0.5288, allocations: 24 kB / 462.6 MB, free: 14.43 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001726/0.529, allocations: 39.91 kB / 462.6 MB, free: 14.39 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001415/0.5304, allocations: 0.6789 MB / 463.3 MB, free: 13.94 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001285/0.5317, allocations: 0.6276 MB / 463.9 MB, free: 13.49 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.325e-05/0.5317, allocations: 0 / 463.9 MB, free: 13.49 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.231e-05/0.5318, allocations: 0 / 463.9 MB, free: 13.49 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.157e-05/0.5319, allocations: 19.95 kB / 463.9 MB, free: 13.47 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004635/0.5365, allocations: 2.334 MB / 466.2 MB, free: 11.5 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008605/0.5374, allocations: 0.5819 MB / 466.8 MB, free: 11.14 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005306/0.5379, allocations: 378.5 kB / 467.2 MB, free: 10.92 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.601e-05/0.538, allocations: 20.64 kB / 467.2 MB, free: 10.91 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007743/0.5388, allocations: 470.3 kB / 467.7 MB, free: 10.57 MB / 346.7 MB Notification: Performance of pre-optimization done (n=89): time 3.015e-06/0.5388, allocations: 4 kB / 467.7 MB, free: 10.57 MB / 346.7 MB Notification: Performance of matching and sorting (n=109): time 0.005663/0.5445, allocations: 2.617 MB / 470.3 MB, free: 8.418 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.728e-05/0.5446, allocations: 72.59 kB / 470.4 MB, free: 8.34 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003128/0.5449, allocations: 278.1 kB / 470.6 MB, free: 8.109 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.614e-05/0.545, allocations: 40.5 kB / 470.7 MB, free: 8.07 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000197/0.5452, allocations: 256.3 kB / 470.9 MB, free: 7.867 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003557/0.5456, allocations: 357.7 kB / 471.3 MB, free: 7.562 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.466e-05/0.5456, allocations: 3.938 kB / 471.3 MB, free: 7.559 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000231/0.5459, allocations: 371.9 kB / 471.7 MB, free: 7.215 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006518/0.5465, allocations: 337.3 kB / 472 MB, free: 7.027 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007004/0.5473, allocations: 427.3 kB / 472.4 MB, free: 6.75 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007034/0.548, allocations: 296.9 kB / 472.7 MB, free: 6.566 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.548, allocations: 0 / 472.7 MB, free: 6.566 MB / 346.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002327/0.5503, allocations: 1.103 MB / 473.8 MB, free: 5.734 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.077e-05/0.5504, allocations: 7.984 kB / 473.8 MB, free: 5.727 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.294e-05/0.5504, allocations: 7.938 kB / 473.8 MB, free: 5.719 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001036/0.5514, allocations: 0.542 MB / 474.3 MB, free: 5.305 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008299/0.5523, allocations: 199.4 kB / 474.5 MB, free: 5.117 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004033/0.5563, allocations: 3.239 MB / 477.8 MB, free: 2.059 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001236/0.5576, allocations: 215.9 kB / 478 MB, free: 1.848 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001242/0.5577, allocations: 46.73 kB / 478 MB, free: 1.812 MB / 346.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.0003658/0.5581, allocations: 131.7 kB / 478.2 MB, free: 1.684 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001925/0.5583, allocations: 75.14 kB / 478.2 MB, free: 1.609 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002355/0.5607, allocations: 1.108 MB / 479.3 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-05/0.5607, allocations: 15.95 kB / 479.4 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.5607, allocations: 4 kB / 479.4 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.362e-05/0.5607, allocations: 7.969 kB / 479.4 MB, free: 0.75 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004317/0.565, allocations: 2.198 MB / 481.6 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.543e-06/0.5651, allocations: 0 / 481.6 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008239/0.5659, allocations: 183.7 kB / 481.8 MB, free: 14.28 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000923/0.5668, allocations: 0.5218 MB / 482.3 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.557e-05/0.567, allocations: 19.97 kB / 482.3 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003734/0.5707, allocations: 3.037 MB / 485.3 MB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.334e-05/0.5707, allocations: 7.891 kB / 485.3 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003012/0.5737, allocations: 1.654 MB / 487 MB, free: 8.766 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005089/0.5743, allocations: 220.2 kB / 487.2 MB, free: 8.531 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001759/0.5745, allocations: 15.98 kB / 487.2 MB, free: 8.516 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001354/0.5758, allocations: 235.8 kB / 487.5 MB, free: 8.285 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009048/0.5767, allocations: 436.3 kB / 487.9 MB, free: 7.859 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001363/0.5769, allocations: 47.95 kB / 487.9 MB, free: 7.812 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002748/0.5772, allocations: 227 kB / 488.1 MB, free: 7.59 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5772, allocations: 0 / 488.1 MB, free: 7.59 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009846/0.5782, allocations: 208 kB / 488.4 MB, free: 7.387 MB / 362.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.0003549/0.5785, allocations: 149.3 kB / 488.5 MB, free: 7.23 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001919/0.5805, allocations: 1.03 MB / 489.5 MB, free: 6.184 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.5805, allocations: 8 kB / 489.5 MB, free: 6.176 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001276/0.5818, allocations: 0.686 MB / 490.2 MB, free: 5.48 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007608/0.5825, allocations: 102.2 kB / 490.3 MB, free: 5.383 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004219/0.5868, allocations: 1.709 MB / 492 MB, free: 3.621 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000619/0.5874, allocations: 0.9478 MB / 493 MB, free: 2.641 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004019/0.5878, allocations: 69.34 kB / 493 MB, free: 2.57 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001937/0.588, allocations: 63.41 kB / 493.1 MB, free: 2.508 MB / 362.7 MB Notification: Performance of SimCode: time 5.21e-07/0.588, allocations: 0 / 493.1 MB, free: 2.508 MB / 362.7 MB Notification: Performance of Templates: time 0.02552/0.6136, allocations: 14.28 MB / 0.4955 GB, free: 4.203 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins/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_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches