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: 109.5 kB / 20.43 MB, free: 1.457 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.00137/0.00137, allocations: 182.9 kB / 23.72 MB, free: 4.699 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.455/1.455, allocations: 225.6 MB / 252.5 MB, free: 13.02 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.001577/0.001577, allocations: 43.92 kB / 370.4 MB, free: 9.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2655/0.2671, allocations: 52.19 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004228/0.2713, allocations: 2.637 MB / 425.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009441/0.2723, allocations: 374.7 kB / 425.6 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001581/0.2724, allocations: 7.938 kB / 425.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001769/0.2726, allocations: 55.39 kB / 425.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001995/0.2728, allocations: 99.11 kB / 425.8 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003228/0.2731, allocations: 91.89 kB / 425.9 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004336/0.2736, allocations: 374.3 kB / 426.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002048/0.2738, allocations: 83.56 kB / 426.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001789/0.274, allocations: 143.6 kB / 426.5 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002278/0.2742, allocations: 163.3 kB / 426.6 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.996e-05/0.2742, allocations: 28 kB / 426.6 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.087e-05/0.2743, allocations: 32 kB / 426.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.733e-05/0.2744, allocations: 75.73 kB / 426.8 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00017/0.2746, allocations: 167.2 kB / 426.9 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004357/0.275, allocations: 374.8 kB / 427.3 MB, free: 9.922 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.275, allocations: 4 kB / 427.3 MB, free: 9.918 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.275, allocations: 0 / 427.3 MB, free: 9.918 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.125e-06/0.275, allocations: 0 / 427.3 MB, free: 9.918 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.001156/0.2762, allocations: 0.5599 MB / 427.8 MB, free: 9.324 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.2762, allocations: 8.031 kB / 427.9 MB, free: 9.316 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.373e-05/0.2763, allocations: 62.72 kB / 427.9 MB, free: 9.246 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.764e-05/0.2763, allocations: 36.75 kB / 427.9 MB, free: 9.211 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003888/0.2767, allocations: 214.8 kB / 428.2 MB, free: 8.977 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.467e-05/0.2768, allocations: 20.97 kB / 428.2 MB, free: 8.953 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.845e-05/0.2768, allocations: 32.38 kB / 428.2 MB, free: 8.922 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005592/0.2774, allocations: 274.6 kB / 428.5 MB, free: 8.652 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.291e-05/0.2774, allocations: 7.938 kB / 428.5 MB, free: 8.645 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.765e-05/0.2774, allocations: 15.92 kB / 428.5 MB, free: 8.629 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.898e-06/0.2774, allocations: 8 kB / 428.5 MB, free: 8.621 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005646/0.278, allocations: 266.4 kB / 428.8 MB, free: 8.363 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001336/0.2793, allocations: 0.7558 MB / 429.5 MB, free: 7.562 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006044/0.2799, allocations: 330.7 kB / 429.9 MB, free: 7.227 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003789/0.2803, allocations: 176.8 kB / 430 MB, free: 7.051 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.768e-05/0.2804, allocations: 4 kB / 430 MB, free: 7.047 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.246e-05/0.2804, allocations: 38.56 kB / 430.1 MB, free: 7 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 1.714e-06/0.2804, allocations: 0 / 430.1 MB, free: 7 MB / 334.1 MB Notification: Performance of matching and sorting (n=63): time 0.004348/0.2847, allocations: 1.845 MB / 431.9 MB, free: 5.105 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001307/0.2849, allocations: 56.06 kB / 432 MB, free: 5.039 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002294/0.2851, allocations: 191 kB / 432.2 MB, free: 4.844 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.463e-05/0.2851, allocations: 33.7 kB / 432.2 MB, free: 4.805 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/0.2853, allocations: 157.1 kB / 432.3 MB, free: 4.648 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001741/0.2854, allocations: 222.1 kB / 432.6 MB, free: 4.43 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000148/0.2856, allocations: 90.34 kB / 432.6 MB, free: 4.336 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.2857, allocations: 346.7 kB / 433 MB, free: 3.988 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003491/0.2861, allocations: 165.2 kB / 433.1 MB, free: 3.824 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003241/0.2864, allocations: 169.8 kB / 433.3 MB, free: 3.66 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006939/0.2871, allocations: 381.9 kB / 433.7 MB, free: 3.285 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.848e-06/0.2871, allocations: 4 kB / 433.7 MB, free: 3.281 MB / 334.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0009234/0.288, allocations: 489.1 kB / 434.2 MB, free: 2.797 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.288, allocations: 7.281 kB / 434.2 MB, free: 2.793 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.106e-06/0.2881, allocations: 0 / 434.2 MB, free: 2.793 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.865e-05/0.2881, allocations: 7.984 kB / 434.2 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004881/0.2886, allocations: 123.8 kB / 434.3 MB, free: 2.664 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.227e-05/0.2886, allocations: 4 kB / 434.3 MB, free: 2.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002022/0.2888, allocations: 23.92 kB / 434.3 MB, free: 2.637 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.464e-05/0.2888, allocations: 16 kB / 434.3 MB, free: 2.621 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.0002664/0.2891, allocations: 157.7 kB / 434.5 MB, free: 2.457 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.11e-05/0.2892, allocations: 39.8 kB / 434.5 MB, free: 2.418 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001249/0.2893, allocations: 51.33 kB / 434.6 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-05/0.2893, allocations: 4 kB / 434.6 MB, free: 2.355 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/0.2893, allocations: 0 / 434.6 MB, free: 2.355 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.458e-05/0.2893, allocations: 11.92 kB / 434.6 MB, free: 2.344 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002265/0.2916, allocations: 1.281 MB / 435.9 MB, free: 0.957 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.857e-06/0.2916, allocations: 4 kB / 435.9 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005142/0.2921, allocations: 131.7 kB / 436 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.328e-05/0.2921, allocations: 11.94 kB / 436 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.522e-05/0.2922, allocations: 16.56 kB / 436 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.899e-06/0.2922, allocations: 7.984 kB / 436 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.598e-06/0.2922, allocations: 15.94 kB / 436.1 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001396/0.2936, allocations: 0.8707 MB / 436.9 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.925e-05/0.2937, allocations: 39.75 kB / 437 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.518e-05/0.2937, allocations: 20.03 kB / 437 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002687/0.294, allocations: 27.98 kB / 437 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.506e-05/0.2941, allocations: 55.55 kB / 437.1 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.121e-05/0.2941, allocations: 19.94 kB / 437.1 MB, free: 15.67 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000136/0.2942, allocations: 144.6 kB / 437.2 MB, free: 15.53 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2942, allocations: 4 kB / 437.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004154/0.2947, allocations: 96 kB / 437.3 MB, free: 15.43 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.001729/0.2964, allocations: 1.434 MB / 438.8 MB, free: 13.92 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008854/0.2973, allocations: 419.9 kB / 439.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.2973, allocations: 0 / 439.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005005/0.2978, allocations: 244.7 kB / 439.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006526/0.2984, allocations: 75.95 kB / 439.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005558/0.304, allocations: 3.693 MB / 443.2 MB, free: 9.309 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004761/0.3045, allocations: 0.7894 MB / 444 MB, free: 8.492 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002041/0.3047, allocations: 47.25 kB / 444 MB, free: 8.449 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002062/0.3049, allocations: 119.4 kB / 444.1 MB, free: 8.332 MB / 350.1 MB Notification: Performance of SimCode: time 1.262e-06/0.3049, allocations: 4 kB / 444.1 MB, free: 8.328 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03942/0.3443, allocations: 7.973 MB / 452.1 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/11.9, allocations: 7.609 kB / 452.1 MB, free: 0.5156 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.4080897620006]