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/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 3.2.3+maint.om/package.mo", uses=false) 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001129/0.001129, allocations: 114.5 kB / 17.73 MB, free: 5.34 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.00122/0.00122, allocations: 183 kB / 18.66 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.464/1.464, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 51.92 kB / 328.5 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1105, allocations: 46.61 MB / 375.1 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.007271/0.1178, allocations: 4.303 MB / 379.4 MB, free: 240 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2596/0.3774, allocations: 1.335 MB / 380.8 MB, free: 9.688 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007472/0.3784, allocations: 12.81 kB / 380.8 MB, free: 9.688 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004406/0.3788, allocations: 112.2 kB / 380.9 MB, free: 9.684 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004596/0.3793, allocations: 236.9 kB / 381.1 MB, free: 9.57 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001321/0.3806, allocations: 420 kB / 381.5 MB, free: 9.551 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001491/0.3821, allocations: 1.139 MB / 382.7 MB, free: 9.359 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005185/0.3826, allocations: 269.3 kB / 382.9 MB, free: 9.305 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001342/0.384, allocations: 489.9 kB / 383.4 MB, free: 9.215 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001069/0.3851, allocations: 0.5113 MB / 383.9 MB, free: 9.004 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001948/0.3853, allocations: 98.16 kB / 384 MB, free: 9 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004088/0.3857, allocations: 146.8 kB / 384.2 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003182/0.386, allocations: 226 kB / 384.4 MB, free: 8.852 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005008/0.3865, allocations: 441.5 kB / 384.8 MB, free: 8.602 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001613/0.3882, allocations: 1.065 MB / 385.9 MB, free: 8.219 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.992e-06/0.3882, allocations: 1.906 kB / 385.9 MB, free: 8.219 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.3882, allocations: 1.219 kB / 385.9 MB, free: 8.219 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.008e-05/0.3882, allocations: 4 kB / 385.9 MB, free: 8.215 MB / 318.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.00383/0.3921, allocations: 1.282 MB / 387.2 MB, free: 7.477 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.207e-05/0.3921, allocations: 8.969 kB / 387.2 MB, free: 7.477 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003234/0.3925, allocations: 85.81 kB / 387.3 MB, free: 7.438 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008505/0.3933, allocations: 457.2 kB / 387.7 MB, free: 7.094 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.359e-05/0.3934, allocations: 54.39 kB / 387.8 MB, free: 7.07 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001805/0.3936, allocations: 73.34 kB / 387.8 MB, free: 7.043 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002213/0.3958, allocations: 0.813 MB / 388.7 MB, free: 6.738 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.503e-05/0.3959, allocations: 5.141 kB / 388.7 MB, free: 6.738 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.811e-05/0.396, allocations: 25.53 kB / 388.7 MB, free: 6.719 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.296e-05/0.396, allocations: 15.47 kB / 388.7 MB, free: 6.719 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002232/0.3982, allocations: 0.8694 MB / 389.6 MB, free: 6.457 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00504/0.4033, allocations: 2.363 MB / 391.9 MB, free: 5.145 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001684/0.405, allocations: 0.7179 MB / 392.7 MB, free: 4.855 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001078/0.4061, allocations: 472.3 kB / 393.1 MB, free: 4.676 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.685e-05/0.4062, allocations: 12.89 kB / 393.1 MB, free: 4.676 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001312/0.4075, allocations: 0.5492 MB / 393.7 MB, free: 4.465 MB / 318.1 MB Notification: Performance of pre-optimization done (n=86): time 2.845e-06/0.4075, allocations: 0 / 393.7 MB, free: 4.465 MB / 318.1 MB Notification: Performance of matching and sorting (n=106): time 0.01195/0.4195, allocations: 4.229 MB / 397.9 MB, free: 2.504 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.633e-05/0.4196, allocations: 64.02 kB / 398 MB, free: 2.441 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006414/0.4202, allocations: 392.8 kB / 398.4 MB, free: 2.238 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001084/0.4203, allocations: 58.34 kB / 398.4 MB, free: 2.184 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000206/0.4205, allocations: 272.2 kB / 398.7 MB, free: 1.938 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002536/0.4208, allocations: 364.8 kB / 399 MB, free: 1.629 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003314/0.4211, allocations: 183.1 kB / 399.2 MB, free: 1.516 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.4213, allocations: 376.6 kB / 399.6 MB, free: 1.152 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001007/0.4223, allocations: 436.3 kB / 400 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00109/0.4234, allocations: 0.5284 MB / 400.5 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001771/0.4252, allocations: 0.7792 MB / 401.3 MB, free: 256 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.4252, allocations: 0 / 401.3 MB, free: 256 kB / 318.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003666/0.4288, allocations: 1.359 MB / 402.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.732e-05/0.4289, allocations: 9.562 kB / 402.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.819e-06/0.4289, allocations: 1.469 kB / 402.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00139/0.4303, allocations: 0.6562 MB / 403.3 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008305/0.4311, allocations: 201.9 kB / 403.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004683/0.4358, allocations: 3.433 MB / 407 MB, free: 12.1 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00136/0.4372, allocations: 173.5 kB / 407.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.873e-05/0.4373, allocations: 40.8 kB / 407.2 MB, free: 12 MB / 334.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.0006108/0.4379, allocations: 223 kB / 407.4 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001789/0.4381, allocations: 71.06 kB / 407.5 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002303/0.4384, allocations: 102.2 kB / 407.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.198e-05/0.4384, allocations: 10.69 kB / 407.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.462e-05/0.4384, allocations: 3.938 kB / 407.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.402e-05/0.4384, allocations: 9.078 kB / 407.6 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00483/0.4433, allocations: 2.493 MB / 410.1 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.087e-06/0.4433, allocations: 5.219 kB / 410.1 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007992/0.4441, allocations: 178.5 kB / 410.3 MB, free: 9.969 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001206/0.4453, allocations: 0.6165 MB / 410.9 MB, free: 9.664 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001056/0.4454, allocations: 33.59 kB / 410.9 MB, free: 9.641 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004612/0.4501, allocations: 3.221 MB / 414.1 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/0.4501, allocations: 6.719 kB / 414.1 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004252/0.4544, allocations: 1.85 MB / 416 MB, free: 5.004 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005188/0.4549, allocations: 224.2 kB / 416.2 MB, free: 4.766 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000191/0.4551, allocations: 32 kB / 416.2 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001394/0.4565, allocations: 211.7 kB / 416.4 MB, free: 4.527 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009003/0.4574, allocations: 384.3 kB / 416.8 MB, free: 4.152 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.082e-05/0.4575, allocations: 43.91 kB / 416.9 MB, free: 4.109 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003748/0.4579, allocations: 271.1 kB / 417.1 MB, free: 3.844 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4579, allocations: 0 / 417.1 MB, free: 3.844 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001087/0.459, allocations: 248 kB / 417.4 MB, free: 3.602 MB / 334.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.0003773/0.4594, allocations: 163.9 kB / 417.5 MB, free: 3.434 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002633/0.462, allocations: 1.2 MB / 418.7 MB, free: 2.227 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.462, allocations: 0 / 418.7 MB, free: 2.227 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001595/0.4636, allocations: 0.782 MB / 419.5 MB, free: 1.43 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008548/0.4645, allocations: 137.9 kB / 419.6 MB, free: 1.301 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004029/0.4685, allocations: 1.941 MB / 421.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007366/0.4693, allocations: 0.9322 MB / 422.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004/0.4697, allocations: 85.38 kB / 422.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002311/0.4699, allocations: 59.42 kB / 422.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4699, allocations: 0 / 422.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of Templates: time 0.0335/0.5034, allocations: 17.73 MB / 440.4 MB, free: 12.47 MB / 366.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches