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.0009165/0.0009165, allocations: 85.05 kB / 21.5 MB, free: 2.992 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.0009369/0.0009369, allocations: 146.2 kB / 24.89 MB, free: 8.727 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.8857/0.8857, allocations: 173.4 MB / 201.5 MB, free: 8.758 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.172e-06/1.172e-06, allocations: 3.938 kB / 268.4 MB, free: 6.062 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.323e-05/1.44e-05, allocations: 2.312 kB / 268.4 MB, free: 6.059 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.002427/0.002442, allocations: 2.567 MB / 271 MB, free: 3.473 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006947/0.003136, allocations: 406.3 kB / 271.4 MB, free: 3.074 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001185/0.003255, allocations: 7.938 kB / 271.4 MB, free: 3.066 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001496/0.003404, allocations: 51.5 kB / 271.5 MB, free: 3.016 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001612/0.003565, allocations: 103.1 kB / 271.6 MB, free: 2.914 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002358/0.003801, allocations: 95.73 kB / 271.7 MB, free: 2.82 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002511/0.004052, allocations: 390.2 kB / 272 MB, free: 2.438 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001282/0.004181, allocations: 78.27 kB / 272.1 MB, free: 2.355 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002191/0.0044, allocations: 219.5 kB / 272.3 MB, free: 2.141 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001296/0.004529, allocations: 119.7 kB / 272.5 MB, free: 2.023 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.572e-05/0.004565, allocations: 28 kB / 272.5 MB, free: 1.996 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.068e-05/0.004596, allocations: 36 kB / 272.5 MB, free: 1.961 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.554e-05/0.004641, allocations: 71.73 kB / 272.6 MB, free: 1.891 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.171e-05/0.004723, allocations: 123.7 kB / 272.7 MB, free: 1.77 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002128/0.004936, allocations: 251.1 kB / 273 MB, free: 1.523 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.513e-06/0.004937, allocations: 4 kB / 273 MB, free: 1.52 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.8e-07/0.004938, allocations: 0 / 273 MB, free: 1.52 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.516e-06/0.004941, allocations: 0 / 273 MB, free: 1.52 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.0005351/0.005476, allocations: 0.5155 MB / 273.5 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.988e-05/0.005506, allocations: 12.92 kB / 273.5 MB, free: 0.9648 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.169e-05/0.005558, allocations: 48.89 kB / 273.5 MB, free: 0.918 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001749/0.005733, allocations: 185.1 kB / 273.7 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.023e-05/0.005753, allocations: 24.97 kB / 273.7 MB, free: 0.6875 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.606e-05/0.005789, allocations: 40.31 kB / 273.8 MB, free: 0.6484 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002037/0.005993, allocations: 203.3 kB / 274 MB, free: 452 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.006005, allocations: 8.172 kB / 274 MB, free: 444 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.59e-05/0.006021, allocations: 12.38 kB / 274 MB, free: 432 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.006026, allocations: 8.375 kB / 274 MB, free: 424 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001166/0.006143, allocations: 100.5 kB / 274.1 MB, free: 320 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005892/0.006732, allocations: 486.7 kB / 274.6 MB, free: 15.82 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002101/0.006942, allocations: 234.5 kB / 274.8 MB, free: 15.58 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.177e-05/0.007024, allocations: 96.75 kB / 274.9 MB, free: 15.48 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.887e-05/0.007042, allocations: 4 kB / 274.9 MB, free: 15.48 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.85e-05/0.007061, allocations: 38.55 kB / 274.9 MB, free: 15.43 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.573e-06/0.007063, allocations: 0 / 274.9 MB, free: 15.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=63): time 0.001646/0.008709, allocations: 1.373 MB / 276.3 MB, free: 14.01 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.95e-05/0.008738, allocations: 60.05 kB / 276.4 MB, free: 13.93 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002923/0.00903, allocations: 175.5 kB / 276.5 MB, free: 13.75 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.106e-05/0.009051, allocations: 37.7 kB / 276.6 MB, free: 13.71 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.857e-05/0.0091, allocations: 132.8 kB / 276.7 MB, free: 13.57 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/0.009203, allocations: 233.9 kB / 276.9 MB, free: 13.34 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.002e-05/0.009283, allocations: 94.3 kB / 277 MB, free: 13.24 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.832e-05/0.009361, allocations: 354.7 kB / 277.4 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.952e-05/0.009421, allocations: 53.28 kB / 277.4 MB, free: 12.84 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.471e-05/0.009485, allocations: 65.88 kB / 277.5 MB, free: 12.77 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001634/0.009649, allocations: 193.8 kB / 277.7 MB, free: 12.58 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.00965, allocations: 0 / 277.7 MB, free: 12.58 MB / 266.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0002176/0.009868, allocations: 257.2 kB / 277.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/0.009879, allocations: 4 kB / 277.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.137e-06/0.009884, allocations: 0 / 277.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.188e-06/0.009893, allocations: 4 kB / 277.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002295/0.01012, allocations: 119.8 kB / 278.1 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.01013, allocations: 7.984 kB / 278.1 MB, free: 12.19 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.384e-05/0.0102, allocations: 20 kB / 278.1 MB, free: 12.17 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.468e-05/0.01022, allocations: 12 kB / 278.1 MB, free: 12.16 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 8.613e-05/0.0103, allocations: 133.8 kB / 278.2 MB, free: 12.02 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.436e-05/0.01035, allocations: 47.91 kB / 278.3 MB, free: 11.97 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.759e-05/0.01039, allocations: 43.34 kB / 278.3 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.145e-06/0.0104, allocations: 4 kB / 278.3 MB, free: 11.92 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.0104, allocations: 0 / 278.3 MB, free: 11.92 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.01041, allocations: 7.984 kB / 278.3 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007473/0.01115, allocations: 0.8177 MB / 279.1 MB, free: 11.01 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.01116, allocations: 4.562 kB / 279.2 MB, free: 11.01 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002233/0.01138, allocations: 123.8 kB / 279.3 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.01139, allocations: 8 kB / 279.3 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.842e-05/0.0114, allocations: 19.98 kB / 279.3 MB, free: 10.86 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.55e-06/0.01141, allocations: 11.94 kB / 279.3 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.01141, allocations: 4 kB / 279.3 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004091/0.01182, allocations: 0.5666 MB / 279.9 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.916e-05/0.01185, allocations: 35.8 kB / 279.9 MB, free: 10.17 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.831e-05/0.01188, allocations: 20 kB / 279.9 MB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001018/0.01198, allocations: 16 kB / 280 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.147e-05/0.01203, allocations: 55.8 kB / 280 MB, free: 10.08 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.634e-05/0.01205, allocations: 19.98 kB / 280 MB, free: 10.06 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.48e-05/0.01208, allocations: 52.86 kB / 280.1 MB, free: 10.01 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01208, allocations: 4 kB / 280.1 MB, free: 10 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002215/0.0123, allocations: 92 kB / 280.2 MB, free: 9.914 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 7.476e-05/0.01238, allocations: 100.2 kB / 280.3 MB, free: 9.809 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000231/0.01261, allocations: 262.1 kB / 280.5 MB, free: 9.551 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.01261, allocations: 4 kB / 280.5 MB, free: 9.547 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001272/0.01274, allocations: 162.1 kB / 280.7 MB, free: 9.387 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003007/0.01304, allocations: 103.6 kB / 280.8 MB, free: 9.293 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007302/0.01377, allocations: 0.7906 MB / 281.6 MB, free: 8.414 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.295e-05/0.01384, allocations: 106.8 kB / 281.7 MB, free: 8.293 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001036/0.01394, allocations: 43.27 kB / 281.7 MB, free: 8.254 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001569/0.0141, allocations: 131.3 kB / 281.9 MB, free: 8.125 MB / 266.7 MB Notification: Performance of SimCode: time 4.01e-07/0.0141, allocations: 0 / 281.9 MB, free: 8.125 MB / 266.7 MB Notification: Performance of Templates: time 0.005924/0.02002, allocations: 4.594 MB / 286.4 MB, free: 3.613 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.62475606193766]