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.001521/0.001521, allocations: 84.34 kB / 20.95 MB, free: 3.453 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.001633/0.001633, allocations: 169.3 kB / 24.27 MB, free: 144 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 1.503/1.503, allocations: 177.1 MB / 204.6 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] 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.774e-06/1.774e-06, allocations: 0 / 272.3 MB, free: 1.855 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.843e-05/3.021e-05, allocations: 6.312 kB / 272.3 MB, free: 1.848 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.005684/0.005715, allocations: 2.473 MB / 274.8 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002116/0.00783, allocations: 0.7014 MB / 275.5 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003591/0.00819, allocations: 7.938 kB / 275.5 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002974/0.008487, allocations: 51.5 kB / 275.5 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004801/0.008967, allocations: 114.9 kB / 275.7 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004921/0.009459, allocations: 99.73 kB / 275.7 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007307/0.01019, allocations: 402.1 kB / 276.1 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002601/0.01045, allocations: 75.62 kB / 276.2 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004779/0.01093, allocations: 223.5 kB / 276.4 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003288/0.01126, allocations: 127.6 kB / 276.6 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.273e-05/0.01134, allocations: 28 kB / 276.6 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.207e-05/0.01143, allocations: 32 kB / 276.6 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001011/0.01153, allocations: 71.73 kB / 276.7 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004594/0.01199, allocations: 119.8 kB / 276.8 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007048/0.0127, allocations: 390.6 kB / 277.2 MB, free: 12.94 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.0127, allocations: 4 kB / 277.2 MB, free: 12.94 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.0127, allocations: 0 / 277.2 MB, free: 12.94 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.689e-05/0.01272, allocations: 0 / 277.2 MB, free: 12.94 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.001558/0.01428, allocations: 0.5558 MB / 277.7 MB, free: 12.35 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.401e-05/0.01433, allocations: 16.02 kB / 277.8 MB, free: 12.33 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002034/0.01454, allocations: 64.7 kB / 277.8 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006013/0.01514, allocations: 206.2 kB / 278 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.207e-05/0.01518, allocations: 24.97 kB / 278.1 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001051/0.01528, allocations: 36.33 kB / 278.1 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007141/0.016, allocations: 262.4 kB / 278.3 MB, free: 11.72 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.221e-05/0.01602, allocations: 0 / 278.3 MB, free: 11.72 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.14e-05/0.01606, allocations: 12 kB / 278.4 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.454e-05/0.01608, allocations: 8 kB / 278.4 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006292/0.01671, allocations: 234.5 kB / 278.6 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001864/0.01857, allocations: 0.6437 MB / 279.2 MB, free: 10.79 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000783/0.01935, allocations: 311.6 kB / 279.5 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004133/0.01977, allocations: 162.1 kB / 279.7 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.195e-05/0.01981, allocations: 8.375 kB / 279.7 MB, free: 10.31 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.003e-05/0.01986, allocations: 38.94 kB / 279.7 MB, free: 10.27 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 2.284e-06/0.01986, allocations: 4 kB / 279.7 MB, free: 10.26 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.005539/0.0254, allocations: 1.78 MB / 281.5 MB, free: 8.43 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.326e-05/0.02545, allocations: 60.06 kB / 281.6 MB, free: 8.359 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002425/0.02569, allocations: 199.1 kB / 281.8 MB, free: 8.156 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.197e-05/0.02574, allocations: 33.7 kB / 281.8 MB, free: 8.117 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001405/0.02588, allocations: 157.1 kB / 282 MB, free: 7.961 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002167/0.02609, allocations: 226 kB / 282.2 MB, free: 7.738 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001627/0.02626, allocations: 94.34 kB / 282.3 MB, free: 7.641 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000201/0.02646, allocations: 350.7 kB / 282.6 MB, free: 7.289 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002831/0.02674, allocations: 141.2 kB / 282.8 MB, free: 7.152 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002739/0.02701, allocations: 153.9 kB / 282.9 MB, free: 7 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006103/0.02762, allocations: 358 kB / 283.3 MB, free: 6.648 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.572e-06/0.02763, allocations: 0 / 283.3 MB, free: 6.648 MB / 266.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008215/0.02845, allocations: 489.1 kB / 283.7 MB, free: 6.164 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.02846, allocations: 4 kB / 283.7 MB, free: 6.16 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.02847, allocations: 0 / 283.7 MB, free: 6.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.079e-05/0.02849, allocations: 7.938 kB / 283.7 MB, free: 6.152 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006814/0.02917, allocations: 115.8 kB / 283.9 MB, free: 6.039 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.02918, allocations: 0 / 283.9 MB, free: 6.039 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001813/0.02936, allocations: 19.98 kB / 283.9 MB, free: 6.02 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.797e-05/0.0294, allocations: 23.94 kB / 283.9 MB, free: 5.996 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.0001956/0.02959, allocations: 165.7 kB / 284.1 MB, free: 5.824 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001123/0.02971, allocations: 51.81 kB / 284.1 MB, free: 5.773 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001271/0.02983, allocations: 51.33 kB / 284.2 MB, free: 5.719 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.02984, allocations: 4 kB / 284.2 MB, free: 5.715 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.02985, allocations: 0 / 284.2 MB, free: 5.715 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/0.02986, allocations: 7.984 kB / 284.2 MB, free: 5.707 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002003/0.03186, allocations: 1.15 MB / 285.3 MB, free: 4.465 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.745e-06/0.03187, allocations: 4 kB / 285.3 MB, free: 4.461 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004922/0.03236, allocations: 115.8 kB / 285.4 MB, free: 4.348 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.063e-05/0.03237, allocations: 8 kB / 285.5 MB, free: 4.34 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.141e-05/0.03241, allocations: 24.48 kB / 285.5 MB, free: 4.316 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.277e-06/0.03242, allocations: 12 kB / 285.5 MB, free: 4.305 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.917e-06/0.03243, allocations: 7.938 kB / 285.5 MB, free: 4.297 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00131/0.03374, allocations: 0.854 MB / 286.4 MB, free: 3.375 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.175e-05/0.0338, allocations: 35.86 kB / 286.4 MB, free: 3.34 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.55e-05/0.03386, allocations: 19.94 kB / 286.4 MB, free: 3.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002474/0.03411, allocations: 24.02 kB / 286.4 MB, free: 3.297 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/0.03421, allocations: 52.3 kB / 286.5 MB, free: 3.246 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.413e-05/0.03424, allocations: 20 kB / 286.5 MB, free: 3.227 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001478/0.03439, allocations: 148.6 kB / 286.6 MB, free: 3.082 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03439, allocations: 0 / 286.6 MB, free: 3.082 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004277/0.03482, allocations: 96 kB / 286.7 MB, free: 2.988 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.0001602/0.03498, allocations: 123.1 kB / 286.9 MB, free: 2.855 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007071/0.03568, allocations: 384.2 kB / 287.2 MB, free: 2.477 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.03569, allocations: 4 kB / 287.2 MB, free: 2.473 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003829/0.03607, allocations: 222.9 kB / 287.5 MB, free: 2.254 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006733/0.03675, allocations: 99.06 kB / 287.6 MB, free: 2.16 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001689/0.03843, allocations: 0.9421 MB / 288.5 MB, free: 1.137 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000232/0.03867, allocations: 195.3 kB / 288.7 MB, free: 0.9258 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002034/0.03887, allocations: 51.28 kB / 288.7 MB, free: 0.8711 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001206/0.03899, allocations: 40.48 kB / 288.8 MB, free: 0.832 MB / 266.7 MB Notification: Performance of SimCode: time 5.01e-07/0.03899, allocations: 0 / 288.8 MB, free: 0.832 MB / 266.7 MB Notification: Performance of Templates: time 0.1064/0.1454, allocations: 4.421 MB / 293.2 MB, free: 27.92 MB / 266.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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.4265604799147695]