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.0007909/0.0007909, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0007783/0.0007783, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8936/0.8936, allocations: 177.1 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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 1.734e-06/1.734e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.003e-05/2.176e-05, allocations: 2.281 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.002583/0.002605, allocations: 2.471 MB / 327 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009571/0.003562, allocations: 0.7052 MB / 327.7 MB, free: 12.76 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001328/0.003695, allocations: 7.938 kB / 327.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001351/0.00383, allocations: 55.44 kB / 327.8 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001671/0.003997, allocations: 114.9 kB / 327.9 MB, free: 12.58 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002606/0.004257, allocations: 95.86 kB / 328 MB, free: 12.49 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002731/0.004531, allocations: 402 kB / 328.4 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001596/0.00469, allocations: 84.19 kB / 328.5 MB, free: 12.01 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001692/0.004859, allocations: 219.5 kB / 328.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001318/0.004991, allocations: 127.6 kB / 328.8 MB, free: 11.67 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.052e-05/0.005032, allocations: 32 kB / 328.8 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.723e-05/0.005069, allocations: 32 kB / 328.9 MB, free: 11.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.355e-05/0.005113, allocations: 71.73 kB / 328.9 MB, free: 11.54 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.948e-05/0.005192, allocations: 119.7 kB / 329.1 MB, free: 11.42 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002804/0.005472, allocations: 386.8 kB / 329.4 MB, free: 11.04 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.863e-06/0.005474, allocations: 0 / 329.4 MB, free: 11.04 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.005475, allocations: 4 kB / 329.4 MB, free: 11.04 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.568e-06/0.00548, allocations: 0 / 329.4 MB, free: 11.04 MB / 298.7 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.0006865/0.006166, allocations: 0.548 MB / 330 MB, free: 10.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.388e-05/0.0062, allocations: 8.031 kB / 330 MB, free: 10.45 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.389e-05/0.006254, allocations: 78.72 kB / 330.1 MB, free: 10.37 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.795e-05/0.006302, allocations: 36.7 kB / 330.1 MB, free: 10.33 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002758/0.006578, allocations: 222.1 kB / 330.3 MB, free: 10.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.367e-05/0.006601, allocations: 21.03 kB / 330.4 MB, free: 10.06 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.773e-05/0.006639, allocations: 36.33 kB / 330.4 MB, free: 10.03 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003046/0.006944, allocations: 258.2 kB / 330.6 MB, free: 9.77 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.446e-05/0.006958, allocations: 3.984 kB / 330.6 MB, free: 9.766 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.039e-05/0.006979, allocations: 12 kB / 330.7 MB, free: 9.754 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.006989, allocations: 4 kB / 330.7 MB, free: 9.75 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002653/0.007254, allocations: 230.5 kB / 330.9 MB, free: 9.527 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009047/0.008159, allocations: 0.7095 MB / 331.6 MB, free: 8.77 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003433/0.008502, allocations: 315.3 kB / 331.9 MB, free: 8.453 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001706/0.008673, allocations: 157.5 kB / 332.1 MB, free: 8.297 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.444e-05/0.008697, allocations: 4.375 kB / 332.1 MB, free: 8.293 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.959e-05/0.008717, allocations: 38.94 kB / 332.1 MB, free: 8.246 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 1.814e-06/0.008719, allocations: 4 kB / 332.1 MB, free: 8.242 MB / 298.7 MB Notification: Performance of matching and sorting (n=65): time 0.002341/0.01106, allocations: 1.757 MB / 333.9 MB, free: 6.434 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.414e-05/0.01109, allocations: 60.06 kB / 333.9 MB, free: 6.359 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001533/0.01125, allocations: 215.3 kB / 334.1 MB, free: 6.141 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.195e-05/0.01127, allocations: 41.64 kB / 334.2 MB, free: 6.094 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.643e-05/0.01134, allocations: 141.2 kB / 334.3 MB, free: 5.949 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001286/0.01146, allocations: 233.9 kB / 334.5 MB, free: 5.719 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.765e-05/0.01155, allocations: 94.33 kB / 334.6 MB, free: 5.621 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.387e-05/0.01164, allocations: 342.8 kB / 335 MB, free: 5.277 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001597/0.0118, allocations: 145.2 kB / 335.1 MB, free: 5.137 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001644/0.01196, allocations: 153.8 kB / 335.3 MB, free: 4.988 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004811/0.01244, allocations: 354 kB / 335.6 MB, free: 4.641 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.01244, allocations: 4 kB / 335.6 MB, free: 4.637 MB / 298.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0004514/0.01289, allocations: 465.1 kB / 336.1 MB, free: 4.176 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.01291, allocations: 4 kB / 336.1 MB, free: 4.172 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.01292, allocations: 4 kB / 336.1 MB, free: 4.168 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.01293, allocations: 3.984 kB / 336.1 MB, free: 4.164 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002439/0.01318, allocations: 111.9 kB / 336.2 MB, free: 4.055 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.368e-06/0.01319, allocations: 11.92 kB / 336.2 MB, free: 4.043 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.234e-05/0.01327, allocations: 12 kB / 336.2 MB, free: 4.031 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.005e-05/0.01329, allocations: 19.98 kB / 336.2 MB, free: 4.012 MB / 298.7 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.000124/0.01341, allocations: 165.7 kB / 336.4 MB, free: 3.84 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.991e-05/0.01345, allocations: 39.77 kB / 336.4 MB, free: 3.801 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.587e-05/0.01352, allocations: 47.33 kB / 336.5 MB, free: 3.754 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.01352, allocations: 8 kB / 336.5 MB, free: 3.746 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.134e-06/0.01353, allocations: 0 / 336.5 MB, free: 3.746 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.01354, allocations: 3.938 kB / 336.5 MB, free: 3.742 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001262/0.0148, allocations: 1.193 MB / 337.7 MB, free: 2.441 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.0148, allocations: 7.938 kB / 337.7 MB, free: 2.434 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002473/0.01505, allocations: 123.8 kB / 337.8 MB, free: 2.312 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.472e-06/0.01506, allocations: 8 kB / 337.8 MB, free: 2.305 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.091e-05/0.01508, allocations: 16.56 kB / 337.8 MB, free: 2.289 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.113e-06/0.01508, allocations: 19.92 kB / 337.8 MB, free: 2.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.01509, allocations: 4 kB / 337.8 MB, free: 2.266 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000738/0.01583, allocations: 0.8267 MB / 338.7 MB, free: 1.371 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.557e-05/0.01587, allocations: 39.7 kB / 338.7 MB, free: 1.332 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.401e-05/0.01591, allocations: 23.94 kB / 338.7 MB, free: 1.309 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001223/0.01603, allocations: 23.97 kB / 338.8 MB, free: 1.285 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.135e-05/0.01609, allocations: 48.36 kB / 338.8 MB, free: 1.238 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.793e-05/0.01611, allocations: 20 kB / 338.8 MB, free: 1.219 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.031e-05/0.0162, allocations: 168.3 kB / 339 MB, free: 1.055 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0162, allocations: 0 / 339 MB, free: 1.055 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002754/0.01647, allocations: 100 kB / 339.1 MB, free: 0.957 MB / 298.7 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.0009084/0.01738, allocations: 1.387 MB / 340.5 MB, free: 15.49 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000746/0.01813, allocations: 392.2 kB / 340.9 MB, free: 15.1 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.01813, allocations: 0 / 340.9 MB, free: 15.1 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002176/0.01835, allocations: 226.6 kB / 341.1 MB, free: 14.88 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004215/0.01877, allocations: 89.75 kB / 341.2 MB, free: 14.79 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003119/0.02189, allocations: 3.596 MB / 344.8 MB, free: 11 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001275/0.02202, allocations: 195.3 kB / 345 MB, free: 10.79 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001338/0.02215, allocations: 51.34 kB / 345 MB, free: 10.73 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001361/0.02229, allocations: 124.5 kB / 345.1 MB, free: 10.61 MB / 314.7 MB Notification: Performance of SimCode: time 6.11e-07/0.02229, allocations: 0 / 345.1 MB, free: 10.61 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02038/0.04267, allocations: 8.889 MB / 354 MB, free: 1.938 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.058/7.101, allocations: 3.859 kB / 354 MB, free: 1.934 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins/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: 8.80650041718036]