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.001198/0.001198, allocations: 72.08 kB / 21.69 MB, free: 2.863 MB / 18.57 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.001528/0.001528, allocations: 142.2 kB / 24.97 MB, free: 8.371 MB / 18.57 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 0.9653/0.9653, allocations: 173.4 MB / 201.5 MB, free: 9.348 MB / 186.7 MB " [Timeout remaining time 179] 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 1.623e-06/1.623e-06, allocations: 0 / 268.1 MB, free: 6.766 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.246e-05/2.409e-05, allocations: 2.312 kB / 268.1 MB, free: 6.762 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.002718/0.002742, allocations: 2.6 MB / 270.7 MB, free: 4.145 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008316/0.003574, allocations: 378.6 kB / 271 MB, free: 3.773 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00016/0.003734, allocations: 7.938 kB / 271 MB, free: 3.766 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001437/0.003877, allocations: 51.44 kB / 271.1 MB, free: 3.715 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001597/0.004037, allocations: 103.1 kB / 271.2 MB, free: 3.613 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002986/0.004336, allocations: 95.8 kB / 271.3 MB, free: 3.52 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003255/0.004661, allocations: 394.1 kB / 271.7 MB, free: 3.133 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001707/0.004832, allocations: 75.39 kB / 271.7 MB, free: 3.055 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002139/0.005046, allocations: 219.5 kB / 271.9 MB, free: 2.84 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001356/0.005181, allocations: 123.7 kB / 272.1 MB, free: 2.719 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.806e-05/0.00522, allocations: 36 kB / 272.1 MB, free: 2.684 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.308e-05/0.005253, allocations: 28 kB / 272.1 MB, free: 2.656 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.511e-05/0.005298, allocations: 71.73 kB / 272.2 MB, free: 2.586 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.809e-05/0.005386, allocations: 119.7 kB / 272.3 MB, free: 2.469 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002494/0.005635, allocations: 255 kB / 272.6 MB, free: 2.219 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.005639, allocations: 0 / 272.6 MB, free: 2.219 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.00564, allocations: 0 / 272.6 MB, free: 2.219 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.119e-06/0.005645, allocations: 0 / 272.6 MB, free: 2.219 MB / 250.7 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.000699/0.006344, allocations: 0.648 MB / 273.2 MB, free: 1.531 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.006381, allocations: 8.922 kB / 273.2 MB, free: 1.523 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.727e-05/0.006469, allocations: 56.75 kB / 273.3 MB, free: 1.469 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002394/0.006708, allocations: 211.9 kB / 273.5 MB, free: 1.234 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.759e-05/0.006735, allocations: 25.03 kB / 273.5 MB, free: 1.207 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.01e-05/0.006776, allocations: 28.38 kB / 273.5 MB, free: 1.18 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003157/0.007091, allocations: 227.3 kB / 273.8 MB, free: 0.9492 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/0.007106, allocations: 192 / 273.8 MB, free: 0.9492 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.245e-05/0.007128, allocations: 16.38 kB / 273.8 MB, free: 0.9336 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.007138, allocations: 8.375 kB / 273.8 MB, free: 0.9258 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002125/0.007351, allocations: 143.8 kB / 273.9 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008297/0.008181, allocations: 0.6699 MB / 274.6 MB, free: 84 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003498/0.00853, allocations: 279.2 kB / 274.9 MB, free: 15.79 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001487/0.008679, allocations: 119.6 kB / 275 MB, free: 15.67 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.58e-05/0.008705, allocations: 8 kB / 275 MB, free: 15.66 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.289e-05/0.008728, allocations: 41.39 kB / 275 MB, free: 15.61 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.994e-06/0.00873, allocations: 0 / 275 MB, free: 15.61 MB / 266.7 MB Notification: Performance of matching and sorting (n=63): time 0.001956/0.01069, allocations: 1.425 MB / 276.5 MB, free: 14.13 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.646e-05/0.01072, allocations: 56.06 kB / 276.5 MB, free: 14.06 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001373/0.01086, allocations: 237.8 kB / 276.7 MB, free: 13.81 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.452e-05/0.01088, allocations: 41.7 kB / 276.8 MB, free: 13.77 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.18e-05/0.01097, allocations: 191.8 kB / 277 MB, free: 13.57 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000116/0.01108, allocations: 222.1 kB / 277.2 MB, free: 13.36 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.861e-05/0.01118, allocations: 96 kB / 277.3 MB, free: 13.25 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.01131, allocations: 0.5079 MB / 277.8 MB, free: 12.73 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001398/0.01145, allocations: 89.25 kB / 277.9 MB, free: 12.64 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001233/0.01157, allocations: 97.84 kB / 278 MB, free: 12.55 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002819/0.01186, allocations: 232.8 kB / 278.2 MB, free: 12.32 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.01186, allocations: 3.938 kB / 278.2 MB, free: 12.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0004035/0.01226, allocations: 381 kB / 278.6 MB, free: 11.94 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.01228, allocations: 4 kB / 278.6 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.01228, allocations: 4 kB / 278.6 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.0123, allocations: 4 kB / 278.6 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002683/0.01257, allocations: 115.9 kB / 278.7 MB, free: 11.81 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.01257, allocations: 3.938 kB / 278.7 MB, free: 11.81 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.129e-05/0.01266, allocations: 16 kB / 278.7 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.007e-05/0.01268, allocations: 16 kB / 278.7 MB, free: 11.78 MB / 266.7 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.0001205/0.0128, allocations: 192.4 kB / 278.9 MB, free: 11.58 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.678e-05/0.01285, allocations: 55.81 kB / 279 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.931e-05/0.01292, allocations: 47.34 kB / 279 MB, free: 11.47 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.01293, allocations: 8 kB / 279 MB, free: 11.46 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/0.01293, allocations: 0 / 279 MB, free: 11.46 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.01294, allocations: 7.984 kB / 279 MB, free: 11.45 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001062/0.014, allocations: 1.12 MB / 280.2 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.01401, allocations: 4 kB / 280.2 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002535/0.01426, allocations: 119.8 kB / 280.3 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-06/0.01427, allocations: 4 kB / 280.3 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.938e-05/0.01429, allocations: 16 kB / 280.3 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.344e-06/0.0143, allocations: 11.94 kB / 280.3 MB, free: 10.06 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.01431, allocations: 7.984 kB / 280.3 MB, free: 10.05 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000678/0.01499, allocations: 0.7849 MB / 281.1 MB, free: 9.172 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.836e-05/0.01502, allocations: 39.8 kB / 281.1 MB, free: 9.133 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.571e-05/0.01506, allocations: 16 kB / 281.2 MB, free: 9.117 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001128/0.01517, allocations: 16 kB / 281.2 MB, free: 9.102 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.456e-05/0.01525, allocations: 59.55 kB / 281.2 MB, free: 9.043 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.496e-05/0.01527, allocations: 23.98 kB / 281.3 MB, free: 9.02 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.812e-05/0.01535, allocations: 168.2 kB / 281.4 MB, free: 8.855 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01535, allocations: 0 / 281.4 MB, free: 8.855 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002667/0.01562, allocations: 99.94 kB / 281.5 MB, free: 8.758 MB / 266.7 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.0001197/0.01574, allocations: 127 kB / 281.6 MB, free: 8.625 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003906/0.01613, allocations: 313.1 kB / 281.9 MB, free: 8.312 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.01613, allocations: 0 / 281.9 MB, free: 8.312 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001919/0.01632, allocations: 193.7 kB / 282.1 MB, free: 8.121 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004011/0.01672, allocations: 90.66 kB / 282.2 MB, free: 8.039 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001013/0.01773, allocations: 0.9162 MB / 283.1 MB, free: 7.02 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.667e-05/0.01781, allocations: 106.8 kB / 283.2 MB, free: 6.898 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001251/0.01794, allocations: 47.25 kB / 283.3 MB, free: 6.852 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.827e-05/0.01802, allocations: 40.44 kB / 283.3 MB, free: 6.812 MB / 266.7 MB Notification: Performance of SimCode: time 7.72e-07/0.01802, allocations: 0 / 283.3 MB, free: 6.812 MB / 266.7 MB Notification: Performance of Templates: time 0.006383/0.0244, allocations: 4.196 MB / 287.5 MB, free: 2.684 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6492335519287735]