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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001261/0.001261, allocations: 112.2 kB / 19.04 MB, free: 3.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001256/0.001256, allocations: 196.4 kB / 22.22 MB, free: 72 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 225.6 MB / 250.8 MB, free: 13.36 MB / 206.1 MB " [Timeout remaining time 178] 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=2000,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=2000,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001601/0.001601, allocations: 51.92 kB / 368.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2779/0.2795, allocations: 52.14 MB / 420.9 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006309/0.2858, allocations: 4.342 MB / 425.2 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003059/0.2888, allocations: 1.399 MB / 426.6 MB, free: 9.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002513/0.2891, allocations: 8 kB / 426.6 MB, free: 9.492 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003298/0.2894, allocations: 114.8 kB / 426.7 MB, free: 9.379 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003986/0.2898, allocations: 234 kB / 426.9 MB, free: 9.148 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001054/0.2909, allocations: 437.8 kB / 427.4 MB, free: 8.723 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001115/0.292, allocations: 1.127 MB / 428.5 MB, free: 7.594 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003311/0.2923, allocations: 181.7 kB / 428.7 MB, free: 7.398 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006013/0.2929, allocations: 490.5 kB / 429.2 MB, free: 6.918 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000607/0.2935, allocations: 0.5215 MB / 429.7 MB, free: 6.395 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001317/0.2936, allocations: 92 kB / 429.8 MB, free: 6.305 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002816/0.2939, allocations: 151.9 kB / 429.9 MB, free: 6.156 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002271/0.2942, allocations: 227.3 kB / 430.1 MB, free: 5.934 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004151/0.2946, allocations: 446 kB / 430.6 MB, free: 5.496 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001186/0.2958, allocations: 1.068 MB / 431.6 MB, free: 4.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.2958, allocations: 0 / 431.6 MB, free: 4.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2958, allocations: 0 / 431.6 MB, free: 4.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.036e-05/0.2958, allocations: 0 / 431.6 MB, free: 4.43 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.003222/0.299, allocations: 1.309 MB / 433 MB, free: 3.066 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.299, allocations: 8.031 kB / 433 MB, free: 3.059 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000234/0.2993, allocations: 92.38 kB / 433.1 MB, free: 2.969 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006385/0.2999, allocations: 453.9 kB / 433.5 MB, free: 2.488 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.897e-05/0.3, allocations: 54.31 kB / 433.5 MB, free: 2.438 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000142/0.3001, allocations: 80.31 kB / 433.6 MB, free: 2.359 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001667/0.3018, allocations: 0.8038 MB / 434.4 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.13e-05/0.3018, allocations: 7.953 kB / 434.4 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.373e-05/0.3019, allocations: 28 kB / 434.5 MB, free: 1.516 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.535e-05/0.3019, allocations: 20 kB / 434.5 MB, free: 1.496 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002024/0.3039, allocations: 0.8666 MB / 435.4 MB, free: 0.625 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004282/0.3082, allocations: 2.381 MB / 437.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001449/0.3097, allocations: 0.6683 MB / 438.4 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009703/0.3106, allocations: 436.2 kB / 438.8 MB, free: 13.01 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.448e-05/0.3107, allocations: 12.98 kB / 438.8 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001199/0.3119, allocations: 0.5516 MB / 439.4 MB, free: 12.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=86): time 3.817e-06/0.3119, allocations: 0 / 439.4 MB, free: 12.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=106): time 0.01117/0.3231, allocations: 4.226 MB / 443.6 MB, free: 8.074 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.254e-05/0.3232, allocations: 64.41 kB / 443.7 MB, free: 8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004949/0.3236, allocations: 389.9 kB / 444.1 MB, free: 7.613 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.422e-05/0.3237, allocations: 61.69 kB / 444.1 MB, free: 7.547 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002198/0.324, allocations: 261.5 kB / 444.4 MB, free: 7.285 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003409/0.3243, allocations: 388.8 kB / 444.8 MB, free: 6.902 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003311/0.3246, allocations: 182.9 kB / 444.9 MB, free: 6.715 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001961/0.3248, allocations: 374.8 kB / 445.3 MB, free: 6.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009989/0.3258, allocations: 438.4 kB / 445.7 MB, free: 5.914 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001092/0.3269, allocations: 0.5305 MB / 446.3 MB, free: 5.363 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001724/0.3286, allocations: 0.783 MB / 447 MB, free: 4.566 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.021e-06/0.3287, allocations: 3.984 kB / 447 MB, free: 4.562 MB / 350.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.00319/0.3318, allocations: 1.346 MB / 448.4 MB, free: 3.199 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/0.3319, allocations: 4 kB / 448.4 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.3319, allocations: 0 / 448.4 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001242/0.3331, allocations: 0.6504 MB / 449 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007759/0.3339, allocations: 195.7 kB / 449.2 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004392/0.3383, allocations: 3.442 MB / 452.7 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001155/0.3394, allocations: 176 kB / 452.9 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.826e-05/0.3395, allocations: 47.91 kB / 452.9 MB, free: 14.49 MB / 366.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.0004615/0.34, allocations: 217.6 kB / 453.1 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001585/0.3401, allocations: 75.58 kB / 453.2 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002378/0.3404, allocations: 107 kB / 453.3 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.276e-05/0.3404, allocations: 12 kB / 453.3 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.3404, allocations: 0 / 453.3 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/0.3404, allocations: 3.984 kB / 453.3 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004889/0.3453, allocations: 2.487 MB / 455.8 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.696e-06/0.3453, allocations: 4 kB / 455.8 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000754/0.3461, allocations: 187.9 kB / 456 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001127/0.3472, allocations: 0.6232 MB / 456.6 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.298e-05/0.3473, allocations: 31.97 kB / 456.6 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004034/0.3513, allocations: 3.223 MB / 459.9 MB, free: 7.215 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.3513, allocations: 4.031 kB / 459.9 MB, free: 7.211 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003985/0.3553, allocations: 1.833 MB / 461.7 MB, free: 5.332 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004494/0.3557, allocations: 244.4 kB / 461.9 MB, free: 5.074 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001312/0.3559, allocations: 28 kB / 462 MB, free: 5.047 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001217/0.3571, allocations: 199.7 kB / 462.2 MB, free: 4.852 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008889/0.358, allocations: 380.4 kB / 462.5 MB, free: 4.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.881e-05/0.3581, allocations: 47.95 kB / 462.6 MB, free: 4.434 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003203/0.3584, allocations: 267.1 kB / 462.8 MB, free: 4.168 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3584, allocations: 4 kB / 462.8 MB, free: 4.164 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007653/0.3592, allocations: 240 kB / 463.1 MB, free: 3.93 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.0003266/0.3595, allocations: 172.8 kB / 463.2 MB, free: 3.75 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002508/0.362, allocations: 1.126 MB / 464.4 MB, free: 2.613 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.362, allocations: 0 / 464.4 MB, free: 2.613 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00163/0.3636, allocations: 0.7468 MB / 465.1 MB, free: 1.859 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008103/0.3644, allocations: 139.8 kB / 465.3 MB, free: 1.727 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004281/0.3687, allocations: 1.973 MB / 467.2 MB, free: 15.7 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006608/0.3694, allocations: 0.9361 MB / 468.2 MB, free: 14.74 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003801/0.3698, allocations: 73.45 kB / 468.2 MB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001968/0.37, allocations: 63.42 kB / 468.3 MB, free: 14.6 MB / 382.1 MB Notification: Performance of SimCode: time 1.293e-06/0.37, allocations: 0 / 468.3 MB, free: 14.6 MB / 382.1 MB Notification: Performance of Templates: time 0.032/0.402, allocations: 18.34 MB / 486.6 MB, free: 12.33 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.1305206548422575]