Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.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.0007864/0.0007864, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 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.0009638/0.0009638, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 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 0.975/0.975, allocations: 177.1 MB / 205 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 179] 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.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.1.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.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 273 MB, free: 1.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.737e-05/2.897e-05, allocations: 2.312 kB / 273 MB, free: 1.566 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004227/0.004256, allocations: 2.654 MB / 275.6 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001548/0.005804, allocations: 0.7247 MB / 276.3 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002018/0.006006, allocations: 7.938 kB / 276.3 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001751/0.006181, allocations: 47.5 kB / 276.4 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002634/0.006444, allocations: 115 kB / 276.5 MB, free: 14 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003361/0.00678, allocations: 95.73 kB / 276.6 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005395/0.00732, allocations: 402 kB / 277 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002103/0.00753, allocations: 79.61 kB / 277.1 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003614/0.007891, allocations: 219.5 kB / 277.3 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000288/0.008179, allocations: 127.7 kB / 277.4 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.631e-05/0.008266, allocations: 32 kB / 277.4 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.932e-05/0.008335, allocations: 31.94 kB / 277.5 MB, free: 13.03 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.483e-05/0.00841, allocations: 75.72 kB / 277.5 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001606/0.00857, allocations: 123.7 kB / 277.7 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004477/0.009018, allocations: 263 kB / 277.9 MB, free: 12.58 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.009022, allocations: 0 / 277.9 MB, free: 12.58 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.009023, allocations: 0 / 277.9 MB, free: 12.58 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.528e-05/0.009038, allocations: 0 / 277.9 MB, free: 12.58 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.0009981/0.01004, allocations: 0.6597 MB / 278.6 MB, free: 11.88 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.01008, allocations: 11.97 kB / 278.6 MB, free: 11.87 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001097/0.01019, allocations: 60.7 kB / 278.7 MB, free: 11.81 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003217/0.01051, allocations: 220.9 kB / 278.9 MB, free: 11.56 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.419e-05/0.01054, allocations: 25.03 kB / 278.9 MB, free: 11.54 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.333e-05/0.01061, allocations: 32.36 kB / 278.9 MB, free: 11.51 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003972/0.011, allocations: 215.1 kB / 279.1 MB, free: 11.29 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.126e-05/0.01103, allocations: 4 kB / 279.1 MB, free: 11.29 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.714e-05/0.01105, allocations: 12 kB / 279.2 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.363e-05/0.01107, allocations: 8 kB / 279.2 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003301/0.0114, allocations: 143.8 kB / 279.3 MB, free: 11.12 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001422/0.01282, allocations: 0.6742 MB / 280 MB, free: 10.41 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004095/0.01323, allocations: 272 kB / 280.2 MB, free: 10.13 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002184/0.01345, allocations: 113 kB / 280.3 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.088e-05/0.01349, allocations: 8.375 kB / 280.4 MB, free: 10.01 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.21e-05/0.01352, allocations: 45.77 kB / 280.4 MB, free: 9.957 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 2.345e-06/0.01352, allocations: 0 / 280.4 MB, free: 9.957 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.002758/0.01628, allocations: 1.441 MB / 281.8 MB, free: 8.457 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.901e-05/0.01632, allocations: 60.06 kB / 281.9 MB, free: 8.387 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000202/0.01652, allocations: 245.6 kB / 282.1 MB, free: 8.129 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.317e-05/0.01655, allocations: 41.69 kB / 282.2 MB, free: 8.082 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001136/0.01667, allocations: 199.8 kB / 282.4 MB, free: 7.883 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001622/0.01683, allocations: 233.9 kB / 282.6 MB, free: 7.652 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001409/0.01697, allocations: 104 kB / 282.7 MB, free: 7.543 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.01714, allocations: 0.5195 MB / 283.2 MB, free: 7.012 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001885/0.01733, allocations: 81.25 kB / 283.3 MB, free: 6.934 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001863/0.01751, allocations: 93.86 kB / 283.4 MB, free: 6.84 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004481/0.01796, allocations: 240.8 kB / 283.6 MB, free: 6.602 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.01797, allocations: 0 / 283.6 MB, free: 6.602 MB / 266.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0005999/0.01857, allocations: 381.1 kB / 284 MB, free: 6.223 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.178e-05/0.01859, allocations: 4 kB / 284 MB, free: 6.219 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.01859, allocations: 0 / 284 MB, free: 6.219 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.183e-05/0.01862, allocations: 8 kB / 284 MB, free: 6.211 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000371/0.01899, allocations: 115.8 kB / 284.1 MB, free: 6.098 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.326e-06/0.019, allocations: 8 kB / 284.1 MB, free: 6.09 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.501e-05/0.01908, allocations: 15.98 kB / 284.2 MB, free: 6.074 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.112e-05/0.0191, allocations: 19.94 kB / 284.2 MB, free: 6.055 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 (71): * Single equations (assignments): 71 * 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.000154/0.01926, allocations: 184.5 kB / 284.4 MB, free: 5.863 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.316e-05/0.01935, allocations: 59.77 kB / 284.4 MB, free: 5.805 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.123e-05/0.01944, allocations: 47.33 kB / 284.5 MB, free: 5.754 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.194e-06/0.01945, allocations: 8 kB / 284.5 MB, free: 5.746 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.01945, allocations: 0 / 284.5 MB, free: 5.746 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.01946, allocations: 3.984 kB / 284.5 MB, free: 5.742 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001621/0.02108, allocations: 1.125 MB / 285.6 MB, free: 4.5 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.675e-06/0.02109, allocations: 4.562 kB / 285.6 MB, free: 4.496 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003989/0.02149, allocations: 123.8 kB / 285.7 MB, free: 4.375 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.205e-05/0.0215, allocations: 8 kB / 285.7 MB, free: 4.367 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.777e-05/0.02154, allocations: 19.94 kB / 285.7 MB, free: 4.348 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.449e-05/0.02155, allocations: 15.97 kB / 285.8 MB, free: 4.332 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.574e-06/0.02156, allocations: 7.938 kB / 285.8 MB, free: 4.324 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001057/0.02262, allocations: 0.7791 MB / 286.6 MB, free: 3.453 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.885e-05/0.02269, allocations: 39.77 kB / 286.6 MB, free: 3.414 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.301e-05/0.02274, allocations: 23.94 kB / 286.6 MB, free: 3.391 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002019/0.02294, allocations: 19.98 kB / 286.6 MB, free: 3.371 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.02304, allocations: 52.3 kB / 286.7 MB, free: 3.32 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.392e-05/0.02308, allocations: 24 kB / 286.7 MB, free: 3.297 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001289/0.02321, allocations: 168.5 kB / 286.9 MB, free: 3.133 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02321, allocations: 0 / 286.9 MB, free: 3.133 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000455/0.02366, allocations: 104 kB / 287 MB, free: 3.031 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 (65): * Single equations (assignments): 65 * 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.0001611/0.02382, allocations: 115.1 kB / 287.1 MB, free: 2.906 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000546/0.02437, allocations: 325.1 kB / 287.4 MB, free: 2.582 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.02437, allocations: 0 / 287.4 MB, free: 2.582 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002737/0.02464, allocations: 191.5 kB / 287.6 MB, free: 2.391 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006619/0.02531, allocations: 103.4 kB / 287.7 MB, free: 2.297 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001428/0.02673, allocations: 0.9419 MB / 288.6 MB, free: 1.25 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001056/0.02684, allocations: 110.8 kB / 288.7 MB, free: 1.121 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001759/0.02701, allocations: 55.28 kB / 288.8 MB, free: 1.066 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001091/0.02712, allocations: 36.5 kB / 288.8 MB, free: 1.031 MB / 266.7 MB Notification: Performance of SimCode: time 8.11e-07/0.02712, allocations: 0 / 288.8 MB, free: 1.031 MB / 266.7 MB Notification: Performance of Templates: time 0.008734/0.03586, allocations: 4.441 MB / 293.3 MB, free: 12.68 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & ./Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.938934656791389]