Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 107.5 kB / 20.44 MB, free: 1.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001417/0.001417, allocations: 186 kB / 23.7 MB, free: 4.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.452/1.452, allocations: 225.7 MB / 252.5 MB, free: 12.83 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001697/0.001697, allocations: 47.92 kB / 370.4 MB, free: 9.742 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2551/0.2568, allocations: 52.18 MB / 422.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.00395/0.2608, allocations: 2.419 MB / 425 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007846/0.2616, allocations: 370.7 kB / 425.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001329/0.2617, allocations: 11.88 kB / 425.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001616/0.2618, allocations: 55.5 kB / 425.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001923/0.262, allocations: 99.12 kB / 425.5 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000342/0.2624, allocations: 95.81 kB / 425.6 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004168/0.2628, allocations: 374.3 kB / 426 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002431/0.263, allocations: 75.38 kB / 426 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002293/0.2633, allocations: 147.5 kB / 426.2 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002334/0.2635, allocations: 151.2 kB / 426.3 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.8e-05/0.2636, allocations: 28 kB / 426.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.39e-05/0.2636, allocations: 36 kB / 426.4 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.087e-05/0.2637, allocations: 67.77 kB / 426.5 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001641/0.2639, allocations: 143.4 kB / 426.6 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004916/0.2644, allocations: 368.4 kB / 427 MB, free: 10.04 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.2644, allocations: 4 kB / 427 MB, free: 10.03 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.2644, allocations: 0 / 427 MB, free: 10.03 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.205e-05/0.2644, allocations: 0 / 427 MB, free: 10.03 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001134/0.2655, allocations: 0.5598 MB / 427.5 MB, free: 9.438 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.2656, allocations: 12.03 kB / 427.5 MB, free: 9.426 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.569e-05/0.2656, allocations: 62.72 kB / 427.6 MB, free: 9.355 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.599e-05/0.2657, allocations: 32.75 kB / 427.6 MB, free: 9.324 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003998/0.2661, allocations: 206.9 kB / 427.8 MB, free: 9.098 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.228e-05/0.2661, allocations: 32.97 kB / 427.9 MB, free: 9.062 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.95e-05/0.2662, allocations: 28.38 kB / 427.9 MB, free: 9.035 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005644/0.2668, allocations: 274.6 kB / 428.1 MB, free: 8.766 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.145e-05/0.2668, allocations: 7.875 kB / 428.2 MB, free: 8.758 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.044e-05/0.2668, allocations: 16 kB / 428.2 MB, free: 8.742 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.464e-05/0.2668, allocations: 8 kB / 428.2 MB, free: 8.734 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005988/0.2674, allocations: 262.4 kB / 428.4 MB, free: 8.48 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001374/0.2688, allocations: 0.7013 MB / 429.1 MB, free: 7.734 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006103/0.2694, allocations: 326.7 kB / 429.5 MB, free: 7.402 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000343/0.2698, allocations: 180.7 kB / 429.6 MB, free: 7.223 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.416e-05/0.2698, allocations: 4 kB / 429.6 MB, free: 7.219 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.109e-05/0.2698, allocations: 38.56 kB / 429.7 MB, free: 7.172 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 2.004e-06/0.2698, allocations: 0 / 429.7 MB, free: 7.172 MB / 334.1 MB Notification: Performance of matching and sorting (n=63): time 0.004376/0.2742, allocations: 1.833 MB / 431.5 MB, free: 5.289 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.042e-05/0.2743, allocations: 64 kB / 431.6 MB, free: 5.215 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002049/0.2745, allocations: 187 kB / 431.8 MB, free: 5.023 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.58e-05/0.2745, allocations: 41.69 kB / 431.8 MB, free: 4.977 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001106/0.2746, allocations: 153 kB / 431.9 MB, free: 4.824 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001781/0.2748, allocations: 222.1 kB / 432.2 MB, free: 4.605 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001641/0.275, allocations: 94.33 kB / 432.3 MB, free: 4.508 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.2751, allocations: 342.8 kB / 432.6 MB, free: 4.164 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003532/0.2755, allocations: 165.2 kB / 432.7 MB, free: 4 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003383/0.2758, allocations: 169.8 kB / 432.9 MB, free: 3.836 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000706/0.2765, allocations: 373.9 kB / 433.3 MB, free: 3.469 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.409e-06/0.2765, allocations: 8 kB / 433.3 MB, free: 3.461 MB / 334.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0009016/0.2774, allocations: 481.1 kB / 433.8 MB, free: 2.984 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.2775, allocations: 15.94 kB / 433.8 MB, free: 2.969 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.218e-06/0.2775, allocations: 3.984 kB / 433.8 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.069e-05/0.2775, allocations: 4 kB / 433.8 MB, free: 2.961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004787/0.278, allocations: 119.9 kB / 433.9 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.278, allocations: 4 kB / 433.9 MB, free: 2.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002037/0.2782, allocations: 23.92 kB / 433.9 MB, free: 2.816 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.242e-05/0.2782, allocations: 16 kB / 433.9 MB, free: 2.801 MB / 334.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 (69): * Single equations (assignments): 69 * 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.0001932/0.2784, allocations: 161.7 kB / 434.1 MB, free: 2.633 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.933e-05/0.2785, allocations: 39.77 kB / 434.1 MB, free: 2.594 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001152/0.2786, allocations: 47.34 kB / 434.2 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.2786, allocations: 4 kB / 434.2 MB, free: 2.535 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.2786, allocations: 0 / 434.2 MB, free: 2.535 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.877e-06/0.2786, allocations: 7.922 kB / 434.2 MB, free: 2.527 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002068/0.2807, allocations: 1.219 MB / 435.4 MB, free: 1.203 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.786e-06/0.2807, allocations: 4 kB / 435.4 MB, free: 1.199 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004858/0.2812, allocations: 128.3 kB / 435.5 MB, free: 1.074 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.838e-06/0.2812, allocations: 12 kB / 435.6 MB, free: 1.062 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.544e-05/0.2812, allocations: 19.98 kB / 435.6 MB, free: 1.043 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.583e-06/0.2812, allocations: 4 kB / 435.6 MB, free: 1.039 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.758e-06/0.2812, allocations: 15.88 kB / 435.6 MB, free: 1.023 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001371/0.2826, allocations: 0.8824 MB / 436.5 MB, free: 68 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.69e-05/0.2827, allocations: 43.73 kB / 436.5 MB, free: 24 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.205e-05/0.2828, allocations: 16 kB / 436.5 MB, free: 8 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002757/0.283, allocations: 24.03 kB / 436.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.255e-05/0.2831, allocations: 59.5 kB / 436.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.531e-05/0.2832, allocations: 23.98 kB / 436.6 MB, free: 15.9 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001273/0.2833, allocations: 136.6 kB / 436.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2833, allocations: 0 / 436.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004087/0.2837, allocations: 96 kB / 436.9 MB, free: 15.68 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 (63): * Single equations (assignments): 63 * 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.001721/0.2854, allocations: 1.442 MB / 438.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008449/0.2863, allocations: 415.9 kB / 438.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.686e-06/0.2863, allocations: 0 / 438.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004492/0.2867, allocations: 240.7 kB / 438.9 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000626/0.2873, allocations: 84.02 kB / 439 MB, free: 13.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005276/0.2926, allocations: 3.689 MB / 442.7 MB, free: 9.555 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002046/0.2928, allocations: 187.3 kB / 442.9 MB, free: 9.352 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001988/0.293, allocations: 47.25 kB / 443 MB, free: 9.309 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002014/0.2932, allocations: 123.4 kB / 443.1 MB, free: 9.188 MB / 350.1 MB Notification: Performance of SimCode: time 1.303e-06/0.2932, allocations: 0 / 443.1 MB, free: 9.188 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04044/0.3337, allocations: 8.349 MB / 451.4 MB, free: 1.039 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.67, allocations: 10.7 kB / 451.4 MB, free: 1.031 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv. Warning: Get data of variable elastoGap1.v_rel from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv failed! Error: Could not read variable springDamper1.v_rel in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv. Warning: Get data of variable springDamper1.v_rel from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.135576099157333]