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.001102/0.001102, allocations: 108.9 kB / 17.06 MB, free: 6.141 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.001155/0.001155, allocations: 192 kB / 18 MB, free: 5.219 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.329/1.329, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001118/0.001118, allocations: 51.92 kB / 351.3 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.291/0.2922, allocations: 49.43 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005414/0.2976, allocations: 4.29 MB / 405 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002869/0.3005, allocations: 1.391 MB / 406.4 MB, free: 3.168 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005671/0.3011, allocations: 11.94 kB / 406.4 MB, free: 3.156 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004236/0.3016, allocations: 118.8 kB / 406.5 MB, free: 3.039 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000564/0.3022, allocations: 238 kB / 406.8 MB, free: 2.805 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001117/0.3033, allocations: 414.4 kB / 407.2 MB, free: 2.402 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00102/0.3044, allocations: 1.139 MB / 408.3 MB, free: 1.262 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003764/0.3047, allocations: 257.6 kB / 408.6 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005856/0.3053, allocations: 486.5 kB / 409 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005266/0.3059, allocations: 0.5216 MB / 409.6 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001242/0.306, allocations: 92 kB / 409.6 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002561/0.3063, allocations: 144 kB / 409.8 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002131/0.3065, allocations: 227.2 kB / 410 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003823/0.3069, allocations: 446 kB / 410.4 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009845/0.3079, allocations: 1.06 MB / 411.5 MB, free: 14.04 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.3079, allocations: 0 / 411.5 MB, free: 14.04 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3079, allocations: 0 / 411.5 MB, free: 14.04 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.11e-05/0.3079, 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.002975/0.3109, allocations: 1.291 MB / 412.8 MB, free: 12.7 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.995e-05/0.311, allocations: 8.031 kB / 412.8 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002439/0.3112, allocations: 95.89 kB / 412.9 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000638/0.3119, allocations: 453.6 kB / 413.3 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.163e-05/0.3119, allocations: 50.38 kB / 413.4 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001212/0.3121, allocations: 68.38 kB / 413.5 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001599/0.3137, allocations: 0.8116 MB / 414.3 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.924e-05/0.3137, allocations: 7.906 kB / 414.3 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.472e-05/0.3138, allocations: 24 kB / 414.3 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.578e-05/0.3138, allocations: 16 kB / 414.3 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001917/0.3157, allocations: 0.8705 MB / 415.2 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004089/0.3198, allocations: 2.373 MB / 417.6 MB, free: 7.762 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001479/0.3213, allocations: 0.7151 MB / 418.3 MB, free: 7.035 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009023/0.3223, allocations: 472.2 kB / 418.7 MB, free: 6.574 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.582e-05/0.3224, allocations: 13 kB / 418.7 MB, free: 6.559 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0011/0.3235, allocations: 0.5517 MB / 419.3 MB, free: 5.996 MB / 334.1 MB Notification: Performance of pre-optimization done (n=86): time 2.825e-06/0.3235, allocations: 0 / 419.3 MB, free: 5.996 MB / 334.1 MB Notification: Performance of matching and sorting (n=106): time 0.01043/0.3339, allocations: 4.22 MB / 423.5 MB, free: 1.645 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.19e-05/0.334, allocations: 64.34 kB / 423.6 MB, free: 1.57 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004321/0.3344, allocations: 393.9 kB / 424 MB, free: 1.18 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.926e-05/0.3345, allocations: 49.7 kB / 424 MB, free: 1.125 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002189/0.3347, allocations: 276.8 kB / 424.3 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002797/0.335, allocations: 362.9 kB / 424.6 MB, free: 500 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003115/0.3354, allocations: 186.8 kB / 424.8 MB, free: 304 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001878/0.3355, allocations: 374.8 kB / 425.2 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009888/0.3365, allocations: 438.3 kB / 425.6 MB, free: 15.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00101/0.3376, allocations: 0.5306 MB / 426.1 MB, free: 14.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00167/0.3393, allocations: 0.7792 MB / 426.9 MB, free: 14.15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.3393, allocations: 8 kB / 426.9 MB, free: 14.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003185/0.3425, allocations: 1.342 MB / 428.3 MB, free: 12.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.809e-05/0.3425, allocations: 4 kB / 428.3 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.35e-05/0.3425, allocations: 4 kB / 428.3 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001168/0.3437, allocations: 0.6504 MB / 428.9 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007684/0.3445, allocations: 207.7 kB / 429.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004233/0.3487, allocations: 3.437 MB / 432.6 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001079/0.3498, allocations: 171.9 kB / 432.7 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.661e-05/0.3499, allocations: 39.98 kB / 432.8 MB, free: 8.082 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.000397/0.3503, allocations: 229.6 kB / 433 MB, free: 7.852 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001499/0.3505, allocations: 71.16 kB / 433.1 MB, free: 7.781 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001759/0.3507, allocations: 99.02 kB / 433.2 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.919e-06/0.3507, allocations: 12 kB / 433.2 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.767e-06/0.3507, allocations: 0 / 433.2 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/0.3507, allocations: 7.969 kB / 433.2 MB, free: 7.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00446/0.3552, allocations: 2.498 MB / 435.7 MB, free: 5.055 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.304e-06/0.3552, allocations: 8.062 kB / 435.7 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007482/0.3559, allocations: 175.8 kB / 435.9 MB, free: 4.875 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001024/0.357, allocations: 0.6154 MB / 436.5 MB, free: 4.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.135e-05/0.3571, allocations: 35.95 kB / 436.5 MB, free: 4.215 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003793/0.3609, allocations: 3.226 MB / 439.7 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.3609, allocations: 4.344 kB / 439.7 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003811/0.3647, allocations: 1.841 MB / 441.6 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003972/0.3651, allocations: 236.1 kB / 441.8 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001188/0.3652, allocations: 31.98 kB / 441.8 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001173/0.3664, allocations: 207.7 kB / 442.1 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009219/0.3674, allocations: 376.4 kB / 442.4 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.695e-05/0.3674, allocations: 47.91 kB / 442.5 MB, free: 14.01 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002932/0.3677, allocations: 271.1 kB / 442.7 MB, free: 13.74 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3678, allocations: 0 / 442.7 MB, free: 13.74 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007728/0.3685, allocations: 248 kB / 443 MB, free: 13.5 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.0003004/0.3688, allocations: 170.4 kB / 443.1 MB, free: 13.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002584/0.3714, allocations: 1.192 MB / 444.3 MB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.3715, allocations: 0 / 444.3 MB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001527/0.373, allocations: 0.782 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.0007424/0.3737, allocations: 137.5 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.003565/0.3773, allocations: 1.953 MB / 447.2 MB, free: 9.188 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004728/0.3778, allocations: 0.9283 MB / 448.1 MB, free: 8.234 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003038/0.3781, allocations: 81.44 kB / 448.2 MB, free: 8.152 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001805/0.3783, allocations: 67.41 kB / 448.3 MB, free: 8.086 MB / 366.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3783, allocations: 0 / 448.3 MB, free: 8.086 MB / 366.1 MB Notification: Performance of Templates: time 0.02582/0.4041, allocations: 17.74 MB / 466 MB, free: 6.41 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