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.0008146/0.0008148, allocations: 90.41 kB / 16.65 MB, free: 6.594 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.001086/0.001086, allocations: 184.5 kB / 17.56 MB, free: 6.199 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.365/1.365, allocations: 223.3 MB / 241.6 MB, free: 14.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002489/0.000249, allocations: 13.16 kB / 301.4 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1028, allocations: 50.42 MB / 351.8 MB, free: 3.457 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.004513/0.1073, allocations: 3.912 MB / 355.7 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00324/0.1106, allocations: 1.36 MB / 357.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004071/0.1111, allocations: 11.94 kB / 357.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003499/0.1114, allocations: 87.3 kB / 357.2 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004673/0.1119, allocations: 194.4 kB / 357.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001184/0.1131, allocations: 378.7 kB / 357.8 MB, free: 13.49 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009376/0.114, allocations: 1.069 MB / 358.8 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003583/0.1144, allocations: 230.8 kB / 359.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005052/0.1149, allocations: 422.5 kB / 359.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004877/0.1154, allocations: 478.1 kB / 359.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001031/0.1155, allocations: 48 kB / 360 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002437/0.1158, allocations: 99.95 kB / 360.1 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001895/0.116, allocations: 171.3 kB / 360.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004005/0.1164, allocations: 427.7 kB / 360.7 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009534/0.1173, allocations: 0.981 MB / 361.6 MB, free: 9.574 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.446e-06/0.1174, allocations: 0 / 361.6 MB, free: 9.574 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.517e-06/0.1174, allocations: 3.938 kB / 361.7 MB, free: 9.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.157e-05/0.1174, allocations: 0 / 361.7 MB, free: 9.57 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.00308/0.1205, allocations: 1.221 MB / 362.9 MB, free: 8.301 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.1205, allocations: 8.031 kB / 362.9 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002539/0.1208, allocations: 84 kB / 363 MB, free: 8.211 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005584/0.1214, allocations: 441.6 kB / 363.4 MB, free: 7.738 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.853e-05/0.1214, allocations: 54.38 kB / 363.4 MB, free: 7.684 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001282/0.1216, allocations: 72.28 kB / 363.5 MB, free: 7.613 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001727/0.1233, allocations: 0.8233 MB / 364.3 MB, free: 6.785 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.082e-05/0.1233, allocations: 7.906 kB / 364.4 MB, free: 6.777 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.038e-05/0.1234, allocations: 28 kB / 364.4 MB, free: 6.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.74e-05/0.1235, allocations: 19.94 kB / 364.4 MB, free: 6.73 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002055/0.1255, allocations: 0.8978 MB / 365.3 MB, free: 5.832 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004574/0.1301, allocations: 2.455 MB / 367.7 MB, free: 3.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001494/0.1316, allocations: 0.7418 MB / 368.5 MB, free: 2.504 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009473/0.1326, allocations: 488.2 kB / 369 MB, free: 2.027 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.358e-05/0.1327, allocations: 12.98 kB / 369 MB, free: 2.016 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001247/0.1339, allocations: 0.5672 MB / 369.5 MB, free: 1.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=86): time 3.116e-06/0.1339, allocations: 4 kB / 369.6 MB, free: 1.426 MB / 302.1 MB Notification: Performance of matching and sorting (n=106): time 0.2303/0.3642, allocations: 4.464 MB / 374 MB, free: 23.74 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.349e-05/0.3643, allocations: 73.92 kB / 374.1 MB, free: 23.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004733/0.3648, allocations: 397.1 kB / 374.5 MB, free: 23.55 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.82e-05/0.3649, allocations: 56.3 kB / 374.5 MB, free: 23.52 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001671/0.3651, allocations: 268.6 kB / 374.8 MB, free: 23.36 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002465/0.3653, allocations: 354.9 kB / 375.1 MB, free: 23.15 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001333/0.3654, allocations: 90.81 kB / 375.2 MB, free: 23.11 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001047/0.3656, allocations: 373.4 kB / 375.6 MB, free: 22.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001013/0.3666, allocations: 454.1 kB / 376 MB, free: 22.62 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001098/0.3677, allocations: 0.5467 MB / 376.6 MB, free: 22.39 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001677/0.3694, allocations: 0.8158 MB / 377.4 MB, free: 22.05 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.3694, allocations: 1.281 kB / 377.4 MB, free: 22.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003013/0.3724, allocations: 1.379 MB / 378.8 MB, free: 21.53 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.3724, allocations: 4.656 kB / 378.8 MB, free: 21.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.3724, allocations: 2 kB / 378.8 MB, free: 21.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001149/0.3736, allocations: 0.6584 MB / 379.4 MB, free: 21.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007904/0.3744, allocations: 205.5 kB / 379.6 MB, free: 21.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004071/0.3785, allocations: 3.312 MB / 383 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001419/0.3799, allocations: 237.3 kB / 383.2 MB, free: 18.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.79e-05/0.38, allocations: 40.23 kB / 383.2 MB, free: 18.5 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.0004122/0.3804, allocations: 221.9 kB / 383.4 MB, free: 18.31 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000138/0.3806, allocations: 71.19 kB / 383.5 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002426/0.3808, allocations: 109 kB / 383.6 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.428e-05/0.3809, allocations: 9.719 kB / 383.6 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.005e-05/0.3809, allocations: 3.938 kB / 383.6 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.272e-05/0.3809, allocations: 6.219 kB / 383.6 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004695/0.3856, allocations: 2.56 MB / 386.2 MB, free: 16.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.746e-06/0.3856, allocations: 9.484 kB / 386.2 MB, free: 16.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007788/0.3864, allocations: 178.9 kB / 386.4 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001059/0.3875, allocations: 0.6189 MB / 387 MB, free: 16.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.255e-05/0.3876, allocations: 42.62 kB / 387 MB, free: 16.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003159/0.3907, allocations: 3.133 MB / 390.2 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.3908, allocations: 2.25 kB / 390.2 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003879/0.3946, allocations: 1.888 MB / 392.1 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003949/0.3951, allocations: 234.2 kB / 392.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001316/0.3952, allocations: 36.62 kB / 392.3 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001455/0.3967, allocations: 276.3 kB / 392.6 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009216/0.3976, allocations: 367.6 kB / 393 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.864e-05/0.3977, allocations: 42.16 kB / 393 MB, free: 12.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000333/0.398, allocations: 274.2 kB / 393.3 MB, free: 12.79 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3981, allocations: 0 / 393.3 MB, free: 12.79 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001054/0.3991, allocations: 245.1 kB / 393.5 MB, free: 12.76 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.0002911/0.3994, allocations: 159.4 kB / 393.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002486/0.4019, allocations: 1.227 MB / 394.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.4019, allocations: 0 / 394.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001373/0.4033, allocations: 0.7892 MB / 395.7 MB, free: 11.62 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000895/0.4042, allocations: 140.8 kB / 395.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003464/0.4077, allocations: 2.457 MB / 398.3 MB, free: 9.605 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002925/0.408, allocations: 0.9399 MB / 399.2 MB, free: 8.637 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003249/0.4083, allocations: 81.44 kB / 399.3 MB, free: 8.555 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001663/0.4085, allocations: 55.42 kB / 399.3 MB, free: 8.5 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4085, allocations: 3.719 kB / 399.4 MB, free: 8.5 MB / 302.1 MB Notification: Performance of Templates: time 0.02203/0.4305, allocations: 15.95 MB / 415.3 MB, free: 8.625 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins/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