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.000991/0.000991, allocations: 75.91 kB / 21.18 MB, free: 3.395 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.0008768/0.0008768, allocations: 145.5 kB / 24.54 MB, free: 36 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 1.013/1.013, allocations: 173.4 MB / 201.1 MB, free: 9.359 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.412e-06/1.412e-06, allocations: 0 / 268 MB, free: 6.484 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.471e-05/2.612e-05, allocations: 6.25 kB / 268 MB, free: 6.477 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.002843/0.002869, allocations: 2.605 MB / 270.6 MB, free: 3.855 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006991/0.003568, allocations: 382.6 kB / 270.9 MB, free: 3.48 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001257/0.003694, allocations: 7.938 kB / 271 MB, free: 3.473 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001444/0.003838, allocations: 47.52 kB / 271 MB, free: 3.426 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001564/0.003995, allocations: 107 kB / 271.1 MB, free: 3.32 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002934/0.004288, allocations: 91.75 kB / 271.2 MB, free: 3.23 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002911/0.004579, allocations: 402.1 kB / 271.6 MB, free: 2.836 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001697/0.004749, allocations: 75.39 kB / 271.7 MB, free: 2.758 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002053/0.004954, allocations: 215.5 kB / 271.9 MB, free: 2.547 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001464/0.005101, allocations: 127.6 kB / 272 MB, free: 2.422 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.064e-05/0.005141, allocations: 32 kB / 272 MB, free: 2.391 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.697e-05/0.005178, allocations: 28 kB / 272.1 MB, free: 2.363 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.962e-05/0.005228, allocations: 79.72 kB / 272.1 MB, free: 2.285 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.019e-05/0.005318, allocations: 111.8 kB / 272.2 MB, free: 2.176 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002447/0.005563, allocations: 255.1 kB / 272.5 MB, free: 1.926 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.005566, allocations: 0 / 272.5 MB, free: 1.926 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.12e-07/0.005566, allocations: 0 / 272.5 MB, free: 1.926 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.005571, allocations: 0 / 272.5 MB, free: 1.926 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.0007126/0.006284, allocations: 0.6402 MB / 273.1 MB, free: 1.246 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.006322, allocations: 12.92 kB / 273.1 MB, free: 1.234 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.336e-05/0.006396, allocations: 52.75 kB / 273.2 MB, free: 1.184 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002379/0.006634, allocations: 223.8 kB / 273.4 MB, free: 0.9375 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.832e-05/0.006662, allocations: 21.03 kB / 273.4 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.696e-05/0.006709, allocations: 36.38 kB / 273.5 MB, free: 0.8789 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003269/0.007036, allocations: 223.3 kB / 273.7 MB, free: 0.6523 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.00705, allocations: 192 / 273.7 MB, free: 0.6523 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.309e-05/0.007073, allocations: 12.38 kB / 273.7 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.558e-06/0.007082, allocations: 4.375 kB / 273.7 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002113/0.007294, allocations: 155.7 kB / 273.9 MB, free: 500 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008353/0.008129, allocations: 0.6621 MB / 274.5 MB, free: 15.79 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003214/0.00845, allocations: 283.1 kB / 274.8 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001445/0.008595, allocations: 115.6 kB / 274.9 MB, free: 15.38 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.182e-05/0.008627, allocations: 12 kB / 274.9 MB, free: 15.37 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.357e-05/0.00865, allocations: 37.39 kB / 275 MB, free: 15.32 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.443e-06/0.008652, allocations: 0 / 275 MB, free: 15.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=63): time 0.00193/0.01058, allocations: 1.413 MB / 276.4 MB, free: 13.85 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.127e-05/0.01061, allocations: 64 kB / 276.4 MB, free: 13.77 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001313/0.01074, allocations: 237.8 kB / 276.7 MB, free: 13.52 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.539e-05/0.01077, allocations: 37.7 kB / 276.7 MB, free: 13.48 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.83e-05/0.01086, allocations: 195.8 kB / 276.9 MB, free: 13.29 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001113/0.01097, allocations: 222.1 kB / 277.1 MB, free: 13.07 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.398e-05/0.01106, allocations: 99.98 kB / 277.2 MB, free: 12.96 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.01119, allocations: 0.5079 MB / 277.7 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001288/0.01132, allocations: 89.25 kB / 277.8 MB, free: 12.35 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001254/0.01145, allocations: 93.84 kB / 277.9 MB, free: 12.26 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002815/0.01173, allocations: 240.8 kB / 278.1 MB, free: 12.02 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.01173, allocations: 3.938 kB / 278.1 MB, free: 12.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0003994/0.01213, allocations: 373.1 kB / 278.5 MB, free: 11.65 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.01215, allocations: 8 kB / 278.5 MB, free: 11.64 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.01215, allocations: 0 / 278.5 MB, free: 11.64 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.86e-05/0.01217, allocations: 4 kB / 278.5 MB, free: 11.64 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002579/0.01243, allocations: 119.9 kB / 278.6 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.01243, allocations: 0 / 278.6 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.734e-05/0.01251, allocations: 19.98 kB / 278.6 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.004e-05/0.01253, 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.0001095/0.01264, allocations: 184.4 kB / 278.8 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.616e-05/0.0127, allocations: 55.81 kB / 278.9 MB, free: 11.24 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.664e-05/0.01276, allocations: 55.33 kB / 279 MB, free: 11.18 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.01277, allocations: 4 kB / 279 MB, free: 11.17 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.01277, allocations: 0 / 279 MB, free: 11.17 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.01278, allocations: 3.984 kB / 279 MB, free: 11.17 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001063/0.01384, allocations: 1.12 MB / 280.1 MB, free: 9.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.01385, allocations: 4 kB / 280.1 MB, free: 9.926 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002514/0.0141, allocations: 119.8 kB / 280.2 MB, free: 9.809 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.272e-06/0.0141, allocations: 8 kB / 280.2 MB, free: 9.801 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.323e-05/0.01413, allocations: 16 kB / 280.2 MB, free: 9.785 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.841e-06/0.01413, allocations: 15.92 kB / 280.2 MB, free: 9.77 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.01414, allocations: 7.938 kB / 280.2 MB, free: 9.762 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006683/0.01481, allocations: 0.7849 MB / 281 MB, free: 8.879 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.199e-05/0.01484, allocations: 31.81 kB / 281.1 MB, free: 8.848 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.092e-05/0.01487, allocations: 16 kB / 281.1 MB, free: 8.832 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001125/0.01498, allocations: 23.98 kB / 281.1 MB, free: 8.809 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.851e-05/0.01505, allocations: 59.58 kB / 281.2 MB, free: 8.75 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.854e-05/0.01507, allocations: 20 kB / 281.2 MB, free: 8.73 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.692e-05/0.01515, allocations: 172.1 kB / 281.3 MB, free: 8.562 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01515, allocations: 4 kB / 281.4 MB, free: 8.559 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002504/0.0154, allocations: 96 kB / 281.4 MB, free: 8.465 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.0001075/0.0155, allocations: 123 kB / 281.6 MB, free: 8.336 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000382/0.01589, 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.404e-06/0.01589, allocations: 0 / 281.9 MB, free: 8.02 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001882/0.01608, allocations: 193.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.0003992/0.01648, allocations: 90.53 kB / 282.2 MB, free: 7.742 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001012/0.01749, allocations: 0.9124 MB / 283.1 MB, free: 6.727 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.634e-05/0.01756, allocations: 102.8 kB / 283.2 MB, free: 6.609 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001096/0.01767, allocations: 51.25 kB / 283.2 MB, free: 6.559 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.971e-05/0.01776, allocations: 40.48 kB / 283.3 MB, free: 6.52 MB / 266.7 MB Notification: Performance of SimCode: time 6.11e-07/0.01776, allocations: 0 / 283.3 MB, free: 6.52 MB / 266.7 MB Notification: Performance of Templates: time 0.006317/0.02408, allocations: 4.196 MB / 287.5 MB, free: 2.395 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.9258762490935624]