Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.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.001346/0.001346, allocations: 112 kB / 20.43 MB, free: 1.457 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.001402/0.001402, allocations: 180.8 kB / 23.71 MB, free: 4.695 MB / 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.459/1.459, allocations: 225.6 MB / 252.5 MB, free: 13 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.ElastoGap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|elastoGap1.v_rel|elastoGap2.s_rel|springDamper1.v_rel|springDamper2.s_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap")
translateModel(Modelica.Mechanics.Translational.Examples.ElastoGap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|elastoGap1.v_rel|elastoGap2.s_rel|springDamper1.v_rel|springDamper2.s_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001515/0.001515, allocations: 47.91 kB / 370.9 MB, free: 9.379 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2586/0.2601, allocations: 52.19 MB / 423.1 MB, free: 14.71 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004123/0.2642, allocations: 2.622 MB / 425.7 MB, free: 12.07 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0007859/0.265, allocations: 390.6 kB / 426.1 MB, free: 11.69 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001293/0.2652, allocations: 7.938 kB / 426.1 MB, free: 11.68 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001709/0.2653, allocations: 51.5 kB / 426.2 MB, free: 11.63 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001976/0.2655, allocations: 95.12 kB / 426.3 MB, free: 11.54 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003153/0.2658, allocations: 95.81 kB / 426.4 MB, free: 11.45 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0004225/0.2663, allocations: 378.4 kB / 426.7 MB, free: 11.07 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002044/0.2665, allocations: 79.56 kB / 426.8 MB, free: 10.99 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001793/0.2667, allocations: 151.5 kB / 427 MB, free: 10.84 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002112/0.2669, allocations: 159.3 kB / 427.1 MB, free: 10.69 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 5.455e-05/0.2669, allocations: 31.94 kB / 427.1 MB, free: 10.66 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 5.883e-05/0.267, allocations: 32 kB / 427.2 MB, free: 10.62 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 7.418e-05/0.2671, allocations: 71.75 kB / 427.2 MB, free: 10.55 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001731/0.2672, allocations: 159.3 kB / 427.4 MB, free: 10.4 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0004342/0.2677, allocations: 375.7 kB / 427.8 MB, free: 10.04 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.2677, allocations: 8 kB / 427.8 MB, free: 10.03 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.292e-06/0.2677, allocations: 3.938 kB / 427.8 MB, free: 10.03 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 1.267e-05/0.2677, allocations: 3.938 kB / 427.8 MB, free: 10.02 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: 70
 * Number of variables: 70
Notification: Performance of Generate backend data structure: time 0.001167/0.2688, allocations: 0.5598 MB / 428.3 MB, free: 9.43 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.2689, allocations: 12.03 kB / 428.4 MB, free: 9.418 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 7.039e-05/0.269, allocations: 32.75 kB / 428.4 MB, free: 9.387 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003837/0.2693, allocations: 206.9 kB / 428.6 MB, free: 9.16 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.96e-05/0.2694, allocations: 21.03 kB / 428.6 MB, free: 9.137 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 6.778e-05/0.2694, allocations: 28.38 kB / 428.6 MB, free: 9.109 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006225/0.2701, allocations: 286.5 kB / 428.9 MB, free: 8.828 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.719e-05/0.2701, allocations: 192 / 428.9 MB, free: 8.828 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.196e-05/0.2701, allocations: 15.94 kB / 428.9 MB, free: 8.812 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.216e-06/0.2701, allocations: 4 kB / 428.9 MB, free: 8.809 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006179/0.2707, allocations: 266.4 kB / 429.2 MB, free: 8.551 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001363/0.2721, allocations: 0.7558 MB / 429.9 MB, free: 7.75 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0006585/0.2728, allocations: 340.8 kB / 430.3 MB, free: 7.406 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0003662/0.2731, allocations: 180.6 kB / 430.5 MB, free: 7.227 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 3.784e-05/0.2732, allocations: 12 kB / 430.5 MB, free: 7.215 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.976e-05/0.2732, allocations: 34.5 kB / 430.5 MB, free: 7.172 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=43): time 1.583e-06/0.2732, allocations: 0 / 430.5 MB, free: 7.172 MB / 334.1 MB
Notification: Performance of matching and sorting (n=63): time 0.004516/0.2777, allocations: 1.825 MB / 432.3 MB, free: 5.297 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.061e-05/0.2778, allocations: 60.06 kB / 432.4 MB, free: 5.227 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002163/0.278, allocations: 195 kB / 432.6 MB, free: 5.027 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 4.414e-05/0.278, allocations: 37.7 kB / 432.6 MB, free: 4.984 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001128/0.2782, allocations: 153 kB / 432.8 MB, free: 4.832 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.00018/0.2783, allocations: 222.1 kB / 433 MB, free: 4.613 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001397/0.2785, allocations: 94.34 kB / 433.1 MB, free: 4.516 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001666/0.2786, allocations: 346.7 kB / 433.4 MB, free: 4.168 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003628/0.279, allocations: 161.2 kB / 433.6 MB, free: 4.008 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003599/0.2794, allocations: 173.8 kB / 433.7 MB, free: 3.84 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0007498/0.2801, allocations: 377.9 kB / 434.1 MB, free: 3.469 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2801, allocations: 0 / 434.1 MB, free: 3.469 MB / 334.1 MB
Notification: Performance of matching and sorting (n=69) (initialization): time 0.0009805/0.2811, allocations: 485.1 kB / 434.6 MB, free: 2.988 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/0.2811, allocations: 4 kB / 434.6 MB, free: 2.984 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.2811, allocations: 0 / 434.6 MB, free: 2.984 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.175e-05/0.2811, allocations: 4 kB / 434.6 MB, free: 2.98 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005255/0.2817, allocations: 127.8 kB / 434.7 MB, free: 2.855 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.555e-05/0.2817, allocations: 7.969 kB / 434.7 MB, free: 2.848 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002155/0.2819, allocations: 27.98 kB / 434.7 MB, free: 2.82 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.705e-05/0.2819, allocations: 19.94 kB / 434.8 MB, free: 2.801 MB / 334.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 1
 * Number of states: 0 ()
 * Number of discrete variables: 2 (elastoGap2.contact,elastoGap1.contact)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (69):
 * Single equations (assignments): 69
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of prepare postOptimizeDAE: time 0.0002026/0.2821, allocations: 161.7 kB / 434.9 MB, free: 2.633 MB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 7.338e-05/0.2822, allocations: 31.81 kB / 435 MB, free: 2.602 MB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001418/0.2824, allocations: 47.33 kB / 435 MB, free: 2.547 MB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.934e-06/0.2824, allocations: 8 kB / 435 MB, free: 2.539 MB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.2824, allocations: 4 kB / 435 MB, free: 2.535 MB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.829e-06/0.2824, allocations: 7.922 kB / 435 MB, free: 2.527 MB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002057/0.2844, allocations: 1.285 MB / 436.3 MB, free: 1.137 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.995e-06/0.2844, allocations: 4 kB / 436.3 MB, free: 1.133 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004973/0.2849, allocations: 123.8 kB / 436.4 MB, free: 1.012 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.188e-05/0.285, allocations: 11.94 kB / 436.4 MB, free: 1 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.469e-05/0.285, allocations: 16 kB / 436.5 MB, free: 0.9844 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.856e-06/0.285, allocations: 8 kB / 436.5 MB, free: 0.9766 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.264e-06/0.285, allocations: 8.344 kB / 436.5 MB, free: 0.9688 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001399/0.2864, allocations: 0.8824 MB / 437.4 MB, free: 12 kB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 6.776e-05/0.2865, allocations: 35.83 kB / 437.4 MB, free: 15.97 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.475e-05/0.2865, allocations: 16 kB / 437.4 MB, free: 15.96 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002733/0.2868, allocations: 32.02 kB / 437.4 MB, free: 15.93 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 9.091e-05/0.2869, allocations: 55.55 kB / 437.5 MB, free: 15.87 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.312e-05/0.2869, allocations: 20 kB / 437.5 MB, free: 15.85 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.0001274/0.2871, allocations: 140.6 kB / 437.7 MB, free: 15.71 MB / 350.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.2871, allocations: 0 / 437.7 MB, free: 15.71 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0003936/0.2874, allocations: 96 kB / 437.7 MB, free: 15.62 MB / 350.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 19
 * Number of states: 4 (springDamper2.s_rel,springDamper2.v_rel,elastoGap2.s_rel,elastoGap2.v_rel)
 * Number of discrete variables: 2 (elastoGap1.contact,elastoGap2.contact)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (63):
 * Single equations (assignments): 63
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of Backend phase and start with SimCode phase: time 0.0001397/0.2876, allocations: 123.1 kB / 437.9 MB, free: 15.49 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.0008539/0.2884, allocations: 416.1 kB / 438.3 MB, free: 15.09 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2884, allocations: 0 / 438.3 MB, free: 15.09 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0004539/0.2889, allocations: 243.8 kB / 438.5 MB, free: 14.85 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006469/0.2895, allocations: 85.03 kB / 438.6 MB, free: 14.77 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001742/0.2913, allocations: 1.028 MB / 439.6 MB, free: 13.66 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004078/0.2917, allocations: 0.7932 MB / 440.4 MB, free: 12.84 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 0.0001787/0.2919, allocations: 43.27 kB / 440.5 MB, free: 12.8 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.292, allocations: 39.42 kB / 440.5 MB, free: 12.76 MB / 350.1 MB
Notification: Performance of SimCode: time 4.31e-07/0.292, allocations: 0 / 440.5 MB, free: 12.76 MB / 350.1 MB
Notification: Performance of Templates: time 0.009442/0.3014, allocations: 4.505 MB / 445 MB, free: 8.297 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.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: 4.513092581182718]