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.001074/0.001074, allocations: 105.4 kB / 18.35 MB, free: 4.762 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.001047/0.001047, allocations: 188.1 kB / 19.29 MB, free: 3.832 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.359/1.359, allocations: 205.1 MB / 225.2 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.001147/0.001147, allocations: 55.92 kB / 282.1 MB, free: 2.453 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08587/0.08703, allocations: 46.63 MB / 328.7 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005573/0.09265, allocations: 4.299 MB / 333 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002198/0.09488, allocations: 1.341 MB / 334.4 MB, free: 14.07 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002079/0.0951, allocations: 11.94 kB / 334.4 MB, free: 14.06 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002952/0.09543, allocations: 114.8 kB / 334.5 MB, free: 13.95 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003322/0.09577, allocations: 234 kB / 334.7 MB, free: 13.71 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008733/0.09665, allocations: 427.1 kB / 335.1 MB, free: 13.3 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009367/0.0976, allocations: 1.135 MB / 336.3 MB, free: 12.16 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003572/0.09797, allocations: 269.6 kB / 336.5 MB, free: 11.88 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005218/0.0985, allocations: 478.6 kB / 337 MB, free: 11.41 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006228/0.09913, allocations: 0.5176 MB / 337.5 MB, free: 10.89 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001494/0.09929, allocations: 96 kB / 337.6 MB, free: 10.8 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002761/0.09958, allocations: 147.9 kB / 337.8 MB, free: 10.66 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002547/0.09984, allocations: 223.3 kB / 338 MB, free: 10.44 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004636/0.1003, allocations: 449.9 kB / 338.4 MB, free: 9.996 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009756/0.1013, allocations: 1.059 MB / 339.5 MB, free: 8.934 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1013, allocations: 0 / 339.5 MB, free: 8.934 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1013, allocations: 0 / 339.5 MB, free: 8.934 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.093e-05/0.1013, allocations: 0 / 339.5 MB, free: 8.934 MB / 286.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.002939/0.1043, allocations: 1.287 MB / 340.8 MB, free: 7.598 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.343e-05/0.1043, allocations: 11.97 kB / 340.8 MB, free: 7.586 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002171/0.1045, allocations: 91.89 kB / 340.9 MB, free: 7.496 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006461/0.1052, allocations: 453.6 kB / 341.3 MB, free: 7.012 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.511e-05/0.1053, allocations: 50.38 kB / 341.4 MB, free: 6.961 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001238/0.1054, allocations: 68.38 kB / 341.4 MB, free: 6.895 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001576/0.107, allocations: 0.8077 MB / 342.2 MB, free: 6.082 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.768e-05/0.107, allocations: 7.906 kB / 342.2 MB, free: 6.074 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.878e-05/0.1071, allocations: 31.98 kB / 342.3 MB, free: 6.043 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.44e-05/0.1071, allocations: 16 kB / 342.3 MB, free: 6.027 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001956/0.1091, allocations: 0.8665 MB / 343.1 MB, free: 5.16 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004086/0.1132, allocations: 2.365 MB / 345.5 MB, free: 2.664 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001461/0.1147, allocations: 0.7189 MB / 346.2 MB, free: 1.934 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009419/0.1156, allocations: 476.2 kB / 346.7 MB, free: 1.465 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.277e-05/0.1157, allocations: 9 kB / 346.7 MB, free: 1.457 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001286/0.117, allocations: 0.5478 MB / 347.3 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of pre-optimization done (n=86): time 3.156e-06/0.117, allocations: 0 / 347.3 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of matching and sorting (n=106): time 0.01054/0.1276, allocations: 4.224 MB / 351.5 MB, free: 12.55 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.133e-05/0.1277, allocations: 64.41 kB / 351.5 MB, free: 12.47 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004194/0.1281, allocations: 393.9 kB / 351.9 MB, free: 12.08 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.771e-05/0.1282, allocations: 53.7 kB / 352 MB, free: 12.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000179/0.1284, allocations: 268.9 kB / 352.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002563/0.1286, allocations: 359 kB / 352.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003123/0.129, allocations: 186.8 kB / 352.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.1291, allocations: 378.8 kB / 353.1 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009802/0.1301, allocations: 438.3 kB / 353.6 MB, free: 10.4 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001039/0.1311, allocations: 0.5306 MB / 354.1 MB, free: 9.852 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001702/0.1329, allocations: 0.7792 MB / 354.9 MB, free: 9.059 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.1329, allocations: 4 kB / 354.9 MB, free: 9.055 MB / 302.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003027/0.1359, allocations: 1.346 MB / 356.2 MB, free: 7.691 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.1359, allocations: 8 kB / 356.2 MB, free: 7.684 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.136, allocations: 0 / 356.2 MB, free: 7.684 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001153/0.1371, allocations: 0.6582 MB / 356.9 MB, free: 7.016 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000814/0.1379, allocations: 207.6 kB / 357.1 MB, free: 6.812 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004093/0.142, allocations: 3.423 MB / 360.5 MB, free: 3.191 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001067/0.1431, allocations: 179.9 kB / 360.7 MB, free: 3.016 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.162e-05/0.1432, allocations: 36 kB / 360.7 MB, free: 2.98 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.0003701/0.1436, allocations: 237.6 kB / 361 MB, free: 2.738 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000145/0.1437, allocations: 71.16 kB / 361 MB, free: 2.668 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002189/0.144, allocations: 107 kB / 361.1 MB, free: 2.562 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.615e-06/0.144, allocations: 8 kB / 361.1 MB, free: 2.555 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.144, allocations: 4 kB / 361.2 MB, free: 2.551 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/0.144, allocations: 3.984 kB / 361.2 MB, free: 2.547 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004548/0.1486, allocations: 2.502 MB / 363.7 MB, free: 15.94 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.504e-06/0.1486, allocations: 8.031 kB / 363.7 MB, free: 15.93 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000793/0.1494, allocations: 171.8 kB / 363.8 MB, free: 15.76 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001072/0.1505, allocations: 0.6152 MB / 364.4 MB, free: 15.14 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.36e-05/0.1506, allocations: 35.95 kB / 364.5 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003586/0.1542, allocations: 3.222 MB / 367.7 MB, free: 11.69 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.1542, allocations: 4.031 kB / 367.7 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003823/0.158, allocations: 1.845 MB / 369.6 MB, free: 9.793 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003861/0.1584, allocations: 240 kB / 369.8 MB, free: 9.539 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001302/0.1585, allocations: 28 kB / 369.8 MB, free: 9.512 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001242/0.1598, allocations: 207.7 kB / 370 MB, free: 9.309 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008615/0.1607, allocations: 376.4 kB / 370.4 MB, free: 8.938 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.66e-05/0.1608, allocations: 43.95 kB / 370.4 MB, free: 8.895 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002819/0.1611, allocations: 267.2 kB / 370.7 MB, free: 8.637 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1611, allocations: 0 / 370.7 MB, free: 8.637 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007551/0.1618, allocations: 252 kB / 370.9 MB, free: 8.391 MB / 318.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.0002742/0.1621, allocations: 160.8 kB / 371.1 MB, free: 8.227 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002476/0.1646, allocations: 1.189 MB / 372.3 MB, free: 7.027 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.1646, allocations: 4.062 kB / 372.3 MB, free: 7.023 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001611/0.1662, allocations: 0.7778 MB / 373.1 MB, free: 6.23 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007745/0.167, allocations: 137.8 kB / 373.2 MB, free: 6.098 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003673/0.1707, allocations: 1.948 MB / 375.1 MB, free: 4.098 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004921/0.1712, allocations: 0.9283 MB / 376.1 MB, free: 3.141 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003121/0.1715, allocations: 81.45 kB / 376.2 MB, free: 3.059 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001951/0.1717, allocations: 67.41 kB / 376.2 MB, free: 2.996 MB / 318.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1717, allocations: 0 / 376.2 MB, free: 2.996 MB / 318.1 MB Notification: Performance of Templates: time 0.1578/0.3296, allocations: 17.55 MB / 393.8 MB, free: 48.29 MB / 318.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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins1/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