Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001411/0.001411, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001584/0.001584, allocations: 214.6 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 230.5 MB / 257.4 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002163/0.002163, allocations: 67.89 kB / 377.7 MB, free: 2.797 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2346/0.2368, allocations: 53.41 MB / 431.1 MB, free: 6.438 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003973/0.2408, allocations: 2.475 MB / 433.6 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001439/0.2422, allocations: 0.6898 MB / 434.3 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001705/0.2424, allocations: 7.938 kB / 434.3 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001757/0.2426, allocations: 47.45 kB / 434.3 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002274/0.2428, allocations: 115 kB / 434.5 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003339/0.2431, allocations: 95.81 kB / 434.6 MB, free: 3 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004323/0.2436, allocations: 390.3 kB / 434.9 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001979/0.2438, allocations: 77.2 kB / 435 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001745/0.2439, allocations: 155.4 kB / 435.2 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002332/0.2442, allocations: 151.3 kB / 435.3 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.35e-05/0.2442, allocations: 35.94 kB / 435.3 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.994e-05/0.2443, allocations: 32 kB / 435.4 MB, free: 2.172 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.766e-05/0.2443, allocations: 71.77 kB / 435.4 MB, free: 2.102 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001474/0.2445, allocations: 139.4 kB / 435.6 MB, free: 1.965 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004131/0.2449, allocations: 390.3 kB / 436 MB, free: 1.582 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2449, allocations: 0 / 436 MB, free: 1.582 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2449, allocations: 0 / 436 MB, free: 1.582 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.177e-05/0.2449, allocations: 0 / 436 MB, free: 1.582 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.001004/0.2459, allocations: 0.5558 MB / 436.5 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.246, allocations: 15.98 kB / 436.5 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.176e-05/0.246, allocations: 66.72 kB / 436.6 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.063e-05/0.2461, allocations: 40.7 kB / 436.6 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000421/0.2465, allocations: 214.9 kB / 436.8 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.208e-05/0.2466, allocations: 24.78 kB / 436.9 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.193e-05/0.2466, allocations: 39.95 kB / 436.9 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004552/0.2471, allocations: 254.1 kB / 437.2 MB, free: 320 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.117e-05/0.2471, allocations: 3.984 kB / 437.2 MB, free: 316 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.74e-05/0.2471, allocations: 12 kB / 437.2 MB, free: 304 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.179e-05/0.2471, allocations: 8 kB / 437.2 MB, free: 296 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004074/0.2475, allocations: 226.4 kB / 437.4 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001333/0.2489, allocations: 0.7018 MB / 438.1 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005245/0.2494, allocations: 320 kB / 438.4 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002604/0.2497, allocations: 161.5 kB / 438.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.094e-05/0.2497, allocations: 8.359 kB / 438.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.395e-05/0.2497, allocations: 38.94 kB / 438.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.114e-06/0.2497, allocations: 0 / 438.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.003876/0.2536, allocations: 1.768 MB / 440.4 MB, free: 12.97 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.39e-05/0.2537, allocations: 56.06 kB / 440.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002421/0.2539, allocations: 211.3 kB / 440.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.751e-05/0.2539, allocations: 41.64 kB / 440.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001173/0.2541, allocations: 149.2 kB / 440.8 MB, free: 12.49 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001847/0.2543, allocations: 230 kB / 441.1 MB, free: 12.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001377/0.2544, allocations: 94.34 kB / 441.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.2546, allocations: 350.8 kB / 441.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002503/0.2548, allocations: 141.2 kB / 441.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002496/0.2551, allocations: 153.8 kB / 441.8 MB, free: 11.53 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005525/0.2556, allocations: 354 kB / 442.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.2556, allocations: 3.938 kB / 442.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.000724/0.2563, allocations: 465.1 kB / 442.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.2564, allocations: 8 kB / 442.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.2564, allocations: 0 / 442.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.951e-05/0.2564, allocations: 7.938 kB / 442.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004555/0.2568, allocations: 119.8 kB / 442.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.728e-06/0.2568, allocations: 4 kB / 442.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001744/0.257, allocations: 12 kB / 442.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.388e-05/0.2571, allocations: 19.98 kB / 442.8 MB, free: 10.55 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.000179/0.2572, allocations: 165.7 kB / 442.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.941e-05/0.2573, allocations: 35.77 kB / 443 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001232/0.2574, allocations: 51.27 kB / 443 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.658e-06/0.2574, allocations: 8 kB / 443 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.866e-06/0.2574, allocations: 0 / 443 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.2575, allocations: 0 / 443 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001953/0.2594, allocations: 1.196 MB / 444.2 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.2594, allocations: 8.094 kB / 444.2 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004697/0.2599, allocations: 119.8 kB / 444.3 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.216e-05/0.2599, allocations: 8 kB / 444.3 MB, free: 8.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.157e-05/0.2599, allocations: 16 kB / 444.4 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.178e-05/0.2599, allocations: 15.92 kB / 444.4 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.2599, allocations: 4 kB / 444.4 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001148/0.2611, allocations: 0.8455 MB / 445.2 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.32e-05/0.2612, allocations: 39.77 kB / 445.3 MB, free: 7.852 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.601e-05/0.2612, allocations: 20 kB / 445.3 MB, free: 7.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002331/0.2615, allocations: 23.92 kB / 445.3 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.911e-05/0.2615, allocations: 52.23 kB / 445.4 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.477e-05/0.2616, allocations: 24 kB / 445.4 MB, free: 7.734 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001393/0.2617, allocations: 152.5 kB / 445.5 MB, free: 7.586 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2617, allocations: 0 / 445.5 MB, free: 7.586 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003897/0.2621, allocations: 96 kB / 445.6 MB, free: 7.492 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.00147/0.2636, allocations: 1.402 MB / 447 MB, free: 6.008 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006673/0.2643, allocations: 383.7 kB / 447.4 MB, free: 5.629 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.2643, allocations: 0 / 447.4 MB, free: 5.629 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00035/0.2646, allocations: 223.3 kB / 447.6 MB, free: 5.414 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007033/0.2653, allocations: 102.8 kB / 447.7 MB, free: 5.312 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004952/0.2703, allocations: 3.676 MB / 451.4 MB, free: 1.453 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002122/0.2705, allocations: 191.3 kB / 451.6 MB, free: 1.242 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002327/0.2707, allocations: 55.28 kB / 451.6 MB, free: 1.184 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002065/0.2709, allocations: 123.4 kB / 451.8 MB, free: 1.062 MB / 350.1 MB Notification: Performance of SimCode: time 1.833e-06/0.2709, allocations: 0 / 451.8 MB, free: 1.062 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03975/0.3107, allocations: 8.725 MB / 460.5 MB, free: 8.52 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.6, allocations: 14.05 kB / 460.5 MB, free: 8.512 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv. Warning: Get data of variable elastoGap1.v_rel from file Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv failed! Error: Could not read variable springDamper1.v_rel in file Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv. Warning: Get data of variable springDamper1.v_rel from file Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.088583200238645]