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.0009075/0.0009074, allocations: 93.69 kB / 17.3 MB, free: 6.344 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.0007867/0.0007866, allocations: 178.9 kB / 18.21 MB, free: 5.531 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.546/1.546, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0006674/0.0006674, allocations: 12 kB / 281.4 MB, free: 3.438 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1292, allocations: 47.59 MB / 329 MB, free: 3.781 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.004085/0.1333, allocations: 3.921 MB / 332.9 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002433/0.1357, allocations: 1.326 MB / 334.2 MB, free: 14.5 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002376/0.136, allocations: 11.94 kB / 334.2 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002536/0.1363, allocations: 87.3 kB / 334.3 MB, free: 14.4 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003688/0.1366, allocations: 194.4 kB / 334.5 MB, free: 14.21 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009149/0.1376, allocations: 375.5 kB / 334.9 MB, free: 13.84 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009758/0.1385, allocations: 1.077 MB / 335.9 MB, free: 12.76 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003501/0.1389, allocations: 227.1 kB / 336.2 MB, free: 12.52 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005523/0.1395, allocations: 422.4 kB / 336.6 MB, free: 12.11 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005087/0.14, allocations: 482.1 kB / 337 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.897e-05/0.1401, allocations: 48 kB / 337.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002839/0.1404, allocations: 99.89 kB / 337.2 MB, free: 11.49 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002274/0.1406, allocations: 171.3 kB / 337.3 MB, free: 11.32 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003688/0.141, allocations: 423.6 kB / 337.8 MB, free: 10.9 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000872/0.1419, allocations: 0.9885 MB / 338.8 MB, free: 9.91 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1419, allocations: 0 / 338.8 MB, free: 9.91 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1419, allocations: 0 / 338.8 MB, free: 9.91 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.198e-05/0.1419, allocations: 0 / 338.8 MB, free: 9.91 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.00302/0.1449, allocations: 1.221 MB / 340 MB, free: 8.641 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.145, allocations: 8.031 kB / 340 MB, free: 8.633 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002436/0.1452, allocations: 87.91 kB / 340.1 MB, free: 8.547 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005969/0.1458, allocations: 441.6 kB / 340.5 MB, free: 8.074 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.614e-05/0.1459, allocations: 62.36 kB / 340.6 MB, free: 8.012 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001537/0.1461, allocations: 76.27 kB / 340.6 MB, free: 7.938 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001695/0.1478, allocations: 0.8233 MB / 341.5 MB, free: 7.109 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.12e-05/0.1478, allocations: 4 kB / 341.5 MB, free: 7.105 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001008/0.1479, allocations: 24 kB / 341.5 MB, free: 7.082 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.7e-05/0.148, allocations: 16 kB / 341.5 MB, free: 7.066 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002035/0.15, allocations: 0.9017 MB / 342.4 MB, free: 6.164 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0044/0.1544, allocations: 2.447 MB / 344.8 MB, free: 3.586 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001494/0.1559, allocations: 0.7425 MB / 345.6 MB, free: 2.832 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009312/0.1569, allocations: 484.3 kB / 346.1 MB, free: 2.359 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.647e-05/0.157, allocations: 9 kB / 346.1 MB, free: 2.352 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001197/0.1582, allocations: 0.571 MB / 346.6 MB, free: 1.766 MB / 286.1 MB Notification: Performance of pre-optimization done (n=86): time 2.745e-06/0.1582, allocations: 0 / 346.6 MB, free: 1.766 MB / 286.1 MB Notification: Performance of matching and sorting (n=106): time 0.01173/0.1699, allocations: 4.478 MB / 351.1 MB, free: 13.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.65e-05/0.17, allocations: 68.41 kB / 351.2 MB, free: 13.08 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005421/0.1706, allocations: 393.8 kB / 351.6 MB, free: 12.69 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001213/0.1707, allocations: 57.7 kB / 351.6 MB, free: 12.63 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002543/0.171, allocations: 269 kB / 351.9 MB, free: 12.36 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003376/0.1713, allocations: 354.9 kB / 352.2 MB, free: 12.01 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001456/0.1715, allocations: 93.66 kB / 352.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002184/0.1717, allocations: 374.8 kB / 352.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001082/0.1728, allocations: 458.4 kB / 353.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001046/0.1739, allocations: 0.5423 MB / 353.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001765/0.1756, allocations: 0.8104 MB / 354.5 MB, free: 9.699 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.1756, allocations: 0 / 354.5 MB, free: 9.699 MB / 302.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003417/0.1791, allocations: 1.389 MB / 355.9 MB, free: 8.293 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.764e-05/0.1791, allocations: 7.984 kB / 355.9 MB, free: 8.285 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.1791, allocations: 0 / 355.9 MB, free: 8.285 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001174/0.1803, allocations: 0.6505 MB / 356.5 MB, free: 7.625 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000777/0.1811, allocations: 207.7 kB / 356.7 MB, free: 7.422 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004187/0.1853, allocations: 3.318 MB / 360.1 MB, free: 3.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001281/0.1866, allocations: 235.9 kB / 360.3 MB, free: 3.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.93e-05/0.1867, allocations: 35.98 kB / 360.3 MB, free: 3.645 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.0005171/0.1872, allocations: 233.6 kB / 360.6 MB, free: 3.41 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001271/0.1873, allocations: 75.09 kB / 360.6 MB, free: 3.336 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000235/0.1876, allocations: 99.02 kB / 360.7 MB, free: 3.238 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.477e-06/0.1876, allocations: 16 kB / 360.7 MB, free: 3.223 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.094e-05/0.1876, allocations: 48 / 360.7 MB, free: 3.223 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.328e-05/0.1876, allocations: 11.95 kB / 360.8 MB, free: 3.211 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004683/0.1923, allocations: 2.558 MB / 363.3 MB, free: 0.543 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.1923, allocations: 0 / 363.3 MB, free: 0.543 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007629/0.1931, allocations: 191.9 kB / 363.5 MB, free: 364 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001026/0.1942, allocations: 0.6114 MB / 364.1 MB, free: 15.73 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.207e-05/0.1942, allocations: 39.95 kB / 364.2 MB, free: 15.7 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003742/0.198, allocations: 3.132 MB / 367.3 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.282e-06/0.198, allocations: 4.219 kB / 367.3 MB, free: 12.37 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0039/0.2019, allocations: 1.902 MB / 369.2 MB, free: 10.42 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003772/0.2023, allocations: 236.1 kB / 369.4 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001231/0.2024, allocations: 28 kB / 369.4 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001422/0.2039, allocations: 267.7 kB / 369.7 MB, free: 9.883 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008619/0.2047, allocations: 372.4 kB / 370.1 MB, free: 9.52 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.875e-05/0.2048, allocations: 47.95 kB / 370.1 MB, free: 9.473 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002814/0.2051, allocations: 271.1 kB / 370.4 MB, free: 9.207 MB / 318.1 MB Notification: Performance of sort global known variables: time 3e-07/0.2051, allocations: 0 / 370.4 MB, free: 9.207 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007745/0.2059, allocations: 244 kB / 370.6 MB, free: 8.969 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.0003002/0.2062, allocations: 164.8 kB / 370.8 MB, free: 8.801 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002605/0.2088, allocations: 1.212 MB / 372 MB, free: 7.578 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.2088, allocations: 4 kB / 372 MB, free: 7.574 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001529/0.2104, allocations: 0.7976 MB / 372.8 MB, free: 6.762 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009029/0.2113, allocations: 117.4 kB / 372.9 MB, free: 6.648 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004178/0.2155, allocations: 2.459 MB / 375.4 MB, free: 4.145 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005498/0.2161, allocations: 0.9322 MB / 376.3 MB, free: 3.18 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003539/0.2164, allocations: 85.44 kB / 376.4 MB, free: 3.094 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001753/0.2166, allocations: 59.41 kB / 376.4 MB, free: 3.039 MB / 318.1 MB Notification: Performance of SimCode: time 9.31e-07/0.2166, allocations: 0 / 376.4 MB, free: 3.039 MB / 318.1 MB Notification: Performance of Templates: time 0.201/0.4176, allocations: 15.95 MB / 392.4 MB, free: 48.39 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches