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.001089/0.001089, allocations: 104.2 kB / 17.06 MB, free: 5.992 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.001098/0.001098, allocations: 191 kB / 18 MB, free: 5.078 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.383/1.383, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001035/0.001035, allocations: 47.94 kB / 351.3 MB, free: 3.281 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2595/0.2606, allocations: 49.43 MB / 400.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006962/0.2676, allocations: 4.296 MB / 405 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003152/0.2708, allocations: 1.383 MB / 406.4 MB, free: 3.176 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006216/0.2714, allocations: 19.94 kB / 406.4 MB, free: 3.156 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000478/0.2719, allocations: 114.8 kB / 406.5 MB, free: 3.043 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007325/0.2727, allocations: 241.9 kB / 406.8 MB, free: 2.805 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001337/0.2741, allocations: 417.8 kB / 407.2 MB, free: 2.398 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001594/0.2757, allocations: 1.135 MB / 408.3 MB, free: 1.262 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005409/0.2762, allocations: 257.6 kB / 408.6 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008972/0.2771, allocations: 490.5 kB / 409 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009023/0.2781, allocations: 0.5176 MB / 409.6 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002351/0.2783, allocations: 92 kB / 409.6 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003941/0.2787, allocations: 147.9 kB / 409.8 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002902/0.279, allocations: 227.3 kB / 410 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005616/0.2796, allocations: 449.9 kB / 410.5 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001284/0.2809, allocations: 1.052 MB / 411.5 MB, free: 14.04 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.2809, allocations: 0 / 411.5 MB, free: 14.04 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2809, allocations: 4 kB / 411.5 MB, free: 14.04 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.125e-05/0.281, allocations: 0 / 411.5 MB, free: 14.04 MB / 334.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.003407/0.2844, allocations: 1.29 MB / 412.8 MB, free: 12.69 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.2844, allocations: 8.031 kB / 412.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002224/0.2847, allocations: 95.91 kB / 412.9 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00062/0.2853, allocations: 449.6 kB / 413.3 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.953e-05/0.2853, allocations: 50.38 kB / 413.4 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001238/0.2855, allocations: 68.38 kB / 413.5 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001689/0.2872, allocations: 0.8116 MB / 414.3 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.933e-05/0.2872, allocations: 7.906 kB / 414.3 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.459e-05/0.2873, allocations: 24 kB / 414.3 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.382e-05/0.2873, allocations: 16 kB / 414.3 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002011/0.2893, allocations: 0.8744 MB / 415.2 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004217/0.2936, allocations: 2.373 MB / 417.6 MB, free: 7.758 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001596/0.2952, allocations: 0.7112 MB / 418.3 MB, free: 7.035 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009675/0.2962, allocations: 480.2 kB / 418.7 MB, free: 6.566 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.519e-05/0.2962, allocations: 13 kB / 418.8 MB, free: 6.551 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001151/0.2974, allocations: 0.5439 MB / 419.3 MB, free: 5.996 MB / 334.1 MB Notification: Performance of pre-optimization done (n=86): time 2.615e-06/0.2974, allocations: 0 / 419.3 MB, free: 5.996 MB / 334.1 MB Notification: Performance of matching and sorting (n=106): time 0.01114/0.3086, allocations: 4.224 MB / 423.5 MB, free: 1.645 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.764e-05/0.3086, allocations: 64.41 kB / 423.6 MB, free: 1.57 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004129/0.309, allocations: 393.8 kB / 424 MB, free: 1.18 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.341e-05/0.3092, allocations: 57.62 kB / 424 MB, free: 1.117 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001793/0.3094, allocations: 280.8 kB / 424.3 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002648/0.3096, allocations: 358.9 kB / 424.6 MB, free: 492 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003031/0.3099, allocations: 186.8 kB / 424.8 MB, free: 296 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.3101, allocations: 370.8 kB / 425.2 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00102/0.3111, allocations: 438.4 kB / 425.6 MB, free: 15.49 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001075/0.3122, allocations: 0.5306 MB / 426.2 MB, free: 14.94 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001718/0.3139, allocations: 0.7792 MB / 426.9 MB, free: 14.15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.314, allocations: 0 / 426.9 MB, free: 14.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003122/0.3171, allocations: 1.354 MB / 428.3 MB, free: 12.78 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.3171, allocations: 4 kB / 428.3 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.447e-06/0.3171, allocations: 4 kB / 428.3 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001143/0.3183, allocations: 0.6426 MB / 428.9 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000844/0.3191, allocations: 199.7 kB / 429.1 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004025/0.3232, allocations: 3.446 MB / 432.6 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001188/0.3244, allocations: 175.9 kB / 432.7 MB, free: 8.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.156e-05/0.3245, allocations: 39.98 kB / 432.8 MB, free: 8.074 MB / 350.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.0003864/0.3249, allocations: 221.6 kB / 433 MB, free: 7.852 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001356/0.325, allocations: 71.16 kB / 433.1 MB, free: 7.781 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002335/0.3253, allocations: 103 kB / 433.2 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.134e-05/0.3253, allocations: 12 kB / 433.2 MB, free: 7.664 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.116e-06/0.3253, allocations: 4 kB / 433.2 MB, free: 7.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.175e-05/0.3253, allocations: 7.969 kB / 433.2 MB, free: 7.652 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004804/0.3301, allocations: 2.494 MB / 435.7 MB, free: 5.051 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.521e-06/0.3302, allocations: 128 / 435.7 MB, free: 5.051 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008254/0.331, allocations: 183.8 kB / 435.9 MB, free: 4.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001059/0.3321, allocations: 0.6077 MB / 436.5 MB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.672e-05/0.3322, allocations: 35.97 kB / 436.5 MB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003839/0.336, allocations: 3.226 MB / 439.7 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/0.336, allocations: 0 / 439.7 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003972/0.34, allocations: 1.853 MB / 441.6 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003747/0.3404, allocations: 228.1 kB / 441.8 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000139/0.3406, allocations: 32 kB / 441.8 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001337/0.3419, allocations: 207.7 kB / 442 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008702/0.3428, allocations: 384.3 kB / 442.4 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.051e-05/0.3429, allocations: 47.91 kB / 442.5 MB, free: 14 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002855/0.3432, allocations: 271.1 kB / 442.7 MB, free: 13.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3432, allocations: 0 / 442.7 MB, free: 13.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007713/0.344, allocations: 248 kB / 443 MB, free: 13.49 MB / 366.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.0003135/0.3443, allocations: 162.5 kB / 443.1 MB, free: 13.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002586/0.3469, allocations: 1.2 MB / 444.3 MB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.3469, allocations: 0 / 444.3 MB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001559/0.3485, allocations: 0.7781 MB / 445.1 MB, free: 11.32 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008113/0.3493, allocations: 137.7 kB / 445.2 MB, free: 11.19 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003914/0.3532, allocations: 1.939 MB / 447.2 MB, free: 9.199 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000497/0.3537, allocations: 0.9361 MB / 448.1 MB, free: 8.238 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003809/0.3541, allocations: 81.44 kB / 448.2 MB, free: 8.156 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002105/0.3543, allocations: 63.42 kB / 448.3 MB, free: 8.094 MB / 366.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3543, allocations: 0 / 448.3 MB, free: 8.094 MB / 366.1 MB Notification: Performance of Templates: time 0.02586/0.3802, allocations: 17.74 MB / 466 MB, free: 6.414 MB / 382.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