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.000782/0.000782, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.003544/0.003544, allocations: 160.7 kB / 24.7 MB, free: 8.898 MB / 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.8293/0.8293, allocations: 177.1 MB / 205 MB, free: 5.719 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.332e-06/1.332e-06, allocations: 0 / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.499e-05/1.632e-05, allocations: 2.281 kB / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.00223/0.002246, allocations: 2.468 MB / 328.3 MB, free: 12.94 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009203/0.003166, allocations: 0.7052 MB / 329 MB, free: 12.23 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001228/0.003289, allocations: 11.94 kB / 329 MB, free: 12.22 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001432/0.003432, allocations: 51.5 kB / 329.1 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001594/0.003592, allocations: 114.9 kB / 329.2 MB, free: 12.06 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002568/0.003849, allocations: 99.67 kB / 329.3 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002618/0.00411, allocations: 406.1 kB / 329.7 MB, free: 11.56 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001549/0.004265, allocations: 71.64 kB / 329.7 MB, free: 11.49 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001634/0.004429, allocations: 223.5 kB / 329.9 MB, free: 11.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001343/0.004563, allocations: 135.6 kB / 330.1 MB, free: 11.14 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.998e-05/0.004603, allocations: 28 kB / 330.1 MB, free: 11.11 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.658e-05/0.00463, allocations: 32 kB / 330.1 MB, free: 11.08 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.195e-05/0.004672, allocations: 71.73 kB / 330.2 MB, free: 11.01 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.977e-05/0.004751, allocations: 115.8 kB / 330.3 MB, free: 10.9 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002873/0.005039, allocations: 398.6 kB / 330.7 MB, free: 10.51 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.005041, allocations: 0 / 330.7 MB, free: 10.51 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.005043, allocations: 3.984 kB / 330.7 MB, free: 10.5 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.005048, allocations: 0 / 330.7 MB, free: 10.5 MB / 298.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.0006441/0.005692, allocations: 0.5551 MB / 331.3 MB, free: 9.922 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.288e-05/0.005725, allocations: 8.031 kB / 331.3 MB, free: 9.914 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.178e-05/0.005777, allocations: 36.7 kB / 331.3 MB, free: 9.879 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002454/0.006022, allocations: 222.1 kB / 331.5 MB, free: 9.633 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.189e-05/0.006044, allocations: 21.03 kB / 331.5 MB, free: 9.609 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.907e-05/0.006083, allocations: 36.33 kB / 331.6 MB, free: 9.574 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002903/0.006374, allocations: 262.4 kB / 331.8 MB, free: 9.312 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.006388, allocations: 0 / 331.8 MB, free: 9.312 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.097e-05/0.006409, allocations: 12 kB / 331.9 MB, free: 9.301 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.006416, allocations: 12 kB / 331.9 MB, free: 9.289 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002547/0.006671, allocations: 230.5 kB / 332.1 MB, free: 9.066 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00077/0.007441, allocations: 0.6438 MB / 332.7 MB, free: 8.387 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003235/0.007764, allocations: 319.2 kB / 333 MB, free: 8.066 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00016/0.007924, allocations: 161.5 kB / 333.2 MB, free: 7.906 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.234e-05/0.007947, allocations: 4.375 kB / 333.2 MB, free: 7.902 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.746e-05/0.007964, allocations: 38.94 kB / 333.2 MB, free: 7.855 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 1.403e-06/0.007966, allocations: 0 / 333.2 MB, free: 7.855 MB / 298.7 MB Notification: Performance of matching and sorting (n=65): time 0.002211/0.01018, allocations: 1.757 MB / 335 MB, free: 6.047 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.154e-05/0.01021, allocations: 64 kB / 335.1 MB, free: 5.969 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000127/0.01033, allocations: 199.1 kB / 335.3 MB, free: 5.766 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.188e-05/0.01036, allocations: 33.7 kB / 335.3 MB, free: 5.727 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.742e-05/0.01042, allocations: 153.1 kB / 335.4 MB, free: 5.57 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001009/0.01053, allocations: 229.9 kB / 335.7 MB, free: 5.344 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.742e-05/0.01061, allocations: 98.33 kB / 335.8 MB, free: 5.242 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.813e-05/0.0107, allocations: 350.7 kB / 336.1 MB, free: 4.891 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001521/0.01085, allocations: 137.3 kB / 336.2 MB, free: 4.758 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001506/0.011, allocations: 153.8 kB / 336.4 MB, free: 4.609 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003467/0.01135, allocations: 358 kB / 336.7 MB, free: 4.258 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.01135, allocations: 0 / 336.7 MB, free: 4.258 MB / 298.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.000428/0.01178, allocations: 473 kB / 337.2 MB, free: 3.789 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.213e-05/0.01179, allocations: 4 kB / 337.2 MB, free: 3.785 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.678e-06/0.0118, allocations: 0 / 337.2 MB, free: 3.785 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.01181, allocations: 4 kB / 337.2 MB, free: 3.781 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002465/0.01206, allocations: 111.9 kB / 337.3 MB, free: 3.672 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.01206, allocations: 3.938 kB / 337.3 MB, free: 3.668 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.875e-05/0.01214, allocations: 19.98 kB / 337.3 MB, free: 3.648 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.926e-05/0.01216, allocations: 23.94 kB / 337.4 MB, free: 3.625 MB / 298.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.0001284/0.01229, allocations: 161.7 kB / 337.5 MB, free: 3.457 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.367e-05/0.01234, allocations: 31.81 kB / 337.6 MB, free: 3.426 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.287e-05/0.01243, allocations: 51.33 kB / 337.6 MB, free: 3.375 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.01243, allocations: 8 kB / 337.6 MB, free: 3.367 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.01244, allocations: 0 / 337.6 MB, free: 3.367 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.01245, allocations: 3.984 kB / 337.6 MB, free: 3.363 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001102/0.01355, allocations: 1.139 MB / 338.8 MB, free: 2.129 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.01355, allocations: 7.984 kB / 338.8 MB, free: 2.121 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002364/0.01379, allocations: 115.8 kB / 338.9 MB, free: 2.008 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.011e-06/0.01379, allocations: 8.562 kB / 338.9 MB, free: 2 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.297e-05/0.01382, allocations: 27.94 kB / 338.9 MB, free: 1.973 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.993e-06/0.01382, allocations: 15.92 kB / 338.9 MB, free: 1.957 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.01383, allocations: 4 kB / 338.9 MB, free: 1.953 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006894/0.01452, allocations: 0.8344 MB / 339.8 MB, free: 1.047 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.227e-05/0.01455, allocations: 31.77 kB / 339.8 MB, free: 1.016 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.014e-05/0.01458, allocations: 19.94 kB / 339.8 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001128/0.01469, allocations: 23.97 kB / 339.8 MB, free: 0.9727 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.538e-05/0.01475, allocations: 52.36 kB / 339.9 MB, free: 0.9219 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.946e-05/0.01477, allocations: 28 kB / 339.9 MB, free: 0.8945 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.429e-05/0.01484, allocations: 144.5 kB / 340.1 MB, free: 0.7539 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01484, allocations: 0 / 340.1 MB, free: 0.7539 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002454/0.01509, allocations: 96 kB / 340.2 MB, free: 0.6602 MB / 298.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 9.642e-05/0.01518, allocations: 119.1 kB / 340.3 MB, free: 0.5352 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000399/0.01558, allocations: 388.2 kB / 340.6 MB, free: 156 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.01558, allocations: 0 / 340.6 MB, free: 156 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002225/0.01581, allocations: 234.5 kB / 340.9 MB, free: 15.92 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004156/0.01622, allocations: 93.06 kB / 341 MB, free: 15.83 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009714/0.01719, allocations: 0.9619 MB / 341.9 MB, free: 14.78 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000118/0.01731, allocations: 195.3 kB / 342.1 MB, free: 14.57 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.754e-05/0.0174, allocations: 40.5 kB / 342.2 MB, free: 14.52 MB / 314.7 MB Notification: Performance of SimCode: time 4.11e-07/0.0174, allocations: 3.938 kB / 342.2 MB, free: 14.52 MB / 314.7 MB Notification: Performance of Templates: time 0.004756/0.02216, allocations: 4.898 MB / 347.1 MB, free: 9.648 MB / 314.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.399687516503036]