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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001024/0.001024, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.216/1.216, allocations: 205.1 MB / 223.7 MB, free: 8.48 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009611/0.000961, allocations: 97.95 kB / 271.2 MB, free: 8.441 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008288/0.000829, allocations: 39.94 kB / 327.2 MB, free: 332 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.218/0.2189, allocations: 46.61 MB / 373.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005578/0.2245, allocations: 4.332 MB / 378.1 MB, free: 42.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002948/0.2275, allocations: 1.335 MB / 379.5 MB, free: 41.29 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007589/0.2284, allocations: 17.16 kB / 379.5 MB, free: 41.28 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004663/0.2289, allocations: 84 kB / 379.6 MB, free: 41.21 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006848/0.2296, allocations: 195.7 kB / 379.8 MB, free: 41.05 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001102/0.2307, allocations: 377.4 kB / 380.1 MB, free: 40.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001336/0.2321, allocations: 1.084 MB / 381.2 MB, free: 40.13 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004224/0.2325, allocations: 238.8 kB / 381.5 MB, free: 39.98 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007582/0.2333, allocations: 443.3 kB / 381.9 MB, free: 39.74 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005072/0.2338, allocations: 499.2 kB / 382.4 MB, free: 39.41 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001255/0.2339, allocations: 55.59 kB / 382.4 MB, free: 39.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002815/0.2342, allocations: 108.1 kB / 382.5 MB, free: 39.39 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001932/0.2344, allocations: 192.7 kB / 382.7 MB, free: 39.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003403/0.2347, allocations: 408.3 kB / 383.1 MB, free: 38.95 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007206/0.2355, allocations: 1 MB / 384.1 MB, free: 38.2 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.2355, allocations: 1.281 kB / 384.1 MB, free: 38.2 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.2355, allocations: 4 kB / 384.1 MB, free: 38.2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.488e-06/0.2355, allocations: 0 / 384.1 MB, free: 38.2 MB / 298.7 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.002959/0.2385, allocations: 1.289 MB / 385.4 MB, free: 37.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.2385, allocations: 9.531 kB / 385.4 MB, free: 37.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002471/0.2388, allocations: 100.5 kB / 385.5 MB, free: 37.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005332/0.2393, allocations: 431.4 kB / 385.9 MB, free: 36.8 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.322e-05/0.2394, allocations: 50.75 kB / 386 MB, free: 36.78 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001211/0.2395, allocations: 72.84 kB / 386.1 MB, free: 36.75 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001472/0.241, allocations: 0.8098 MB / 386.9 MB, free: 36.27 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.841e-05/0.241, allocations: 9.328 kB / 386.9 MB, free: 36.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.184e-05/0.2411, allocations: 33.75 kB / 386.9 MB, free: 36.24 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.441e-05/0.2411, allocations: 15.97 kB / 386.9 MB, free: 36.24 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001687/0.2428, allocations: 0.867 MB / 387.8 MB, free: 35.4 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003407/0.2463, allocations: 2.389 MB / 390.2 MB, free: 32.88 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001218/0.2475, allocations: 0.7113 MB / 390.9 MB, free: 32.16 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007721/0.2483, allocations: 472.3 kB / 391.4 MB, free: 31.7 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.579e-05/0.2484, allocations: 12.98 kB / 391.4 MB, free: 31.69 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009857/0.2494, allocations: 0.5478 MB / 391.9 MB, free: 31.13 MB / 298.7 MB Notification: Performance of pre-optimization done (n=86): time 3.477e-06/0.2494, allocations: 0 / 391.9 MB, free: 31.13 MB / 298.7 MB Notification: Performance of matching and sorting (n=106): time 0.009173/0.2586, allocations: 4.212 MB / 396.1 MB, free: 26.79 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.662e-05/0.2586, allocations: 68.41 kB / 396.2 MB, free: 26.71 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003027/0.2589, allocations: 389.9 kB / 396.6 MB, free: 26.33 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.375e-05/0.259, allocations: 57.7 kB / 396.6 MB, free: 26.27 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.2591, allocations: 272.9 kB / 396.9 MB, free: 25.99 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001701/0.2593, allocations: 355 kB / 397.3 MB, free: 25.64 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002541/0.2595, allocations: 186.8 kB / 397.4 MB, free: 25.45 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.537e-05/0.2596, allocations: 382.6 kB / 397.8 MB, free: 25.07 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007921/0.2604, allocations: 438.4 kB / 398.2 MB, free: 24.64 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008294/0.2613, allocations: 0.5306 MB / 398.8 MB, free: 24.09 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001351/0.2626, allocations: 0.7792 MB / 399.5 MB, free: 23.29 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2626, allocations: 0 / 399.5 MB, free: 23.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002466/0.2651, allocations: 1.358 MB / 400.9 MB, free: 21.92 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.372e-05/0.2652, allocations: 8 kB / 400.9 MB, free: 21.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.799e-06/0.2652, allocations: 0 / 400.9 MB, free: 21.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009091/0.2661, allocations: 0.6543 MB / 401.6 MB, free: 21.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007043/0.2668, allocations: 195.7 kB / 401.8 MB, free: 21.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003106/0.2699, allocations: 3.259 MB / 405 MB, free: 17.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001188/0.2711, allocations: 183.9 kB / 405.2 MB, free: 17.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-05/0.2712, allocations: 32 kB / 405.2 MB, free: 17.39 MB / 298.7 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.0003361/0.2715, allocations: 229.8 kB / 405.5 MB, free: 17.16 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001083/0.2717, allocations: 75.09 kB / 405.5 MB, free: 17.09 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002054/0.2719, allocations: 107 kB / 405.6 MB, free: 16.98 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.2719, allocations: 12 kB / 405.6 MB, free: 16.97 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.2719, allocations: 0 / 405.6 MB, free: 16.97 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.2719, allocations: 3.984 kB / 405.6 MB, free: 16.97 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003635/0.2756, allocations: 2.534 MB / 408.2 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.73e-06/0.2756, allocations: 0 / 408.2 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006716/0.2763, allocations: 180 kB / 408.4 MB, free: 14.15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008094/0.2771, allocations: 0.6153 MB / 409 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.011e-05/0.2772, allocations: 39.95 kB / 409 MB, free: 13.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002563/0.2797, allocations: 3.089 MB / 412.1 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.2797, allocations: 4.031 kB / 412.1 MB, free: 10.2 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01879/0.2985, allocations: 13.26 MB / 425.4 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003488/0.2989, allocations: 228.1 kB / 425.6 MB, free: 12.06 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000118/0.2991, allocations: 35.94 kB / 425.6 MB, free: 12.02 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001215/0.3003, allocations: 207.7 kB / 425.8 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008269/0.3011, allocations: 368.5 kB / 426.2 MB, free: 11.46 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.795e-05/0.3012, allocations: 43.95 kB / 426.2 MB, free: 11.42 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002565/0.3015, allocations: 263.2 kB / 426.5 MB, free: 11.16 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3015, allocations: 4 kB / 426.5 MB, free: 11.16 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001017/0.3025, allocations: 356 kB / 426.8 MB, free: 10.81 MB / 314.7 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.0003056/0.3028, allocations: 200.8 kB / 427 MB, free: 10.61 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002351/0.3052, allocations: 1.185 MB / 428.2 MB, free: 9.41 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3052, allocations: 0 / 428.2 MB, free: 9.41 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001456/0.3067, allocations: 0.7741 MB / 429 MB, free: 8.621 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007298/0.3074, allocations: 125.4 kB / 429.1 MB, free: 8.5 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004236/0.3116, allocations: 3.193 MB / 432.3 MB, free: 5.203 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004979/0.3122, allocations: 0.9522 MB / 433.3 MB, free: 4.227 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003757/0.3125, allocations: 93.42 kB / 433.4 MB, free: 4.133 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002211/0.3128, allocations: 67.41 kB / 433.4 MB, free: 4.07 MB / 314.7 MB Notification: Performance of SimCode: time 6.02e-07/0.3128, allocations: 0 / 433.4 MB, free: 4.07 MB / 314.7 MB Notification: Performance of Templates: time 0.02757/0.3403, allocations: 20.66 MB / 454.1 MB, free: 15.4 MB / 346.7 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@2/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