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.001223/0.001223, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 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.001342/0.001342, allocations: 203.8 kB / 23.73 MB, free: 4.379 MB / 14.72 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.401/1.401, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001483/0.001483, allocations: 47.92 kB / 377.7 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2526/0.2541, allocations: 53.36 MB / 431.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004025/0.2581, allocations: 2.48 MB / 433.6 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00148/0.2596, allocations: 0.6898 MB / 434.2 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002943/0.2599, allocations: 11.94 kB / 434.3 MB, free: 3.438 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002282/0.2601, allocations: 55.44 kB / 434.3 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003429/0.2605, allocations: 103.1 kB / 434.4 MB, free: 3.281 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003514/0.2608, allocations: 91.83 kB / 434.5 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004935/0.2613, allocations: 394.3 kB / 434.9 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001993/0.2615, allocations: 77.91 kB / 435 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002352/0.2618, allocations: 163.4 kB / 435.1 MB, free: 2.566 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002819/0.2621, allocations: 167.2 kB / 435.3 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.536e-05/0.2621, allocations: 32 kB / 435.3 MB, free: 2.371 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.926e-05/0.2622, allocations: 28 kB / 435.3 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.51e-05/0.2623, allocations: 79.73 kB / 435.4 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000172/0.2624, allocations: 143.3 kB / 435.6 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004176/0.2628, allocations: 382.4 kB / 435.9 MB, free: 1.75 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.2628, allocations: 0 / 435.9 MB, free: 1.75 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2628, allocations: 0 / 435.9 MB, free: 1.75 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.169e-05/0.2629, allocations: 0 / 435.9 MB, free: 1.75 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.001093/0.264, allocations: 0.5558 MB / 436.5 MB, free: 1.164 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.264, allocations: 8.031 kB / 436.5 MB, free: 1.156 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.511e-05/0.2641, allocations: 70.72 kB / 436.6 MB, free: 1.078 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.84e-05/0.2642, allocations: 36.7 kB / 436.6 MB, free: 1.043 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004393/0.2646, allocations: 218.9 kB / 436.8 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.673e-05/0.2646, allocations: 24.78 kB / 436.8 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.53e-05/0.2647, allocations: 39.94 kB / 436.9 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004707/0.2652, allocations: 258 kB / 437.1 MB, free: 492 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.839e-05/0.2652, allocations: 0 / 437.1 MB, free: 492 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.86e-05/0.2652, allocations: 12 kB / 437.1 MB, free: 480 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.121e-05/0.2652, allocations: 4 kB / 437.1 MB, free: 476 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004071/0.2656, allocations: 234.5 kB / 437.4 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001384/0.267, allocations: 0.7057 MB / 438.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000513/0.2675, allocations: 313.4 kB / 438.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002547/0.2678, allocations: 157.5 kB / 438.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.563e-05/0.2678, allocations: 8.359 kB / 438.5 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.265e-05/0.2679, allocations: 38.94 kB / 438.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.563e-06/0.2679, allocations: 0 / 438.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.003874/0.2717, allocations: 1.768 MB / 440.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.394e-05/0.2718, allocations: 56.06 kB / 440.4 MB, free: 13.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002199/0.272, allocations: 215.3 kB / 440.6 MB, free: 12.86 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.774e-05/0.272, allocations: 37.7 kB / 440.7 MB, free: 12.81 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001246/0.2722, allocations: 149.2 kB / 440.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001774/0.2723, allocations: 230 kB / 441 MB, free: 12.44 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000139/0.2725, allocations: 94.34 kB / 441.1 MB, free: 12.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.2726, allocations: 342.8 kB / 441.5 MB, free: 12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002534/0.2729, allocations: 145.2 kB / 441.6 MB, free: 11.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002422/0.2731, allocations: 157.8 kB / 441.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00053/0.2737, allocations: 353.9 kB / 442.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.2737, allocations: 0 / 442.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.000691/0.2744, allocations: 465.1 kB / 442.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.2744, allocations: 12 kB / 442.6 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.2744, allocations: 0 / 442.6 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.898e-05/0.2744, allocations: 3.938 kB / 442.6 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004716/0.2749, allocations: 115.9 kB / 442.7 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.211e-05/0.2749, allocations: 7.938 kB / 442.7 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001754/0.2751, allocations: 12 kB / 442.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.365e-05/0.2751, allocations: 16 kB / 442.7 MB, free: 10.73 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.0001795/0.2753, allocations: 161.8 kB / 442.9 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.116e-05/0.2753, allocations: 39.77 kB / 442.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001218/0.2755, allocations: 55.28 kB / 443 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.797e-06/0.2755, allocations: 8 kB / 443 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.2755, allocations: 0 / 443 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.792e-06/0.2755, allocations: 3.984 kB / 443 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001861/0.2774, allocations: 1.199 MB / 444.2 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/0.2774, allocations: 4 kB / 444.2 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004752/0.2778, allocations: 119.8 kB / 444.3 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.08e-05/0.2778, allocations: 11.94 kB / 444.3 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.335e-05/0.2779, allocations: 16 kB / 444.3 MB, free: 8.996 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.351e-05/0.2779, allocations: 11.94 kB / 444.3 MB, free: 8.984 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.142e-06/0.2779, allocations: 7.984 kB / 444.3 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00109/0.279, allocations: 0.8458 MB / 445.2 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.412e-05/0.2791, allocations: 43.8 kB / 445.2 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.379e-05/0.2791, allocations: 16 kB / 445.2 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002429/0.2793, allocations: 19.98 kB / 445.3 MB, free: 7.984 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.88e-05/0.2794, allocations: 56.23 kB / 445.3 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.266e-05/0.2795, allocations: 20 kB / 445.3 MB, free: 7.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001423/0.2796, allocations: 152.5 kB / 445.5 MB, free: 7.762 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2796, allocations: 0 / 445.5 MB, free: 7.762 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004074/0.28, allocations: 100 kB / 445.6 MB, free: 7.664 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.0014/0.2814, allocations: 1.394 MB / 447 MB, free: 6.188 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006499/0.2821, allocations: 387.7 kB / 447.4 MB, free: 5.805 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.2821, allocations: 0 / 447.4 MB, free: 5.805 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003421/0.2824, allocations: 226.4 kB / 447.6 MB, free: 5.586 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006555/0.2831, allocations: 96.02 kB / 447.7 MB, free: 5.488 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004638/0.2877, allocations: 3.676 MB / 451.3 MB, free: 1.629 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000209/0.2879, allocations: 191.3 kB / 451.5 MB, free: 1.418 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002037/0.2881, allocations: 51.33 kB / 451.6 MB, free: 1.363 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002007/0.2883, allocations: 123.4 kB / 451.7 MB, free: 1.242 MB / 350.1 MB Notification: Performance of SimCode: time 1.092e-06/0.2883, allocations: 0 / 451.7 MB, free: 1.242 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04088/0.3292, allocations: 8.911 MB / 460.6 MB, free: 8.547 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/11.01, allocations: 12 kB / 460.6 MB, free: 8.535 MB / 366.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_ElastoGap_fmu --startTime=0 --stopTime=5 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_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: 13.263682849006727]