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.0009479/0.0009479, allocations: 87.88 kB / 21.19 MB, free: 3.406 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.0009779/0.0009779, allocations: 141.1 kB / 24.54 MB, free: 60 kB / 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.9534/0.9534, allocations: 173.3 MB / 201.1 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 4.118e-06/4.118e-06, allocations: 4 kB / 268 MB, free: 6.469 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.844e-05/3.256e-05, allocations: 2.312 kB / 268 MB, free: 6.465 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004103/0.004136, allocations: 2.6 MB / 270.6 MB, free: 3.852 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001056/0.005192, allocations: 390.5 kB / 271 MB, free: 3.469 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000181/0.005373, allocations: 7.938 kB / 271 MB, free: 3.461 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002018/0.005575, allocations: 51.5 kB / 271 MB, free: 3.41 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002535/0.005828, allocations: 107.1 kB / 271.1 MB, free: 3.305 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000396/0.006224, allocations: 95.73 kB / 271.2 MB, free: 3.211 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004487/0.006673, allocations: 390.1 kB / 271.6 MB, free: 2.828 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002136/0.006887, allocations: 75.39 kB / 271.7 MB, free: 2.75 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003024/0.007189, allocations: 211.6 kB / 271.9 MB, free: 2.543 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001663/0.007355, allocations: 135.6 kB / 272 MB, free: 2.41 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.427e-05/0.0074, allocations: 28 kB / 272 MB, free: 2.383 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.645e-05/0.007436, allocations: 35.94 kB / 272.1 MB, free: 2.348 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.359e-05/0.00748, allocations: 67.75 kB / 272.1 MB, free: 2.281 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.776e-05/0.007567, allocations: 119.7 kB / 272.2 MB, free: 2.164 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003672/0.007935, allocations: 251.1 kB / 272.5 MB, free: 1.918 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.007938, allocations: 0 / 272.5 MB, free: 1.918 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.007939, allocations: 0 / 272.5 MB, free: 1.918 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.962e-06/0.007945, allocations: 0 / 272.5 MB, free: 1.918 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.0007442/0.008689, allocations: 0.648 MB / 273.1 MB, free: 1.23 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.008729, allocations: 8.922 kB / 273.1 MB, free: 1.223 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.465e-05/0.008814, allocations: 56.75 kB / 273.2 MB, free: 1.168 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000266/0.00908, allocations: 223.8 kB / 273.4 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.523e-05/0.009115, allocations: 17.03 kB / 273.4 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.113e-05/0.009156, allocations: 28.38 kB / 273.5 MB, free: 0.875 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003227/0.009479, allocations: 223.3 kB / 273.7 MB, free: 0.6484 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.009493, allocations: 192 / 273.7 MB, free: 0.6484 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.103e-05/0.009514, allocations: 16.31 kB / 273.7 MB, free: 0.6328 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.009525, allocations: 12.38 kB / 273.7 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002126/0.009737, allocations: 151.7 kB / 273.9 MB, free: 488 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008952/0.01063, allocations: 0.6543 MB / 274.5 MB, free: 15.79 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000405/0.01104, allocations: 287.1 kB / 274.8 MB, free: 15.49 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001663/0.0112, allocations: 119.6 kB / 274.9 MB, free: 15.37 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.544e-05/0.01124, allocations: 12 kB / 274.9 MB, free: 15.36 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.201e-05/0.01127, allocations: 41.38 kB / 275 MB, free: 15.3 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 2.325e-06/0.01127, allocations: 0 / 275 MB, free: 15.3 MB / 266.7 MB Notification: Performance of matching and sorting (n=63): time 0.002304/0.01358, allocations: 1.413 MB / 276.4 MB, free: 13.83 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.276e-05/0.01361, allocations: 56.06 kB / 276.4 MB, free: 13.77 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001419/0.01375, allocations: 241.8 kB / 276.7 MB, free: 13.51 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.508e-05/0.01378, allocations: 37.7 kB / 276.7 MB, free: 13.47 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.815e-05/0.01386, allocations: 191.8 kB / 276.9 MB, free: 13.28 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001116/0.01398, allocations: 222.1 kB / 277.1 MB, free: 13.06 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.199e-05/0.01407, allocations: 100 kB / 277.2 MB, free: 12.95 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.01419, allocations: 0.5157 MB / 277.7 MB, free: 12.43 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001297/0.01432, allocations: 81.27 kB / 277.8 MB, free: 12.34 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001228/0.01444, allocations: 97.84 kB / 277.9 MB, free: 12.25 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002801/0.01472, allocations: 236.8 kB / 278.1 MB, free: 12.02 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.01472, allocations: 3.938 kB / 278.1 MB, free: 12.01 MB / 266.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0003911/0.01511, allocations: 369.1 kB / 278.5 MB, free: 11.64 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.01513, allocations: 4 kB / 278.5 MB, free: 11.64 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.01513, allocations: 3.938 kB / 278.5 MB, free: 11.64 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.01515, allocations: 4 kB / 278.5 MB, free: 11.63 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002679/0.01541, allocations: 115.9 kB / 278.6 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.01542, allocations: 8 kB / 278.6 MB, free: 11.51 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.719e-05/0.0155, allocations: 15.98 kB / 278.6 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.098e-05/0.01552, allocations: 16 kB / 278.7 MB, free: 11.48 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.0001073/0.01563, allocations: 192.4 kB / 278.8 MB, free: 11.28 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.452e-05/0.01568, allocations: 55.81 kB / 278.9 MB, free: 11.23 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.393e-05/0.01575, allocations: 47.33 kB / 278.9 MB, free: 11.17 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.461e-06/0.01575, allocations: 8 kB / 279 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.01576, allocations: 0 / 279 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.01576, allocations: 3.984 kB / 279 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001041/0.01681, allocations: 1.12 MB / 280.1 MB, free: 9.922 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.01681, allocations: 8.062 kB / 280.1 MB, free: 9.914 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002575/0.01707, allocations: 119.8 kB / 280.2 MB, free: 9.797 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.694e-06/0.01708, allocations: 8 kB / 280.2 MB, free: 9.789 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.303e-05/0.0171, allocations: 19.98 kB / 280.2 MB, free: 9.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.758e-06/0.0171, allocations: 4 kB / 280.2 MB, free: 9.766 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.01711, allocations: 11.94 kB / 280.2 MB, free: 9.754 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006739/0.01778, allocations: 0.7806 MB / 281 MB, free: 8.875 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.383e-05/0.01782, allocations: 35.81 kB / 281.1 MB, free: 8.84 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.271e-05/0.01785, allocations: 16 kB / 281.1 MB, free: 8.824 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001159/0.01796, allocations: 19.98 kB / 281.1 MB, free: 8.805 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.607e-05/0.01803, allocations: 59.55 kB / 281.2 MB, free: 8.746 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.844e-05/0.01805, allocations: 20 kB / 281.2 MB, free: 8.727 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.016e-05/0.01812, allocations: 172.1 kB / 281.3 MB, free: 8.559 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01812, allocations: 0 / 281.3 MB, free: 8.559 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002573/0.01838, allocations: 100 kB / 281.4 MB, free: 8.461 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.0001043/0.01848, allocations: 119 kB / 281.6 MB, free: 8.336 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003753/0.01886, allocations: 317.1 kB / 281.9 MB, free: 8.02 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.01886, allocations: 0 / 281.9 MB, free: 8.02 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001809/0.01904, allocations: 192.7 kB / 282.1 MB, free: 7.828 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004071/0.01945, allocations: 100.9 kB / 282.2 MB, free: 7.73 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001218/0.02066, allocations: 0.9122 MB / 283.1 MB, free: 6.715 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.354e-05/0.02074, allocations: 110.8 kB / 283.2 MB, free: 6.59 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001154/0.02085, allocations: 47.27 kB / 283.2 MB, free: 6.543 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.075e-05/0.02093, allocations: 40.48 kB / 283.3 MB, free: 6.504 MB / 266.7 MB Notification: Performance of SimCode: time 9.42e-07/0.02093, allocations: 0 / 283.3 MB, free: 6.504 MB / 266.7 MB Notification: Performance of Templates: time 0.006318/0.02725, allocations: 4.421 MB / 287.7 MB, free: 2.152 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.689470389392227]