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.001997/0.001997, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002418/0.002418, allocations: 209.2 kB / 23.73 MB, free: 4.387 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.435/1.435, 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.001596/0.001596, allocations: 47.92 kB / 377.7 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2473/0.2489, allocations: 53.36 MB / 431.1 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003703/0.2526, allocations: 2.468 MB / 433.5 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001225/0.2539, allocations: 0.7015 MB / 434.2 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001239/0.254, allocations: 11.88 kB / 434.2 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001549/0.2541, allocations: 55.44 kB / 434.3 MB, free: 3.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001982/0.2543, allocations: 107 kB / 434.4 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002832/0.2546, allocations: 91.89 kB / 434.5 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003845/0.255, allocations: 390.2 kB / 434.9 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001876/0.2552, allocations: 77.89 kB / 435 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000167/0.2554, allocations: 155.4 kB / 435.1 MB, free: 2.602 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002162/0.2556, allocations: 147.3 kB / 435.2 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.093e-05/0.2556, allocations: 28 kB / 435.3 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.177e-05/0.2557, allocations: 32 kB / 435.3 MB, free: 2.398 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.242e-05/0.2558, allocations: 71.75 kB / 435.4 MB, free: 2.328 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001444/0.2559, allocations: 147.3 kB / 435.5 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004025/0.2563, allocations: 382.4 kB / 435.9 MB, free: 1.809 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.2563, allocations: 0 / 435.9 MB, free: 1.809 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2563, allocations: 4 kB / 435.9 MB, free: 1.805 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.2563, allocations: 4 kB / 435.9 MB, free: 1.801 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.00102/0.2573, allocations: 0.5519 MB / 436.5 MB, free: 1.219 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.2574, allocations: 12.03 kB / 436.5 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.877e-05/0.2575, allocations: 66.72 kB / 436.5 MB, free: 1.133 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.02e-05/0.2575, allocations: 40.7 kB / 436.6 MB, free: 1.094 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003695/0.2579, allocations: 214.8 kB / 436.8 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.35e-05/0.2579, allocations: 28.78 kB / 436.8 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.817e-05/0.258, allocations: 39.94 kB / 436.8 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004445/0.2584, allocations: 254.1 kB / 437.1 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.931e-05/0.2584, allocations: 4 kB / 437.1 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.432e-05/0.2585, allocations: 8 kB / 437.1 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.258e-06/0.2585, allocations: 12 kB / 437.1 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004002/0.2589, allocations: 234.4 kB / 437.3 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00132/0.2602, allocations: 0.694 MB / 438 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005032/0.2607, allocations: 317.9 kB / 438.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002618/0.261, allocations: 161.5 kB / 438.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.087e-05/0.261, allocations: 12.36 kB / 438.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.04e-05/0.261, allocations: 34.94 kB / 438.6 MB, free: 15.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.743e-06/0.261, allocations: 8 kB / 438.6 MB, free: 15 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.003727/0.2648, allocations: 1.764 MB / 440.3 MB, free: 13.19 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.109e-05/0.2648, allocations: 60.06 kB / 440.4 MB, free: 13.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002176/0.265, allocations: 211.3 kB / 440.6 MB, free: 12.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.522e-05/0.2651, allocations: 33.7 kB / 440.6 MB, free: 12.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000121/0.2652, allocations: 153.1 kB / 440.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001767/0.2654, allocations: 230 kB / 441 MB, free: 12.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001347/0.2655, allocations: 94.34 kB / 441.1 MB, free: 12.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.2657, allocations: 346.8 kB / 441.4 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002521/0.2659, allocations: 145.2 kB / 441.6 MB, free: 11.9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002493/0.2662, allocations: 149.8 kB / 441.7 MB, free: 11.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005567/0.2667, allocations: 361.9 kB / 442.1 MB, free: 11.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.2667, allocations: 0 / 442.1 MB, free: 11.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007038/0.2674, allocations: 465.1 kB / 442.5 MB, free: 10.94 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.2674, allocations: 4 kB / 442.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.2674, allocations: 0 / 442.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.979e-05/0.2675, allocations: 7.938 kB / 442.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004471/0.2679, allocations: 119.8 kB / 442.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.2679, allocations: 0 / 442.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001707/0.2681, allocations: 16 kB / 442.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.009e-05/0.2681, allocations: 16 kB / 442.7 MB, free: 10.78 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.0001843/0.2683, allocations: 169.7 kB / 442.9 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.614e-05/0.2684, allocations: 35.77 kB / 442.9 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001282/0.2685, allocations: 55.28 kB / 442.9 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.2685, allocations: 4 kB / 442.9 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.2685, allocations: 0 / 442.9 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.2685, allocations: 3.984 kB / 443 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001865/0.2704, allocations: 1.199 MB / 444.1 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.078e-05/0.2704, allocations: 8 kB / 444.2 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004619/0.2709, allocations: 115.8 kB / 444.3 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.404e-06/0.2709, allocations: 8 kB / 444.3 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.347e-05/0.2709, allocations: 16.56 kB / 444.3 MB, free: 9.047 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.909e-06/0.2709, allocations: 19.94 kB / 444.3 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.2709, allocations: 4 kB / 444.3 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001147/0.2721, allocations: 0.8455 MB / 445.2 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.35e-05/0.2721, allocations: 43.8 kB / 445.2 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.294e-05/0.2722, allocations: 16 kB / 445.2 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002305/0.2724, allocations: 19.98 kB / 445.2 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.034e-05/0.2725, allocations: 56.23 kB / 445.3 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.237e-05/0.2725, allocations: 24 kB / 445.3 MB, free: 7.953 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001377/0.2727, allocations: 148.5 kB / 445.5 MB, free: 7.809 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.2727, allocations: 0 / 445.5 MB, free: 7.809 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004024/0.2731, allocations: 96 kB / 445.6 MB, free: 7.715 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.001455/0.2745, allocations: 1.398 MB / 447 MB, free: 6.234 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006457/0.2752, allocations: 391.7 kB / 447.3 MB, free: 5.848 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.2752, allocations: 4 kB / 447.3 MB, free: 5.844 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003478/0.2755, allocations: 218.2 kB / 447.6 MB, free: 5.633 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006603/0.2762, allocations: 92.39 kB / 447.6 MB, free: 5.539 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004683/0.2809, allocations: 3.676 MB / 451.3 MB, free: 1.676 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002013/0.2811, allocations: 195.3 kB / 451.5 MB, free: 1.461 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002035/0.2813, allocations: 51.33 kB / 451.6 MB, free: 1.406 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000207/0.2815, allocations: 123.4 kB / 451.7 MB, free: 1.285 MB / 350.1 MB Notification: Performance of SimCode: time 7.61e-07/0.2815, allocations: 0 / 451.7 MB, free: 1.285 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03799/0.3195, allocations: 8.734 MB / 460.4 MB, free: 8.762 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.69, allocations: 22.72 kB / 460.4 MB, free: 8.742 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.151039716321975]