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.0009879/0.0009879, allocations: 80.31 kB / 22.21 MB, free: 2.289 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.001015/0.001015, allocations: 165.1 kB / 25.61 MB, free: 8.887 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 1.063/1.063, allocations: 177.1 MB / 206 MB, free: 4.465 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.583e-06/1.583e-06, allocations: 0 / 274.2 MB, free: 4.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.019e-05/3.177e-05, allocations: 6.25 kB / 274.2 MB, free: 4.402 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003326/0.003358, allocations: 2.617 MB / 276.8 MB, free: 1.785 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001291/0.004649, allocations: 0.7263 MB / 277.5 MB, free: 1.062 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001688/0.004818, allocations: 7.938 kB / 277.5 MB, free: 1.055 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001603/0.004978, allocations: 48.16 kB / 277.6 MB, free: 1.008 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001946/0.005173, allocations: 112.2 kB / 277.7 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003081/0.005481, allocations: 103.7 kB / 277.8 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003737/0.005855, allocations: 402 kB / 278.2 MB, free: 412 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002063/0.006061, allocations: 75.64 kB / 278.2 MB, free: 332 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002489/0.00631, allocations: 223.5 kB / 278.5 MB, free: 108 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001868/0.006497, allocations: 123.6 kB / 278.6 MB, free: 15.98 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.457e-05/0.006541, allocations: 32 kB / 278.6 MB, free: 15.95 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.861e-05/0.00659, allocations: 32 kB / 278.7 MB, free: 15.92 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.785e-05/0.006658, allocations: 83.66 kB / 278.7 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001013/0.006759, allocations: 115.8 kB / 278.8 MB, free: 15.73 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003057/0.007065, allocations: 263 kB / 279.1 MB, free: 15.47 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.007071, allocations: 0 / 279.1 MB, free: 15.47 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.007073, allocations: 0 / 279.1 MB, free: 15.47 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.00708, allocations: 0 / 279.1 MB, free: 15.47 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.0008242/0.007904, allocations: 0.6557 MB / 279.8 MB, free: 14.78 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.007948, allocations: 8.031 kB / 279.8 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.285e-05/0.00804, allocations: 64.7 kB / 279.8 MB, free: 14.71 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003069/0.008347, allocations: 217 kB / 280 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.5e-05/0.008382, allocations: 25.03 kB / 280.1 MB, free: 14.44 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.472e-05/0.008427, allocations: 32.31 kB / 280.1 MB, free: 14.41 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002639/0.008691, allocations: 195.1 kB / 280.3 MB, free: 14.21 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.971e-05/0.008711, allocations: 11.92 kB / 280.3 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.369e-05/0.008734, allocations: 15.94 kB / 280.3 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.242e-05/0.008747, allocations: 11.98 kB / 280.3 MB, free: 14.17 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001514/0.008898, allocations: 112.5 kB / 280.4 MB, free: 14.06 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008669/0.009765, allocations: 0.6319 MB / 281.1 MB, free: 13.4 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002783/0.01004, allocations: 248 kB / 281.3 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001057/0.01015, allocations: 108.4 kB / 281.4 MB, free: 13.04 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.906e-05/0.01018, allocations: 8.375 kB / 281.4 MB, free: 13.03 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.238e-05/0.01021, allocations: 37.77 kB / 281.5 MB, free: 12.98 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 3.437e-06/0.01021, allocations: 0 / 281.5 MB, free: 12.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.00198/0.01219, allocations: 1.301 MB / 282.8 MB, free: 11.62 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.866e-05/0.01223, allocations: 60.05 kB / 282.8 MB, free: 11.55 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000158/0.01239, allocations: 245.6 kB / 283.1 MB, free: 11.29 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.573e-05/0.01242, allocations: 33.7 kB / 283.1 MB, free: 11.25 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.792e-05/0.01251, allocations: 199.8 kB / 283.3 MB, free: 11.05 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001276/0.01264, allocations: 241.9 kB / 283.5 MB, free: 10.82 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001023/0.01274, allocations: 99.95 kB / 283.6 MB, free: 10.71 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.01289, allocations: 0.5195 MB / 284.1 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.938e-05/0.01297, allocations: 65.25 kB / 284.2 MB, free: 10.12 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.369e-05/0.01306, allocations: 73.84 kB / 284.3 MB, free: 10.04 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002103/0.01327, allocations: 204.7 kB / 284.5 MB, free: 9.844 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.01327, allocations: 7.938 kB / 284.5 MB, free: 9.836 MB / 266.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0003286/0.0136, allocations: 329.1 kB / 284.8 MB, free: 9.508 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.01362, allocations: 8 kB / 284.8 MB, free: 9.5 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.01362, allocations: 0 / 284.8 MB, free: 9.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.01364, allocations: 0 / 284.8 MB, free: 9.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002617/0.0139, allocations: 127.8 kB / 284.9 MB, free: 9.375 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.0139, allocations: 4 kB / 284.9 MB, free: 9.371 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.962e-05/0.01398, allocations: 12 kB / 285 MB, free: 9.359 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.744e-05/0.014, allocations: 12 kB / 285 MB, free: 9.348 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.0001256/0.01413, allocations: 184.4 kB / 285.1 MB, free: 9.156 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.106e-05/0.01419, allocations: 59.77 kB / 285.2 MB, free: 9.098 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.618e-05/0.01426, allocations: 51.33 kB / 285.3 MB, free: 9.043 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.715e-06/0.01427, allocations: 8 kB / 285.3 MB, free: 9.035 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.01428, allocations: 0 / 285.3 MB, free: 9.035 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/0.01428, allocations: 7.984 kB / 285.3 MB, free: 9.027 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001018/0.0153, allocations: 1.044 MB / 286.3 MB, free: 7.871 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.0153, allocations: 8.031 kB / 286.3 MB, free: 7.863 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002598/0.01556, allocations: 119.8 kB / 286.4 MB, free: 7.746 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.622e-06/0.01557, allocations: 4 kB / 286.4 MB, free: 7.742 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.154e-05/0.01559, allocations: 31.86 kB / 286.5 MB, free: 7.711 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.729e-06/0.0156, allocations: 4 kB / 286.5 MB, free: 7.707 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.282e-06/0.0156, allocations: 11.94 kB / 286.5 MB, free: 7.695 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005978/0.0162, allocations: 0.7399 MB / 287.2 MB, free: 6.863 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.729e-05/0.01624, allocations: 31.77 kB / 287.3 MB, free: 6.832 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.18e-05/0.01627, allocations: 19.98 kB / 287.3 MB, free: 6.812 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001406/0.01641, allocations: 16 kB / 287.3 MB, free: 6.797 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.6e-05/0.01648, allocations: 56.3 kB / 287.4 MB, free: 6.742 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.856e-05/0.0165, allocations: 16.05 kB / 287.4 MB, free: 6.727 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.682e-05/0.01657, allocations: 176.4 kB / 287.5 MB, free: 6.555 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01657, allocations: 0 / 287.5 MB, free: 6.555 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002657/0.01684, allocations: 96 kB / 287.6 MB, free: 6.461 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.0001424/0.01698, allocations: 123 kB / 287.8 MB, free: 6.328 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003279/0.01731, allocations: 293.1 kB / 288 MB, free: 6.035 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.01731, allocations: 0 / 288 MB, free: 6.035 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001607/0.01747, allocations: 167.6 kB / 288.2 MB, free: 5.867 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004551/0.01793, allocations: 100.9 kB / 288.3 MB, free: 5.77 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001052/0.01898, allocations: 0.9303 MB / 289.2 MB, free: 4.73 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.576e-05/0.01907, allocations: 118.7 kB / 289.3 MB, free: 4.594 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001383/0.0192, allocations: 51.28 kB / 289.4 MB, free: 4.543 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000203/0.01941, allocations: 166.1 kB / 289.6 MB, free: 4.379 MB / 266.7 MB Notification: Performance of SimCode: time 1.232e-06/0.01941, allocations: 0 / 289.6 MB, free: 4.379 MB / 266.7 MB Notification: Performance of Templates: time 0.007477/0.02688, allocations: 4.975 MB / 294.5 MB, free: 15.51 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: 3.0438237101770937]