Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001569/0.001569, allocations: 107.6 kB / 21.19 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001733/0.001733, allocations: 213.3 kB / 24.48 MB, free: 3.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.491/1.491, allocations: 230.6 MB / 258.2 MB, free: 7.738 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00154/0.00154, allocations: 55.92 kB / 379 MB, free: 2.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2852/0.2867, allocations: 53.36 MB / 432.3 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006507/0.2932, allocations: 4.062 MB / 436.4 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003441/0.2967, allocations: 1.524 MB / 437.9 MB, free: 1.113 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005004/0.2972, allocations: 15.88 kB / 437.9 MB, free: 1.098 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000533/0.2977, allocations: 130.7 kB / 438.1 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007873/0.2985, allocations: 281.7 kB / 438.3 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001116/0.2996, allocations: 438.4 kB / 438.8 MB, free: 272 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00155/0.3012, allocations: 1.174 MB / 439.9 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003828/0.3015, allocations: 185.2 kB / 440.1 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009589/0.3025, allocations: 0.5142 MB / 440.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008982/0.3034, allocations: 0.541 MB / 441.2 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001744/0.3036, allocations: 96 kB / 441.3 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000409/0.304, allocations: 164 kB / 441.4 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003258/0.3043, allocations: 243.3 kB / 441.7 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005051/0.3048, allocations: 398.3 kB / 442.1 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001468/0.3063, allocations: 1.136 MB / 443.2 MB, free: 11.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3063, allocations: 0 / 443.2 MB, free: 11.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3063, allocations: 0 / 443.2 MB, free: 11.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.097e-05/0.3063, allocations: 0 / 443.2 MB, free: 11.82 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.003737/0.31, allocations: 1.403 MB / 444.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.3101, allocations: 12.03 kB / 444.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005651/0.3106, allocations: 116.3 kB / 444.7 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008732/0.3115, allocations: 408.1 kB / 445.1 MB, free: 9.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.392e-05/0.3116, allocations: 54.38 kB / 445.2 MB, free: 9.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001696/0.3118, allocations: 84.06 kB / 445.3 MB, free: 9.688 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001848/0.3136, allocations: 0.792 MB / 446 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.646e-05/0.3137, allocations: 11.92 kB / 446.1 MB, free: 8.875 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.985e-05/0.3138, allocations: 35.98 kB / 446.1 MB, free: 8.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.882e-05/0.3138, allocations: 16 kB / 446.1 MB, free: 8.824 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002176/0.316, allocations: 0.8315 MB / 446.9 MB, free: 7.992 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004757/0.3207, allocations: 1.873 MB / 448.8 MB, free: 6.059 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001728/0.3224, allocations: 0.6898 MB / 449.5 MB, free: 5.359 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001019/0.3235, allocations: 420.3 kB / 449.9 MB, free: 4.945 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.444e-05/0.3235, allocations: 12.94 kB / 449.9 MB, free: 4.934 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001325/0.3249, allocations: 0.5322 MB / 450.5 MB, free: 4.387 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 3.246e-06/0.3249, allocations: 0 / 450.5 MB, free: 4.387 MB / 350.1 MB Notification: Performance of matching and sorting (n=110): time 0.012/0.3369, allocations: 3.809 MB / 454.3 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.624e-05/0.3369, allocations: 60.41 kB / 454.3 MB, free: 484 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005382/0.3375, allocations: 405.9 kB / 454.7 MB, free: 76 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001092/0.3376, allocations: 61.69 kB / 454.8 MB, free: 8 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002529/0.3378, allocations: 277.6 kB / 455.1 MB, free: 15.73 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003709/0.3382, allocations: 404.6 kB / 455.4 MB, free: 15.33 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003544/0.3386, allocations: 186.9 kB / 455.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002567/0.3388, allocations: 374.8 kB / 456 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001065/0.3399, allocations: 418.4 kB / 456.4 MB, free: 14.36 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001094/0.341, allocations: 0.5033 MB / 456.9 MB, free: 13.84 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001732/0.3427, allocations: 0.7402 MB / 457.6 MB, free: 13.08 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.3427, allocations: 3.984 kB / 457.7 MB, free: 13.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.00332/0.346, allocations: 1.28 MB / 458.9 MB, free: 11.78 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.602e-05/0.346, allocations: 8 kB / 458.9 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.3461, allocations: 4 kB / 458.9 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001204/0.3473, allocations: 0.5411 MB / 459.5 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008931/0.3482, allocations: 191.7 kB / 459.7 MB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004696/0.3529, allocations: 3.269 MB / 462.9 MB, free: 7.602 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0013/0.3542, allocations: 167.8 kB / 463.1 MB, free: 7.438 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.454e-05/0.3542, allocations: 40 kB / 463.1 MB, free: 7.398 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,9), (1,5), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0004244/0.3547, allocations: 229.7 kB / 463.4 MB, free: 7.168 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001719/0.3548, allocations: 83.47 kB / 463.4 MB, free: 7.086 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002288/0.3551, allocations: 107.1 kB / 463.6 MB, free: 6.98 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.065e-05/0.3551, allocations: 11.94 kB / 463.6 MB, free: 6.969 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.3551, allocations: 4 kB / 463.6 MB, free: 6.965 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.154e-05/0.3551, allocations: 3.984 kB / 463.6 MB, free: 6.961 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004757/0.3599, allocations: 2.13 MB / 465.7 MB, free: 4.754 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.668e-06/0.3599, allocations: 4 kB / 465.7 MB, free: 4.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000828/0.3607, allocations: 167.8 kB / 465.9 MB, free: 4.586 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001103/0.3618, allocations: 0.4945 MB / 466.4 MB, free: 4.082 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.755e-05/0.3619, allocations: 43.95 kB / 466.4 MB, free: 4.039 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004025/0.3659, allocations: 3.049 MB / 469.5 MB, free: 0.8359 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.3659, allocations: 4.016 kB / 469.5 MB, free: 0.832 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00398/0.3699, allocations: 1.768 MB / 471.2 MB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004935/0.3704, allocations: 171.2 kB / 471.4 MB, free: 14.85 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001504/0.3705, allocations: 32 kB / 471.4 MB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001345/0.3719, allocations: 203.7 kB / 471.6 MB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009396/0.3728, allocations: 388.3 kB / 472 MB, free: 14.24 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.744e-05/0.3729, allocations: 44.14 kB / 472 MB, free: 14.2 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003488/0.3733, allocations: 279.1 kB / 472.3 MB, free: 13.92 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3733, allocations: 3.938 kB / 472.3 MB, free: 13.92 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008139/0.3741, allocations: 243.9 kB / 472.6 MB, free: 13.68 MB / 382.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 (90): * Single equations (assignments): 87 * 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,8), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001517/0.3756, allocations: 431.7 kB / 473 MB, free: 13.41 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002613/0.3782, allocations: 1.083 MB / 474.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.3782, allocations: 0 / 474.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001544/0.3798, allocations: 0.6805 MB / 474.7 MB, free: 11.62 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009434/0.3807, allocations: 151.6 kB / 474.9 MB, free: 11.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004361/0.3851, allocations: 2.06 MB / 477 MB, free: 9.355 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004034/0.3855, allocations: 357.5 kB / 477.3 MB, free: 8.977 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002916/0.3858, allocations: 71.41 kB / 477.4 MB, free: 8.906 MB / 382.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3858, allocations: 0 / 477.4 MB, free: 8.906 MB / 382.1 MB Notification: Performance of Templates: time 0.0252/0.411, allocations: 18.61 MB / 496 MB, free: 6.281 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 9.188942856999347]