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.001627/0.001627, allocations: 110.2 kB / 18.25 MB, free: 4.898 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.002244/0.002243, allocations: 195.3 kB / 19.18 MB, free: 3.977 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.547/1.547, allocations: 205.1 MB / 225.1 MB, free: 12.29 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.001979/0.001979, allocations: 51.92 kB / 281.3 MB, free: 3.16 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09948/0.1015, allocations: 46.63 MB / 328 MB, free: 4.465 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005549/0.1071, allocations: 4.293 MB / 332.2 MB, free: 136 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002797/0.1099, allocations: 1.345 MB / 333.6 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004016/0.1103, allocations: 15.94 kB / 333.6 MB, free: 14.77 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003629/0.1108, allocations: 114.8 kB / 333.7 MB, free: 14.66 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000466/0.1112, allocations: 222 kB / 333.9 MB, free: 14.44 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001065/0.1123, allocations: 435.2 kB / 334.4 MB, free: 14.01 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001062/0.1134, allocations: 1.127 MB / 335.5 MB, free: 12.88 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003917/0.1138, allocations: 269.8 kB / 335.7 MB, free: 12.61 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005689/0.1144, allocations: 474.6 kB / 336.2 MB, free: 12.14 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005913/0.115, allocations: 0.5138 MB / 336.7 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001461/0.1151, allocations: 92 kB / 336.8 MB, free: 11.54 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002903/0.1154, allocations: 140 kB / 337 MB, free: 11.4 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002602/0.1157, allocations: 235.2 kB / 337.2 MB, free: 11.17 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004008/0.1161, allocations: 442 kB / 337.6 MB, free: 10.73 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001008/0.1171, allocations: 1.051 MB / 338.7 MB, free: 9.68 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.735e-06/0.1171, allocations: 4 kB / 338.7 MB, free: 9.676 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1171, allocations: 0 / 338.7 MB, free: 9.676 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.267e-05/0.1172, allocations: 0 / 338.7 MB, free: 9.676 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.003179/0.1204, allocations: 1.287 MB / 340 MB, free: 8.34 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.1204, allocations: 8.031 kB / 340 MB, free: 8.332 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002306/0.1206, allocations: 87.91 kB / 340 MB, free: 8.246 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005398/0.1212, allocations: 445.6 kB / 340.5 MB, free: 7.77 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.064e-05/0.1213, allocations: 54.38 kB / 340.5 MB, free: 7.715 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001241/0.1214, allocations: 64.38 kB / 340.6 MB, free: 7.652 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00163/0.123, allocations: 0.8077 MB / 341.4 MB, free: 6.84 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.606e-05/0.1231, allocations: 11.91 kB / 341.4 MB, free: 6.828 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.777e-05/0.1232, allocations: 31.92 kB / 341.5 MB, free: 6.797 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.649e-05/0.1232, allocations: 20 kB / 341.5 MB, free: 6.777 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002067/0.1253, allocations: 0.8666 MB / 342.3 MB, free: 5.91 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004345/0.1296, allocations: 2.388 MB / 344.7 MB, free: 3.391 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001526/0.1312, allocations: 0.7149 MB / 345.4 MB, free: 2.664 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009847/0.1322, allocations: 476.3 kB / 345.9 MB, free: 2.195 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.062e-05/0.1322, allocations: 9 kB / 345.9 MB, free: 2.188 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001265/0.1335, allocations: 0.5517 MB / 346.5 MB, free: 1.621 MB / 286.1 MB Notification: Performance of pre-optimization done (n=86): time 3.727e-06/0.1335, allocations: 0 / 346.5 MB, free: 1.621 MB / 286.1 MB Notification: Performance of matching and sorting (n=106): time 0.01163/0.1452, allocations: 4.224 MB / 350.7 MB, free: 13.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.467e-05/0.1452, allocations: 60.41 kB / 350.7 MB, free: 13.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004313/0.1457, allocations: 389.9 kB / 351.1 MB, free: 12.81 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.222e-05/0.1458, allocations: 61.69 kB / 351.2 MB, free: 12.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001893/0.146, allocations: 272.9 kB / 351.5 MB, free: 12.47 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000289/0.1463, allocations: 359 kB / 351.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000309/0.1466, allocations: 186.8 kB / 352 MB, free: 11.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.1468, allocations: 374.7 kB / 352.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009957/0.1478, allocations: 438.4 kB / 352.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001089/0.1489, allocations: 0.5267 MB / 353.3 MB, free: 10.58 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001745/0.1506, allocations: 0.7792 MB / 354.1 MB, free: 9.789 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.1506, allocations: 0 / 354.1 MB, free: 9.789 MB / 302.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003254/0.1539, allocations: 1.354 MB / 355.4 MB, free: 8.418 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.458e-05/0.1539, allocations: 4 kB / 355.4 MB, free: 8.414 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.154, allocations: 4 kB / 355.5 MB, free: 8.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001326/0.1553, allocations: 0.6465 MB / 356.1 MB, free: 7.754 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008172/0.1561, allocations: 207.6 kB / 356.3 MB, free: 7.551 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004163/0.1603, allocations: 3.43 MB / 359.7 MB, free: 3.922 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001257/0.1616, allocations: 179.9 kB / 359.9 MB, free: 3.746 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001078/0.1617, allocations: 35.98 kB / 359.9 MB, free: 3.711 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.0005294/0.1622, allocations: 233.5 kB / 360.2 MB, free: 3.473 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001892/0.1624, allocations: 71.16 kB / 360.2 MB, free: 3.402 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002618/0.1627, allocations: 107 kB / 360.3 MB, free: 3.297 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.558e-06/0.1627, allocations: 12 kB / 360.4 MB, free: 3.285 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.1627, allocations: 0 / 360.4 MB, free: 3.285 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.103e-05/0.1627, allocations: 7.969 kB / 360.4 MB, free: 3.277 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004927/0.1677, allocations: 2.526 MB / 362.9 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-06/0.1677, allocations: 0 / 362.9 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000831/0.1685, allocations: 180 kB / 363.1 MB, free: 480 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001108/0.1697, allocations: 0.6192 MB / 363.7 MB, free: 15.84 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.932e-05/0.1698, allocations: 35.97 kB / 363.7 MB, free: 15.8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003824/0.1736, allocations: 3.226 MB / 366.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.1736, allocations: 0 / 366.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004184/0.1778, allocations: 1.848 MB / 368.8 MB, free: 10.49 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004345/0.1783, allocations: 232.1 kB / 369 MB, free: 10.24 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001723/0.1785, allocations: 35.94 kB / 369.1 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001476/0.1799, allocations: 207.7 kB / 369.3 MB, free: 10 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008968/0.1809, allocations: 380.3 kB / 369.6 MB, free: 9.633 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.722e-05/0.181, allocations: 39.97 kB / 369.7 MB, free: 9.594 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003094/0.1813, allocations: 267.1 kB / 369.9 MB, free: 9.332 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1813, allocations: 3.938 kB / 369.9 MB, free: 9.328 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009494/0.1822, allocations: 248 kB / 370.2 MB, free: 9.086 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.0003202/0.1826, allocations: 156.9 kB / 370.3 MB, free: 8.926 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003242/0.1858, allocations: 1.231 MB / 371.6 MB, free: 7.684 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.1858, allocations: 0 / 371.6 MB, free: 7.684 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001572/0.1874, allocations: 0.7312 MB / 372.3 MB, free: 6.938 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009734/0.1884, allocations: 135 kB / 372.4 MB, free: 6.809 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004348/0.1928, allocations: 1.996 MB / 374.4 MB, free: 4.754 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005751/0.1934, allocations: 0.9283 MB / 375.3 MB, free: 3.797 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002645/0.1936, allocations: 75.34 kB / 375.4 MB, free: 3.727 MB / 318.1 MB Notification: Performance of SimCode: time 9.72e-07/0.1937, allocations: 4 kB / 375.4 MB, free: 3.723 MB / 318.1 MB Notification: Performance of Templates: time 0.1575/0.3511, allocations: 17.46 MB / 392.9 MB, free: 48.34 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 -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