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.000798/0.0007977, allocations: 89.08 kB / 16.31 MB, free: 6.449 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.0008472/0.0008472, allocations: 181.4 kB / 17.21 MB, free: 6.32 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.358/1.358, allocations: 223.3 MB / 241.2 MB, free: 272 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003949/0.000395, allocations: 4 kB / 300.8 MB, free: 6.43 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1215, allocations: 50.4 MB / 351.2 MB, free: 4.012 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.004535/0.126, allocations: 3.713 MB / 354.9 MB, free: 276 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002771/0.1288, allocations: 1.333 MB / 356.3 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002863/0.1291, allocations: 11.94 kB / 356.3 MB, free: 14.92 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002901/0.1294, allocations: 87.31 kB / 356.4 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004452/0.1299, allocations: 198.4 kB / 356.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009393/0.1309, allocations: 330.7 kB / 356.9 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009696/0.1318, allocations: 0.9985 MB / 357.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003415/0.1322, allocations: 195.2 kB / 358.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005381/0.1327, allocations: 414.6 kB / 358.5 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005203/0.1333, allocations: 462.3 kB / 358.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.7e-05/0.1334, allocations: 44 kB / 359 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002458/0.1336, allocations: 103.9 kB / 359.1 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000204/0.1338, allocations: 175.3 kB / 359.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001907/0.134, allocations: 157.3 kB / 359.4 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007449/0.1348, allocations: 0.7365 MB / 360.1 MB, free: 11.04 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.1348, allocations: 3.938 kB / 360.1 MB, free: 11.03 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1348, allocations: 0 / 360.1 MB, free: 11.03 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.07e-05/0.1348, allocations: 0 / 360.1 MB, free: 11.03 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.002779/0.1376, allocations: 1.224 MB / 361.4 MB, free: 9.758 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.1377, allocations: 8.031 kB / 361.4 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002404/0.1379, allocations: 87.06 kB / 361.5 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005587/0.1385, allocations: 424.7 kB / 361.9 MB, free: 9.211 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.364e-05/0.1385, allocations: 54 kB / 361.9 MB, free: 9.156 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001229/0.1387, allocations: 75.84 kB / 362 MB, free: 9.082 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001654/0.1403, allocations: 0.8115 MB / 362.8 MB, free: 8.266 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.808e-05/0.1404, allocations: 11.89 kB / 362.8 MB, free: 8.254 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.53e-05/0.1405, allocations: 31.95 kB / 362.9 MB, free: 8.223 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.751e-05/0.1405, allocations: 20 kB / 362.9 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00191/0.1424, allocations: 0.8978 MB / 363.8 MB, free: 7.305 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004108/0.1465, allocations: 2.439 MB / 366.2 MB, free: 4.734 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001459/0.148, allocations: 0.7379 MB / 367 MB, free: 3.996 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009401/0.1489, allocations: 492.2 kB / 367.4 MB, free: 3.516 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.321e-05/0.149, allocations: 16.98 kB / 367.5 MB, free: 3.496 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001188/0.1502, allocations: 0.5634 MB / 368 MB, free: 2.918 MB / 302.1 MB Notification: Performance of pre-optimization done (n=86): time 3.707e-06/0.1503, allocations: 0 / 368 MB, free: 2.918 MB / 302.1 MB Notification: Performance of matching and sorting (n=106): time 0.2034/0.3537, allocations: 4.464 MB / 372.5 MB, free: 24.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.768e-05/0.3538, allocations: 62.44 kB / 372.5 MB, free: 24.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005066/0.3543, allocations: 384.2 kB / 372.9 MB, free: 24.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.222e-05/0.3544, allocations: 56.02 kB / 373 MB, free: 24.13 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002225/0.3546, allocations: 272.1 kB / 373.2 MB, free: 23.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002855/0.3549, allocations: 365.8 kB / 373.6 MB, free: 23.76 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.023e-05/0.355, allocations: 22.92 kB / 373.6 MB, free: 23.76 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.3551, allocations: 375.8 kB / 374 MB, free: 23.45 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009905/0.3561, allocations: 453.2 kB / 374.4 MB, free: 23.45 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009754/0.3571, allocations: 0.5457 MB / 375 MB, free: 23.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008324/0.3579, allocations: 394.3 kB / 375.4 MB, free: 23.1 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.3579, allocations: 0 / 375.4 MB, free: 23.1 MB / 302.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002809/0.3608, allocations: 1.363 MB / 376.7 MB, free: 22.61 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.146e-05/0.3608, allocations: 6.656 kB / 376.7 MB, free: 22.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.3608, allocations: 2.016 kB / 376.7 MB, free: 22.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001288/0.3621, allocations: 0.6515 MB / 377.4 MB, free: 22.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007983/0.3629, allocations: 215.5 kB / 377.6 MB, free: 22.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003699/0.3666, allocations: 3.298 MB / 380.9 MB, free: 19.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001101/0.3677, allocations: 235 kB / 381.1 MB, free: 19.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.573e-05/0.3678, allocations: 37.95 kB / 381.2 MB, free: 19.58 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,$whenCondition1,elastoGap.contact,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,massWithStopAndFriction.free,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 7,1 5,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003411/0.3682, allocations: 225.8 kB / 381.4 MB, free: 19.39 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001145/0.3683, allocations: 72.61 kB / 381.4 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002115/0.3685, allocations: 100 kB / 381.5 MB, free: 19.28 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.3685, allocations: 16.03 kB / 381.6 MB, free: 19.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.549e-05/0.3685, allocations: 0 / 381.6 MB, free: 19.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.383e-05/0.3686, allocations: 4.734 kB / 381.6 MB, free: 19.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004614/0.3732, allocations: 2.547 MB / 384.1 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.895e-06/0.3732, allocations: 7.359 kB / 384.1 MB, free: 18.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008054/0.374, allocations: 190.5 kB / 384.3 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001085/0.3751, allocations: 0.6147 MB / 384.9 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.795e-05/0.3752, allocations: 34.62 kB / 385 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00307/0.3783, allocations: 3.137 MB / 388.1 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.3783, allocations: 2.594 kB / 388.1 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00394/0.3823, allocations: 1.882 MB / 390 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003825/0.3827, allocations: 239.1 kB / 390.2 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001331/0.3828, allocations: 33.06 kB / 390.2 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001209/0.384, allocations: 274 kB / 390.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009023/0.3849, allocations: 428.7 kB / 390.9 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.74e-05/0.385, allocations: 51.41 kB / 391 MB, free: 14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002466/0.3853, allocations: 268 kB / 391.2 MB, free: 13.87 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3853, allocations: 4 kB / 391.2 MB, free: 13.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008454/0.3861, allocations: 247.2 kB / 391.5 MB, free: 13.83 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 6,1 6,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002553/0.3864, allocations: 156.9 kB / 391.6 MB, free: 13.72 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002432/0.3888, allocations: 1.205 MB / 392.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.3889, allocations: 4 kB / 392.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001562/0.3904, allocations: 0.7829 MB / 393.6 MB, free: 12.83 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008552/0.3913, allocations: 129.4 kB / 393.8 MB, free: 12.75 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003609/0.3949, allocations: 2.387 MB / 396.1 MB, free: 11.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000328/0.3953, allocations: 0.9313 MB / 397.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003526/0.3956, allocations: 82.75 kB / 397.2 MB, free: 10.23 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001673/0.3958, allocations: 65.03 kB / 397.2 MB, free: 10.21 MB / 302.1 MB Notification: Performance of SimCode: time 1.413e-06/0.3958, allocations: 0 / 397.2 MB, free: 10.21 MB / 302.1 MB Notification: Performance of Templates: time 0.02276/0.4186, allocations: 15.44 MB / 412.7 MB, free: 11.21 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