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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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="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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001137/0.001137, allocations: 109.1 kB / 17.28 MB, free: 6.059 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.001209/0.001209, allocations: 193.3 kB / 18.21 MB, free: 5.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.357/1.357, allocations: 222.9 MB / 241.9 MB, free: 15.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 52.52 kB / 300.8 MB, free: 6.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1431/0.1446, allocations: 49.45 MB / 350.2 MB, free: 4.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.009633/0.1543, allocations: 4.318 MB / 354.6 MB, free: 376 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004699/0.1591, allocations: 1.372 MB / 355.9 MB, free: 14.99 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00109/0.1602, allocations: 15.94 kB / 355.9 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007467/0.1611, allocations: 83.31 kB / 356 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001272/0.1624, allocations: 194.5 kB / 356.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001912/0.1643, allocations: 386.7 kB / 356.6 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00251/0.1669, allocations: 1.123 MB / 357.7 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007134/0.1676, allocations: 265.6 kB / 358 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001218/0.1689, allocations: 490.4 kB / 358.5 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001072/0.1699, allocations: 0.5176 MB / 359 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004312/0.1704, allocations: 92 kB / 359.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007496/0.1712, allocations: 147.9 kB / 359.2 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000513/0.1717, allocations: 219.3 kB / 359.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001052/0.1728, allocations: 446 kB / 359.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001463/0.1743, allocations: 0.7873 MB / 360.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.1743, allocations: 0 / 360.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.1743, allocations: 0 / 360.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.871e-05/0.1744, allocations: 0 / 360.6 MB, free: 10.25 MB / 302.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.005702/0.1801, allocations: 1.279 MB / 361.9 MB, free: 8.922 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.991e-05/0.1802, allocations: 19.95 kB / 361.9 MB, free: 8.902 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005374/0.1807, allocations: 84 kB / 362 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001108/0.1818, allocations: 437.6 kB / 362.5 MB, free: 8.352 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001008/0.182, allocations: 58.31 kB / 362.5 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002498/0.1822, allocations: 72.27 kB / 362.6 MB, free: 8.223 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002998/0.1852, allocations: 0.8038 MB / 363.4 MB, free: 7.414 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.35e-05/0.1853, allocations: 11.98 kB / 363.4 MB, free: 7.402 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000143/0.1855, allocations: 24 kB / 363.4 MB, free: 7.379 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.586e-05/0.1855, allocations: 16 kB / 363.4 MB, free: 7.363 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003273/0.1888, allocations: 0.8705 MB / 364.3 MB, free: 6.492 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007098/0.1959, allocations: 2.392 MB / 366.7 MB, free: 3.973 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002288/0.1983, allocations: 0.7113 MB / 367.4 MB, free: 3.254 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001474/0.1998, allocations: 472.2 kB / 367.9 MB, free: 2.793 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001096/0.1999, allocations: 20.97 kB / 367.9 MB, free: 2.773 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002058/0.202, allocations: 0.5439 MB / 368.4 MB, free: 2.211 MB / 302.1 MB Notification: Performance of pre-optimization done (n=86): time 5.37e-06/0.202, allocations: 4 kB / 368.4 MB, free: 2.207 MB / 302.1 MB Notification: Performance of matching and sorting (n=106): time 0.1866/0.3886, allocations: 4.207 MB / 372.6 MB, free: 25.47 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.796e-05/0.3887, allocations: 62.41 kB / 372.7 MB, free: 25.41 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004005/0.3891, allocations: 390.2 kB / 373.1 MB, free: 25.21 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.791e-05/0.3892, allocations: 55.81 kB / 373.1 MB, free: 25.17 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001487/0.3894, allocations: 270.9 kB / 373.4 MB, free: 24.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002159/0.3896, allocations: 362.1 kB / 373.8 MB, free: 24.68 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000337/0.3899, allocations: 192.7 kB / 373.9 MB, free: 24.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.23e-05/0.39, allocations: 373.2 kB / 374.3 MB, free: 24.25 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008915/0.3909, allocations: 439 kB / 374.7 MB, free: 24.1 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009084/0.3918, allocations: 0.529 MB / 375.3 MB, free: 23.88 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001464/0.3933, allocations: 0.7817 MB / 376.1 MB, free: 23.54 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.3933, allocations: 3.938 kB / 376.1 MB, free: 23.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002806/0.3961, allocations: 1.346 MB / 377.4 MB, free: 23.04 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.3962, allocations: 6.125 kB / 377.4 MB, free: 23.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.3962, allocations: 1.312 kB / 377.4 MB, free: 23.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001092/0.3973, allocations: 0.6525 MB / 378.1 MB, free: 22.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007455/0.398, allocations: 204.6 kB / 378.3 MB, free: 22.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003204/0.4013, allocations: 3.433 MB / 381.7 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001119/0.4024, allocations: 175.9 kB / 381.9 MB, free: 19.87 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.134e-05/0.4025, allocations: 39.7 kB / 381.9 MB, free: 19.86 MB / 302.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.0003405/0.4028, allocations: 220 kB / 382.1 MB, free: 19.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001244/0.403, allocations: 74.62 kB / 382.2 MB, free: 19.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001968/0.4032, allocations: 104.5 kB / 382.3 MB, free: 19.55 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-05/0.4032, allocations: 13.88 kB / 382.3 MB, free: 19.55 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.421e-05/0.4032, allocations: 4.609 kB / 382.3 MB, free: 19.55 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.193e-05/0.4032, allocations: 10.02 kB / 382.3 MB, free: 19.55 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004228/0.4075, allocations: 2.522 MB / 384.8 MB, free: 18.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.702e-06/0.4075, allocations: 2.281 kB / 384.8 MB, free: 18.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007555/0.4082, allocations: 179.1 kB / 385 MB, free: 18.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000987/0.4092, allocations: 0.6182 MB / 385.6 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.462e-05/0.4093, allocations: 35.17 kB / 385.7 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002876/0.4122, allocations: 3.224 MB / 388.9 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.4122, allocations: 2 kB / 388.9 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003547/0.4158, allocations: 1.846 MB / 390.7 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003248/0.4161, allocations: 235.1 kB / 391 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001351/0.4163, allocations: 29.48 kB / 391 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001179/0.4175, allocations: 204.5 kB / 391.2 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008025/0.4183, allocations: 386.9 kB / 391.6 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.15e-05/0.4184, allocations: 47.31 kB / 391.6 MB, free: 14.17 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002112/0.4186, allocations: 265.6 kB / 391.9 MB, free: 14.04 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4186, allocations: 0 / 391.9 MB, free: 14.04 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007948/0.4194, allocations: 245.2 kB / 392.1 MB, free: 14 MB / 302.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.0002512/0.4196, allocations: 166.3 kB / 392.3 MB, free: 13.89 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00268/0.4223, allocations: 1.224 MB / 393.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.4223, allocations: 0 / 393.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00125/0.4236, allocations: 0.7351 MB / 394.2 MB, free: 12.97 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007863/0.4244, allocations: 139.8 kB / 394.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003296/0.4277, allocations: 2.301 MB / 396.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002671/0.428, allocations: 0.9356 MB / 397.6 MB, free: 10.47 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002124/0.4282, allocations: 72.78 kB / 397.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of SimCode: time 3.6e-07/0.4282, allocations: 0 / 397.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of Templates: time 0.0159/0.4441, allocations: 17.47 MB / 415.2 MB, free: 9.324 MB / 318.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches