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.001284/0.001284, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001409/0.001409, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.451/1.451, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.001485/0.001485, allocations: 59.92 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1044, allocations: 53.33 MB / 426.3 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004084/0.1085, allocations: 2.678 MB / 429 MB, free: 2.102 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001461/0.11, allocations: 0.7287 MB / 429.7 MB, free: 1.371 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001644/0.1102, allocations: 7.938 kB / 429.7 MB, free: 1.363 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001856/0.1103, allocations: 51.5 kB / 429.8 MB, free: 1.312 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002515/0.1106, allocations: 115 kB / 429.9 MB, free: 1.199 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003128/0.1109, allocations: 87.83 kB / 430 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004313/0.1113, allocations: 390.3 kB / 430.3 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002087/0.1115, allocations: 79.11 kB / 430.4 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000174/0.1117, allocations: 151.5 kB / 430.6 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000235/0.112, allocations: 171.2 kB / 430.7 MB, free: 336 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.826e-05/0.112, allocations: 32 kB / 430.8 MB, free: 304 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.96e-05/0.1121, allocations: 32 kB / 430.8 MB, free: 272 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.397e-05/0.1121, allocations: 71.75 kB / 430.9 MB, free: 200 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001736/0.1123, allocations: 171.2 kB / 431 MB, free: 28 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2528/0.3651, allocations: 381.5 kB / 431.4 MB, free: 7.988 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.3652, allocations: 3.5 kB / 431.4 MB, free: 7.988 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.3652, allocations: 0 / 431.4 MB, free: 7.988 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.646e-06/0.3652, allocations: 0 / 431.4 MB, free: 7.988 MB / 350.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.001057/0.3662, allocations: 0.6287 MB / 432 MB, free: 7.523 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.3663, allocations: 9.781 kB / 432.1 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.724e-05/0.3663, allocations: 69.61 kB / 432.1 MB, free: 7.484 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.469e-05/0.3664, allocations: 38.45 kB / 432.2 MB, free: 7.465 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004711/0.3669, allocations: 271.9 kB / 432.4 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.632e-05/0.3669, allocations: 24.16 kB / 432.4 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.687e-05/0.367, allocations: 30.98 kB / 432.5 MB, free: 7.238 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005075/0.3675, allocations: 266 kB / 432.7 MB, free: 7.195 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.266e-05/0.3675, allocations: 3.859 kB / 432.7 MB, free: 7.195 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.235e-05/0.3676, allocations: 10.06 kB / 432.8 MB, free: 7.195 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.432e-05/0.3676, allocations: 7.406 kB / 432.8 MB, free: 7.195 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004467/0.368, allocations: 236.1 kB / 433 MB, free: 7.195 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001185/0.3692, allocations: 0.7914 MB / 433.8 MB, free: 6.883 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005101/0.3697, allocations: 315.5 kB / 434.1 MB, free: 6.859 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000277/0.37, allocations: 159.6 kB / 434.2 MB, free: 6.852 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.274e-05/0.3701, allocations: 6.703 kB / 434.3 MB, free: 6.852 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.636e-05/0.3701, allocations: 36.41 kB / 434.3 MB, free: 6.812 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.274e-06/0.3701, allocations: 0 / 434.3 MB, free: 6.812 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.003796/0.3739, allocations: 1.91 MB / 436.2 MB, free: 6.246 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.904e-05/0.3739, allocations: 63.95 kB / 436.3 MB, free: 6.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002508/0.3742, allocations: 212.8 kB / 436.5 MB, free: 6.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.327e-05/0.3742, allocations: 36.77 kB / 436.5 MB, free: 6.039 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.913e-05/0.3743, allocations: 148.2 kB / 436.6 MB, free: 5.934 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001337/0.3744, allocations: 235.7 kB / 436.9 MB, free: 5.777 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001231/0.3745, allocations: 93.77 kB / 437 MB, free: 5.762 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.86e-05/0.3746, allocations: 348.7 kB / 437.3 MB, free: 5.445 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002421/0.3749, allocations: 149.9 kB / 437.5 MB, free: 5.414 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002316/0.3751, allocations: 153.6 kB / 437.6 MB, free: 5.359 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000509/0.3756, allocations: 352 kB / 438 MB, free: 5.188 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.3756, allocations: 1.062 kB / 438 MB, free: 5.188 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007281/0.3763, allocations: 460.1 kB / 438.4 MB, free: 4.988 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.3763, allocations: 4.656 kB / 438.4 MB, free: 4.988 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/0.3764, allocations: 1.578 kB / 438.4 MB, free: 4.988 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.771e-05/0.3764, allocations: 6.828 kB / 438.4 MB, free: 4.988 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004894/0.3769, allocations: 124.8 kB / 438.5 MB, free: 4.977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.201e-05/0.3769, allocations: 7.109 kB / 438.5 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001984/0.3771, allocations: 14.73 kB / 438.6 MB, free: 4.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.191e-05/0.3771, allocations: 15.86 kB / 438.6 MB, free: 4.961 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.0001586/0.3773, allocations: 163.5 kB / 438.7 MB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.397e-05/0.3774, allocations: 42.8 kB / 438.8 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001209/0.3775, allocations: 47.44 kB / 438.8 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.3775, allocations: 7.031 kB / 438.8 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.649e-05/0.3775, allocations: 7.938 kB / 438.8 MB, free: 4.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.679e-06/0.3775, allocations: 4.562 kB / 438.8 MB, free: 4.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0018/0.3793, allocations: 1.286 MB / 440.1 MB, free: 3.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.3793, allocations: 11.59 kB / 440.1 MB, free: 3.977 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004544/0.3798, allocations: 118 kB / 440.3 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.708e-06/0.3798, allocations: 7.938 kB / 440.3 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.473e-05/0.3798, allocations: 17.14 kB / 440.3 MB, free: 3.965 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.855e-06/0.3798, allocations: 8.734 kB / 440.3 MB, free: 3.965 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.103e-06/0.3798, allocations: 7.969 kB / 440.3 MB, free: 3.965 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001093/0.3809, allocations: 0.8381 MB / 441.1 MB, free: 3.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.66e-05/0.381, allocations: 120.1 kB / 441.2 MB, free: 3.312 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.719e-05/0.3811, allocations: 21.62 kB / 441.3 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000236/0.3813, allocations: 17.7 kB / 441.3 MB, free: 3.293 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.874e-05/0.3814, allocations: 54.11 kB / 441.3 MB, free: 3.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.283e-05/0.3814, allocations: 22.84 kB / 441.4 MB, free: 3.277 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001172/0.3815, allocations: 147.3 kB / 441.5 MB, free: 3.184 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3815, allocations: 4 kB / 441.5 MB, free: 3.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004187/0.382, allocations: 96.12 kB / 441.6 MB, free: 3.164 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.001128/0.3831, allocations: 1.4 MB / 443 MB, free: 2.082 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006814/0.3838, allocations: 383.8 kB / 443.4 MB, free: 1.969 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.3838, allocations: 5.5 kB / 443.4 MB, free: 1.965 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003523/0.3841, allocations: 227.6 kB / 443.6 MB, free: 1.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006997/0.3848, allocations: 97.7 kB / 443.7 MB, free: 1.875 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004469/0.3893, allocations: 3.672 MB / 447.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004988/0.3898, allocations: 0.7995 MB / 448.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002428/0.39, allocations: 49.64 kB / 448.2 MB, free: 14.69 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002198/0.3903, allocations: 124.5 kB / 448.3 MB, free: 14.61 MB / 366.1 MB Notification: Performance of SimCode: time 9.51e-07/0.3903, allocations: 0 / 448.3 MB, free: 14.61 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03644/0.4267, allocations: 7.908 MB / 456.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.397/8.824, allocations: 4.781 kB / 456.3 MB, free: 12.93 MB / 366.1 MB " [Timeout remaining time 651] (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: 11.31371561800188]