Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008955/0.0008955, allocations: 79.69 kB / 21.7 MB, free: 2.844 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000884/0.000884, allocations: 166.7 kB / 24.99 MB, free: 8.246 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9571/0.9571, allocations: 177 MB / 205.2 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.744e-06/1.744e-06, allocations: 0 / 273 MB, free: 1.77 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.41e-05/2.584e-05, allocations: 2.312 kB / 273 MB, free: 1.766 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003732/0.003758, allocations: 2.639 MB / 275.6 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001432/0.00519, allocations: 0.7325 MB / 276.3 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001969/0.005387, allocations: 7.938 kB / 276.4 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001853/0.005572, allocations: 47.5 kB / 276.4 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002314/0.005804, allocations: 110.9 kB / 276.5 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003462/0.00615, allocations: 99.78 kB / 276.6 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004188/0.006569, allocations: 406 kB / 277 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002171/0.006786, allocations: 75.62 kB / 277.1 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002715/0.007057, allocations: 223.5 kB / 277.3 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002077/0.007265, allocations: 127.7 kB / 277.4 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.384e-05/0.007319, allocations: 28 kB / 277.4 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.647e-05/0.007365, allocations: 32 kB / 277.5 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.573e-05/0.007431, allocations: 79.66 kB / 277.6 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000131/0.007562, allocations: 119.7 kB / 277.7 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003442/0.007906, allocations: 263 kB / 277.9 MB, free: 12.78 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.00791, allocations: 0 / 277.9 MB, free: 12.78 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.007912, allocations: 4 kB / 277.9 MB, free: 12.78 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.007917, allocations: 0 / 277.9 MB, free: 12.78 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.0009395/0.008857, allocations: 0.648 MB / 278.6 MB, free: 12.09 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.973e-05/0.008907, allocations: 15.98 kB / 278.6 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001118/0.009018, allocations: 64.7 kB / 278.7 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003474/0.009366, allocations: 220.9 kB / 278.9 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.331e-05/0.009409, allocations: 25.03 kB / 278.9 MB, free: 11.74 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.194e-05/0.009471, allocations: 32.36 kB / 278.9 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003905/0.009862, allocations: 215.1 kB / 279.1 MB, free: 11.49 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.707e-05/0.009879, allocations: 3.938 kB / 279.1 MB, free: 11.49 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.739e-05/0.009906, allocations: 15.94 kB / 279.2 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.302e-05/0.009919, allocations: 8 kB / 279.2 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002977/0.01022, allocations: 143.8 kB / 279.3 MB, free: 11.32 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001145/0.01136, allocations: 0.6781 MB / 280 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004541/0.01182, allocations: 268.9 kB / 280.3 MB, free: 10.33 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000206/0.01202, allocations: 116.4 kB / 280.4 MB, free: 10.21 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.477e-05/0.01206, allocations: 12.36 kB / 280.4 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.091e-05/0.01209, allocations: 41.77 kB / 280.4 MB, free: 10.15 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 2.986e-06/0.01209, allocations: 0 / 280.4 MB, free: 10.15 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.00275/0.01484, allocations: 1.445 MB / 281.9 MB, free: 8.648 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.427e-05/0.01488, allocations: 60.06 kB / 281.9 MB, free: 8.578 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001961/0.01508, allocations: 245.6 kB / 282.2 MB, free: 8.32 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.306e-05/0.01511, allocations: 41.69 kB / 282.2 MB, free: 8.273 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001177/0.01523, allocations: 199.8 kB / 282.4 MB, free: 8.074 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001756/0.01541, allocations: 233.9 kB / 282.6 MB, free: 7.844 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001294/0.01554, allocations: 96 kB / 282.7 MB, free: 7.742 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001843/0.01572, allocations: 0.5195 MB / 283.2 MB, free: 7.211 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001776/0.0159, allocations: 85.25 kB / 283.3 MB, free: 7.129 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001767/0.01608, allocations: 97.86 kB / 283.4 MB, free: 7.031 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004079/0.01648, allocations: 244.7 kB / 283.7 MB, free: 6.789 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.01649, allocations: 0 / 283.7 MB, free: 6.789 MB / 266.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.00062/0.01711, allocations: 381.1 kB / 284 MB, free: 6.41 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.01713, allocations: 7.125 kB / 284 MB, free: 6.406 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.01713, allocations: 0 / 284 MB, free: 6.406 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.01715, allocations: 4 kB / 284 MB, free: 6.402 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003908/0.01754, allocations: 115.8 kB / 284.2 MB, free: 6.289 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.01755, allocations: 0 / 284.2 MB, free: 6.289 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001218/0.01767, allocations: 19.98 kB / 284.2 MB, free: 6.27 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.928e-05/0.0177, allocations: 19.94 kB / 284.2 MB, free: 6.25 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.000136/0.01783, allocations: 188.5 kB / 284.4 MB, free: 6.055 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.309e-05/0.01792, allocations: 59.77 kB / 284.4 MB, free: 5.996 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.257e-05/0.01801, allocations: 47.33 kB / 284.5 MB, free: 5.945 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.01802, allocations: 4 kB / 284.5 MB, free: 5.941 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.01802, allocations: 4 kB / 284.5 MB, free: 5.938 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.01803, allocations: 3.984 kB / 284.5 MB, free: 5.934 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00144/0.01947, allocations: 1.113 MB / 285.6 MB, free: 4.703 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.01948, allocations: 4 kB / 285.6 MB, free: 4.699 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005179/0.01999, allocations: 127.8 kB / 285.7 MB, free: 4.574 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-05/0.02, allocations: 8.562 kB / 285.7 MB, free: 4.566 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.349e-05/0.02004, allocations: 23.94 kB / 285.8 MB, free: 4.543 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.869e-06/0.02005, allocations: 15.92 kB / 285.8 MB, free: 4.527 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.783e-06/0.02006, allocations: 7.938 kB / 285.8 MB, free: 4.52 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009169/0.02097, allocations: 0.7791 MB / 286.6 MB, free: 3.648 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.459e-05/0.02102, allocations: 39.77 kB / 286.6 MB, free: 3.609 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.134e-05/0.02107, allocations: 19.94 kB / 286.6 MB, free: 3.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000193/0.02126, allocations: 15.98 kB / 286.6 MB, free: 3.574 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.868e-05/0.02135, allocations: 60.3 kB / 286.7 MB, free: 3.516 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.078e-05/0.02138, allocations: 24 kB / 286.7 MB, free: 3.492 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000104/0.02148, allocations: 168.5 kB / 286.9 MB, free: 3.328 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.02148, allocations: 0 / 286.9 MB, free: 3.328 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004006/0.02188, allocations: 100 kB / 287 MB, free: 3.23 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.0001393/0.02202, allocations: 123 kB / 287.1 MB, free: 3.098 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005253/0.02255, allocations: 313.1 kB / 287.4 MB, free: 2.785 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.02255, allocations: 8 kB / 287.4 MB, free: 2.777 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002622/0.02282, allocations: 191.6 kB / 287.6 MB, free: 2.59 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006332/0.02345, allocations: 103.5 kB / 287.7 MB, free: 2.496 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001364/0.02481, allocations: 0.9418 MB / 288.7 MB, free: 1.449 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.661e-05/0.02491, allocations: 114.7 kB / 288.8 MB, free: 1.32 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001735/0.02508, allocations: 51.28 kB / 288.8 MB, free: 1.27 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001069/0.02519, allocations: 36.5 kB / 288.8 MB, free: 1.234 MB / 266.7 MB Notification: Performance of SimCode: time 1.132e-06/0.02519, allocations: 4 kB / 288.9 MB, free: 1.23 MB / 266.7 MB Notification: Performance of Templates: time 0.006746/0.03194, allocations: 4.426 MB / 293.3 MB, free: 12.88 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.780542077962309]