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.0007831/0.0007831, allocations: 92.72 kB / 17.31 MB, free: 6.535 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.0008331/0.0008332, allocations: 178.3 kB / 18.21 MB, free: 5.68 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.12/1.12, allocations: 223.3 MB / 242.3 MB, free: 228 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002016/0.0002016, allocations: 13.38 kB / 302.1 MB, free: 6.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07012/0.07034, allocations: 50.42 MB / 352.5 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.003344/0.07372, allocations: 3.908 MB / 356.4 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001711/0.07544, allocations: 1.364 MB / 357.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001581/0.07561, allocations: 15.94 kB / 357.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002009/0.07582, allocations: 79.33 kB / 357.9 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000296/0.07613, allocations: 202.4 kB / 358.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006687/0.07681, allocations: 366.7 kB / 358.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007507/0.07756, allocations: 1.077 MB / 359.5 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002793/0.07785, allocations: 230.8 kB / 359.7 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003961/0.07825, allocations: 418.5 kB / 360.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004115/0.07867, allocations: 486.1 kB / 360.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.476e-05/0.07877, allocations: 48 kB / 360.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001795/0.07895, allocations: 91.95 kB / 360.7 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001562/0.07912, allocations: 179.3 kB / 360.9 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003094/0.07943, allocations: 419.7 kB / 361.3 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005452/0.07998, allocations: 0.7481 MB / 362.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.07999, allocations: 0 / 362.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.08, allocations: 0 / 362.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.823e-06/0.08001, allocations: 0 / 362.1 MB, free: 10.07 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.002598/0.08261, allocations: 1.221 MB / 363.3 MB, free: 8.805 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.737e-05/0.08265, allocations: 8.031 kB / 363.3 MB, free: 8.797 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001744/0.08283, allocations: 87.94 kB / 363.4 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004551/0.08329, allocations: 441.6 kB / 363.8 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.994e-05/0.08335, allocations: 54.38 kB / 363.9 MB, free: 8.184 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001245/0.08348, allocations: 72.28 kB / 363.9 MB, free: 8.113 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001464/0.08495, allocations: 0.8233 MB / 364.8 MB, free: 7.285 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.272e-05/0.08498, allocations: 3.906 kB / 364.8 MB, free: 7.281 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.741e-05/0.08506, allocations: 32 kB / 364.8 MB, free: 7.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.265e-05/0.08508, allocations: 16 kB / 364.8 MB, free: 7.234 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001801/0.08689, allocations: 0.9017 MB / 365.7 MB, free: 6.332 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003634/0.09053, allocations: 2.462 MB / 368.2 MB, free: 3.742 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001315/0.09186, allocations: 0.7309 MB / 368.9 MB, free: 3.004 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008725/0.09274, allocations: 492.2 kB / 369.4 MB, free: 2.523 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.797e-05/0.09281, allocations: 16.94 kB / 369.4 MB, free: 2.508 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001027/0.09384, allocations: 0.5634 MB / 370 MB, free: 1.926 MB / 302.1 MB Notification: Performance of pre-optimization done (n=86): time 1.913e-06/0.09385, allocations: 0 / 370 MB, free: 1.926 MB / 302.1 MB Notification: Performance of matching and sorting (n=106): time 0.1336/0.2274, allocations: 4.476 MB / 374.4 MB, free: 24.2 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.478e-05/0.2275, allocations: 63.34 kB / 374.5 MB, free: 24.13 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004208/0.2279, allocations: 391.3 kB / 374.9 MB, free: 24.01 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.503e-05/0.228, allocations: 56.56 kB / 374.9 MB, free: 23.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001325/0.2282, allocations: 270.3 kB / 375.2 MB, free: 23.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002101/0.2284, allocations: 358.3 kB / 375.6 MB, free: 23.61 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001152/0.2285, allocations: 89.66 kB / 375.6 MB, free: 23.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.151e-05/0.2286, allocations: 381.2 kB / 376 MB, free: 23.27 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008912/0.2295, allocations: 453.7 kB / 376.5 MB, free: 23.12 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009254/0.2304, allocations: 0.5411 MB / 377 MB, free: 22.9 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001506/0.2319, allocations: 0.8122 MB / 377.8 MB, free: 22.57 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.2319, allocations: 1.906 kB / 377.8 MB, free: 22.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002767/0.2347, allocations: 1.384 MB / 379.2 MB, free: 22.05 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.732e-05/0.2347, allocations: 6.312 kB / 379.2 MB, free: 22.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.2347, allocations: 1.984 kB / 379.2 MB, free: 22.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001024/0.2358, allocations: 0.6485 MB / 379.9 MB, free: 21.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006954/0.2365, allocations: 215.7 kB / 380.1 MB, free: 21.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003181/0.2397, allocations: 3.308 MB / 383.4 MB, free: 19.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001131/0.2408, allocations: 234.2 kB / 383.6 MB, free: 19.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.235e-05/0.2409, allocations: 35.67 kB / 383.6 MB, free: 19.03 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.0002718/0.2412, allocations: 229.8 kB / 383.9 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001077/0.2413, allocations: 79.2 kB / 383.9 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001912/0.2415, allocations: 99.78 kB / 384 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.2415, allocations: 10.22 kB / 384.1 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/0.2415, allocations: 1.188 kB / 384.1 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.2415, allocations: 9.219 kB / 384.1 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00406/0.2456, allocations: 2.56 MB / 386.6 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.2456, allocations: 1.906 kB / 386.6 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007134/0.2463, allocations: 188.4 kB / 386.8 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000916/0.2473, allocations: 0.6182 MB / 387.4 MB, free: 17.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.079e-05/0.2473, allocations: 34.17 kB / 387.5 MB, free: 17.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002635/0.25, allocations: 3.135 MB / 390.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.25, allocations: 2.094 kB / 390.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003282/0.2533, allocations: 1.897 MB / 392.5 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002547/0.2536, allocations: 235.7 kB / 392.7 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001099/0.2537, allocations: 27.81 kB / 392.8 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001244/0.2549, allocations: 279 kB / 393 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007033/0.2556, allocations: 367 kB / 393.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.954e-05/0.2557, allocations: 42.94 kB / 393.4 MB, free: 13.45 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002108/0.2559, allocations: 277.2 kB / 393.7 MB, free: 13.31 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2559, allocations: 0 / 393.7 MB, free: 13.31 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006444/0.2566, allocations: 241.2 kB / 393.9 MB, free: 13.28 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 (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.0002217/0.2568, allocations: 173.2 kB / 394.1 MB, free: 13.16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002094/0.2589, allocations: 1.21 MB / 395.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.2589, allocations: 0 / 395.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00115/0.2601, allocations: 0.7439 MB / 396.1 MB, free: 12.22 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000769/0.2609, allocations: 140.6 kB / 396.2 MB, free: 12.13 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003005/0.2639, allocations: 2.495 MB / 398.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002466/0.2641, allocations: 0.94 MB / 399.6 MB, free: 9.18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001898/0.2643, allocations: 59.41 kB / 399.7 MB, free: 9.121 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2643, allocations: 0 / 399.7 MB, free: 9.121 MB / 302.1 MB Notification: Performance of Templates: time 0.01527/0.2796, allocations: 17.36 MB / 417 MB, free: 7.738 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins1/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