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 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001376/0.001376, allocations: 108.9 kB / 20.37 MB, free: 2.102 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001484/0.001484, allocations: 214 kB / 23.54 MB, free: 5.402 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.495/1.495, allocations: 230.2 MB / 256.8 MB, free: 8.633 MB / 206.1 MB [Timeout remaining time 88] 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 0.001919/0.001919, allocations: 64.08 kB / 376.9 MB, free: 3.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2495/0.2514, allocations: 53.32 MB / 430.2 MB, free: 7.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004026/0.2554, allocations: 2.677 MB / 432.9 MB, free: 4.988 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00141/0.2568, allocations: 0.7404 MB / 433.6 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001316/0.257, allocations: 4 kB / 433.6 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000159/0.2571, allocations: 51.39 kB / 433.7 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002235/0.2573, allocations: 111 kB / 433.8 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002995/0.2576, allocations: 95.81 kB / 433.9 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004189/0.2581, allocations: 390.3 kB / 434.2 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001881/0.2583, allocations: 71.12 kB / 434.3 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001767/0.2584, allocations: 159.4 kB / 434.5 MB, free: 3.371 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002198/0.2587, allocations: 163.3 kB / 434.6 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.531e-05/0.2587, allocations: 32 kB / 434.7 MB, free: 3.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.02e-05/0.2588, allocations: 32 kB / 434.7 MB, free: 3.148 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.255e-05/0.2589, allocations: 75.75 kB / 434.8 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001822/0.259, allocations: 171.1 kB / 434.9 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004293/0.2595, allocations: 379.7 kB / 435.3 MB, free: 2.539 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2595, allocations: 0 / 435.3 MB, free: 2.539 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2595, allocations: 0 / 435.3 MB, free: 2.539 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.823e-06/0.2595, allocations: 4 kB / 435.3 MB, free: 2.535 MB / 334.1 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.00103/0.2605, allocations: 0.6311 MB / 435.9 MB, free: 1.855 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.322e-05/0.2605, allocations: 12.03 kB / 435.9 MB, free: 1.844 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.942e-05/0.2606, allocations: 36.7 kB / 436 MB, free: 1.809 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003744/0.261, allocations: 272.8 kB / 436.2 MB, free: 1.5 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.066e-05/0.261, allocations: 25.03 kB / 436.3 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.14e-05/0.2611, allocations: 35.92 kB / 436.3 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004749/0.2616, allocations: 262.1 kB / 436.6 MB, free: 1.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.653e-05/0.2616, allocations: 3.938 kB / 436.6 MB, free: 1.176 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.106e-05/0.2616, allocations: 16 kB / 436.6 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.2616, allocations: 8 kB / 436.6 MB, free: 1.152 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004245/0.262, allocations: 230.5 kB / 436.8 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001328/0.2634, allocations: 0.7923 MB / 437.6 MB, free: 84 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005434/0.2639, allocations: 315.5 kB / 437.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002756/0.2642, allocations: 161.5 kB / 438.1 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.336e-05/0.2642, allocations: 4.375 kB / 438.1 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.252e-05/0.2643, allocations: 42.92 kB / 438.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.493e-06/0.2643, allocations: 0 / 438.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.003989/0.2682, allocations: 1.917 MB / 440 MB, free: 13.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.402e-05/0.2683, allocations: 55.97 kB / 440.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002396/0.2685, allocations: 211.6 kB / 440.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.016e-05/0.2686, allocations: 41.7 kB / 440.3 MB, free: 13.22 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001166/0.2687, allocations: 141.2 kB / 440.5 MB, free: 13.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000201/0.2689, allocations: 237.9 kB / 440.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001486/0.269, allocations: 94.28 kB / 440.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001927/0.2692, allocations: 350.8 kB / 441.1 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000273/0.2695, allocations: 145.2 kB / 441.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002593/0.2698, allocations: 153.8 kB / 441.4 MB, free: 12.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005897/0.2703, allocations: 353.6 kB / 441.8 MB, free: 11.76 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.2704, allocations: 0 / 441.8 MB, free: 11.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007396/0.2711, allocations: 461.1 kB / 442.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.2711, allocations: 4 kB / 442.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.2711, allocations: 4 kB / 442.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.784e-05/0.2711, allocations: 3.938 kB / 442.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004641/0.2716, allocations: 127.8 kB / 442.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.2716, allocations: 8 kB / 442.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001793/0.2718, allocations: 16 kB / 442.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.096e-05/0.2718, allocations: 16 kB / 442.4 MB, free: 11.12 MB / 350.1 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.0001805/0.272, allocations: 153.8 kB / 442.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.528e-05/0.2721, allocations: 43.75 kB / 442.6 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001368/0.2722, allocations: 51.28 kB / 442.6 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.128e-05/0.2722, allocations: 11.94 kB / 442.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/0.2722, allocations: 0 / 442.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.2722, allocations: 7.984 kB / 442.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001955/0.2742, allocations: 1.278 MB / 443.9 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.672e-06/0.2742, allocations: 8.094 kB / 444 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004641/0.2747, allocations: 119.8 kB / 444.1 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.207e-05/0.2747, allocations: 8 kB / 444.1 MB, free: 9.328 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.338e-05/0.2747, allocations: 19.94 kB / 444.1 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.156e-05/0.2747, allocations: 19.91 kB / 444.1 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/0.2747, allocations: 4 kB / 444.1 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001176/0.2759, allocations: 0.8391 MB / 445 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.848e-05/0.276, allocations: 116.9 kB / 445.1 MB, free: 8.242 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.033e-05/0.2761, allocations: 20 kB / 445.1 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002348/0.2763, allocations: 23.98 kB / 445.1 MB, free: 8.199 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/0.2764, allocations: 48.27 kB / 445.2 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.191e-05/0.2764, allocations: 20 kB / 445.2 MB, free: 8.133 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001406/0.2766, allocations: 152.7 kB / 445.3 MB, free: 7.984 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2766, allocations: 4 kB / 445.3 MB, free: 7.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004247/0.277, allocations: 96 kB / 445.4 MB, free: 7.887 MB / 350.1 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.0001561/0.2772, allocations: 119.1 kB / 445.5 MB, free: 7.762 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006828/0.2778, allocations: 395 kB / 445.9 MB, free: 7.375 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2778, allocations: 3.938 kB / 445.9 MB, free: 7.371 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003652/0.2782, allocations: 222.7 kB / 446.2 MB, free: 7.152 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006541/0.2789, allocations: 96.58 kB / 446.2 MB, free: 7.055 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001825/0.2807, allocations: 1.063 MB / 447.3 MB, free: 5.902 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004981/0.2812, allocations: 0.7973 MB / 448.1 MB, free: 5.074 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001295/0.2813, allocations: 39.42 kB / 448.1 MB, free: 5.035 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2813, allocations: 0 / 448.1 MB, free: 5.035 MB / 350.1 MB Notification: Performance of Templates: time 0.00791/0.2892, allocations: 4.781 MB / 452.9 MB, free: 292 kB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] [Timeout remaining time 660] Reference file matches