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.001295/0.001295, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001408/0.001408, allocations: 209.6 kB / 23.73 MB, free: 4.523 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.444/1.444, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.001538/0.001538, allocations: 43.92 kB / 377.7 MB, free: 3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2461/0.2476, allocations: 53.37 MB / 431.1 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003686/0.2513, allocations: 2.464 MB / 433.5 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001251/0.2525, allocations: 0.7053 MB / 434.2 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001319/0.2527, allocations: 11.94 kB / 434.3 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001587/0.2528, allocations: 47.52 kB / 434.3 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002111/0.253, allocations: 103 kB / 434.4 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002849/0.2533, allocations: 95.81 kB / 434.5 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004044/0.2537, allocations: 394.3 kB / 434.9 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001888/0.2539, allocations: 77.89 kB / 435 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001679/0.2541, allocations: 155.4 kB / 435.1 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002212/0.2543, allocations: 167.3 kB / 435.3 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.618e-05/0.2544, allocations: 32 kB / 435.3 MB, free: 2.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.074e-05/0.2544, allocations: 35.94 kB / 435.3 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.726e-05/0.2545, allocations: 71.75 kB / 435.4 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001493/0.2546, allocations: 143.4 kB / 435.6 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000417/0.2551, allocations: 386.3 kB / 435.9 MB, free: 1.785 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2551, allocations: 0 / 435.9 MB, free: 1.785 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2551, allocations: 0 / 435.9 MB, free: 1.785 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.197e-06/0.2551, allocations: 11.92 kB / 435.9 MB, free: 1.773 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.001035/0.2561, allocations: 0.5403 MB / 436.5 MB, free: 1.203 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.2562, allocations: 12.03 kB / 436.5 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.579e-05/0.2562, allocations: 70.72 kB / 436.6 MB, free: 1.113 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.545e-05/0.2563, allocations: 40.7 kB / 436.6 MB, free: 1.074 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004043/0.2567, allocations: 214.9 kB / 436.8 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.944e-05/0.2568, allocations: 28.78 kB / 436.8 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.665e-05/0.2568, allocations: 31.95 kB / 436.9 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004586/0.2573, allocations: 258.1 kB / 437.1 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.08e-05/0.2573, allocations: 0 / 437.1 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.075e-05/0.2573, allocations: 16 kB / 437.1 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.2573, allocations: 11.94 kB / 437.1 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004179/0.2577, allocations: 226.5 kB / 437.4 MB, free: 280 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001305/0.2591, allocations: 0.6979 MB / 438.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004974/0.2596, allocations: 315.4 kB / 438.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002514/0.2598, allocations: 157.5 kB / 438.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.459e-05/0.2598, allocations: 8.375 kB / 438.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.945e-05/0.2599, allocations: 34.94 kB / 438.6 MB, free: 15 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.653e-06/0.2599, allocations: 0 / 438.6 MB, free: 15 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.003763/0.2636, allocations: 1.772 MB / 440.3 MB, free: 13.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.873e-05/0.2637, allocations: 64.06 kB / 440.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002213/0.2639, allocations: 203.3 kB / 440.6 MB, free: 12.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.905e-05/0.2639, allocations: 37.7 kB / 440.6 MB, free: 12.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00011/0.2641, allocations: 153.1 kB / 440.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000179/0.2642, allocations: 230 kB / 441 MB, free: 12.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/0.2644, allocations: 102.3 kB / 441.1 MB, free: 12.37 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.2645, allocations: 338.8 kB / 441.4 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002539/0.2648, allocations: 145.2 kB / 441.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002463/0.265, allocations: 153.8 kB / 441.7 MB, free: 11.74 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005634/0.2656, allocations: 357.8 kB / 442.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.2656, allocations: 4 kB / 442.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007017/0.2663, allocations: 465.1 kB / 442.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.2663, allocations: 4 kB / 442.5 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.2663, allocations: 0 / 442.5 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.331e-05/0.2664, allocations: 11.92 kB / 442.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004578/0.2668, allocations: 115.8 kB / 442.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.143e-05/0.2668, allocations: 7.922 kB / 442.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001649/0.267, allocations: 12 kB / 442.7 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.55e-05/0.267, allocations: 27.98 kB / 442.7 MB, free: 10.75 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.0001766/0.2672, allocations: 157.7 kB / 442.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.676e-05/0.2673, allocations: 39.77 kB / 442.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001238/0.2674, allocations: 59.27 kB / 443 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.2674, allocations: 8 kB / 443 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.2674, allocations: 0 / 443 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.2674, allocations: 0 / 443 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001888/0.2693, allocations: 1.195 MB / 444.2 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.653e-06/0.2693, allocations: 4 kB / 444.2 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004669/0.2698, allocations: 119.8 kB / 444.3 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.478e-06/0.2698, allocations: 8 kB / 444.3 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.249e-05/0.2698, allocations: 16 kB / 444.3 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.444e-05/0.2698, allocations: 12.55 kB / 444.3 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-06/0.2698, allocations: 11.94 kB / 444.3 MB, free: 9.004 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00111/0.2709, allocations: 0.8416 MB / 445.2 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.101e-05/0.271, allocations: 35.77 kB / 445.2 MB, free: 8.059 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.205e-05/0.2711, allocations: 16 kB / 445.2 MB, free: 8.043 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002312/0.2713, allocations: 24.03 kB / 445.3 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.31e-05/0.2714, allocations: 52.23 kB / 445.3 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.18e-05/0.2714, allocations: 24 kB / 445.3 MB, free: 7.945 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001448/0.2716, allocations: 152.5 kB / 445.5 MB, free: 7.797 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2716, allocations: 4 kB / 445.5 MB, free: 7.793 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003987/0.272, allocations: 96 kB / 445.6 MB, free: 7.699 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.001504/0.2735, allocations: 1.398 MB / 447 MB, free: 6.219 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006759/0.2741, allocations: 379.7 kB / 447.3 MB, free: 5.844 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.2741, allocations: 4 kB / 447.4 MB, free: 5.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003519/0.2745, allocations: 230.2 kB / 447.6 MB, free: 5.617 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000678/0.2752, allocations: 97.17 kB / 447.7 MB, free: 5.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004732/0.2799, allocations: 3.68 MB / 451.4 MB, free: 1.656 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001993/0.2801, allocations: 195.3 kB / 451.5 MB, free: 1.441 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001941/0.2803, allocations: 51.33 kB / 451.6 MB, free: 1.387 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002028/0.2805, allocations: 123.4 kB / 451.7 MB, free: 1.266 MB / 350.1 MB Notification: Performance of SimCode: time 9.02e-07/0.2805, allocations: 0 / 451.7 MB, free: 1.266 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03906/0.3196, allocations: 8.914 MB / 460.6 MB, free: 8.566 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.63, allocations: 3.938 kB / 460.6 MB, free: 8.562 MB / 366.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 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.csv","/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] "Error: Could not read variable elastoGap1.v_rel in file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv. Warning: Get data of variable elastoGap1.v_rel from file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv failed! Error: Could not read variable springDamper1.v_rel in file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv. Warning: Get data of variable springDamper1.v_rel from file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.066327531996649]