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.0008195/0.0008195, allocations: 80.36 kB / 20.67 MB, free: 3.891 MB / 18.57 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.000937/0.000937, allocations: 160.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8787/0.8787, allocations: 177 MB / 204.1 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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 1.693e-06/1.693e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.266e-05/2.436e-05, allocations: 2.281 kB / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003158/0.003183, allocations: 2.477 MB / 327 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009726/0.004155, allocations: 0.709 MB / 327.7 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001154/0.004271, allocations: 7.938 kB / 327.7 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001248/0.004395, allocations: 47.52 kB / 327.7 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001555/0.004551, allocations: 115 kB / 327.9 MB, free: 12.53 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002584/0.004809, allocations: 91.8 kB / 327.9 MB, free: 12.44 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002968/0.005106, allocations: 406 kB / 328.3 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001651/0.005271, allocations: 76.2 kB / 328.4 MB, free: 11.97 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002129/0.005484, allocations: 231.5 kB / 328.6 MB, free: 11.74 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002173/0.005701, allocations: 123.7 kB / 328.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.378e-05/0.005755, allocations: 32 kB / 328.8 MB, free: 11.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.575e-05/0.005791, allocations: 28 kB / 328.8 MB, free: 11.56 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.454e-05/0.005836, allocations: 75.73 kB / 328.9 MB, free: 11.49 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.683e-05/0.005922, allocations: 123.7 kB / 329 MB, free: 11.37 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002994/0.006222, allocations: 382.8 kB / 329.4 MB, free: 10.99 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.006226, allocations: 0 / 329.4 MB, free: 10.99 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.006227, allocations: 0 / 329.4 MB, free: 10.99 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.006234, allocations: 0 / 329.4 MB, free: 10.99 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.0007514/0.006986, allocations: 0.552 MB / 329.9 MB, free: 10.41 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.007028, allocations: 15.92 kB / 330 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.738e-05/0.007085, allocations: 66.72 kB / 330 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.688e-05/0.007142, allocations: 40.7 kB / 330.1 MB, free: 10.28 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003277/0.00747, allocations: 214.2 kB / 330.3 MB, free: 10.04 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.043e-05/0.0075, allocations: 21.03 kB / 330.3 MB, free: 10.02 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.086e-05/0.007541, allocations: 40.31 kB / 330.3 MB, free: 9.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003186/0.00786, allocations: 262.1 kB / 330.6 MB, free: 9.719 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/0.007876, allocations: 4 kB / 330.6 MB, free: 9.715 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.963e-05/0.007896, allocations: 11.94 kB / 330.6 MB, free: 9.703 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.644e-06/0.007903, allocations: 8 kB / 330.6 MB, free: 9.695 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002703/0.008174, allocations: 230.5 kB / 330.8 MB, free: 9.473 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00093/0.009104, allocations: 0.7017 MB / 331.5 MB, free: 8.723 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003567/0.00946, allocations: 311.4 kB / 331.8 MB, free: 8.41 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001709/0.009631, allocations: 157.5 kB / 332 MB, free: 8.254 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.566e-05/0.009657, allocations: 8.375 kB / 332 MB, free: 8.246 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.99e-05/0.009677, allocations: 42.86 kB / 332 MB, free: 8.195 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 1.873e-06/0.009679, allocations: 4 kB / 332 MB, free: 8.191 MB / 298.7 MB Notification: Performance of matching and sorting (n=65): time 0.002528/0.01221, allocations: 1.757 MB / 333.8 MB, free: 6.383 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.187e-05/0.01225, allocations: 64.05 kB / 333.9 MB, free: 6.305 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001618/0.01241, allocations: 215.3 kB / 334.1 MB, free: 6.086 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.475e-05/0.01244, allocations: 33.7 kB / 334.1 MB, free: 6.047 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.797e-05/0.01251, allocations: 149.2 kB / 334.3 MB, free: 5.895 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001196/0.01263, allocations: 233.9 kB / 334.5 MB, free: 5.664 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.744e-05/0.01273, allocations: 94.34 kB / 334.6 MB, free: 5.566 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.01283, allocations: 346.8 kB / 334.9 MB, free: 5.219 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001764/0.01301, allocations: 145.2 kB / 335.1 MB, free: 5.078 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000166/0.01317, allocations: 153.8 kB / 335.2 MB, free: 4.93 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003877/0.01356, allocations: 354 kB / 335.5 MB, free: 4.582 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.01356, allocations: 0 / 335.5 MB, free: 4.582 MB / 298.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0004763/0.01404, allocations: 465.1 kB / 336 MB, free: 4.121 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.01406, allocations: 4 kB / 336 MB, free: 4.117 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.01406, allocations: 8 kB / 336 MB, free: 4.109 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.01408, allocations: 4 kB / 336 MB, free: 4.105 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002735/0.01435, allocations: 119.8 kB / 336.1 MB, free: 3.988 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.462e-05/0.01437, allocations: 3.938 kB / 336.1 MB, free: 3.984 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001041/0.01447, allocations: 16 kB / 336.2 MB, free: 3.969 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.982e-05/0.01449, allocations: 16 kB / 336.2 MB, free: 3.953 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.0001407/0.01463, allocations: 165.7 kB / 336.3 MB, free: 3.781 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.435e-05/0.01468, allocations: 35.77 kB / 336.4 MB, free: 3.746 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.403e-05/0.01475, allocations: 47.34 kB / 336.4 MB, free: 3.699 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.01475, allocations: 4 kB / 336.4 MB, free: 3.695 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.01476, allocations: 4 kB / 336.4 MB, free: 3.691 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.01477, allocations: 7.922 kB / 336.4 MB, free: 3.684 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001329/0.0161, allocations: 1.193 MB / 337.6 MB, free: 2.383 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.444e-06/0.0161, allocations: 11.94 kB / 337.6 MB, free: 2.371 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000294/0.0164, allocations: 115.8 kB / 337.7 MB, free: 2.258 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.618e-06/0.01641, allocations: 11.98 kB / 337.8 MB, free: 2.246 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.663e-05/0.01643, allocations: 16 kB / 337.8 MB, free: 2.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.687e-06/0.01644, allocations: 11.94 kB / 337.8 MB, free: 2.219 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.114e-06/0.01645, allocations: 11.92 kB / 337.8 MB, free: 2.207 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008248/0.01727, allocations: 0.8308 MB / 338.6 MB, free: 1.309 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.458e-05/0.01734, allocations: 43.73 kB / 338.7 MB, free: 1.262 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.392e-05/0.01737, allocations: 16 kB / 338.7 MB, free: 1.246 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001375/0.01751, allocations: 23.98 kB / 338.7 MB, free: 1.223 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.504e-05/0.01758, allocations: 52.3 kB / 338.8 MB, free: 1.172 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.852e-05/0.01759, allocations: 23.94 kB / 338.8 MB, free: 1.148 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.562e-05/0.01769, allocations: 148.5 kB / 338.9 MB, free: 1.004 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01769, allocations: 0 / 338.9 MB, free: 1.004 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002961/0.01799, allocations: 100 kB / 339 MB, free: 0.9062 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.0009964/0.01898, allocations: 1.395 MB / 340.4 MB, free: 15.43 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005349/0.01952, allocations: 388.2 kB / 340.8 MB, free: 15.05 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.01952, allocations: 0 / 340.8 MB, free: 15.05 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002549/0.01978, allocations: 231.1 kB / 341 MB, free: 14.82 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006046/0.02038, allocations: 95.61 kB / 341.1 MB, free: 14.73 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00352/0.0239, allocations: 3.584 MB / 344.7 MB, free: 10.95 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000147/0.02405, allocations: 195.3 kB / 344.9 MB, free: 10.73 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001786/0.02423, allocations: 51.33 kB / 344.9 MB, free: 10.68 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001535/0.02438, allocations: 124.5 kB / 345.1 MB, free: 10.56 MB / 314.7 MB Notification: Performance of SimCode: time 1.332e-06/0.02438, allocations: 0 / 345.1 MB, free: 10.56 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02722/0.0516, allocations: 8.878 MB / 353.9 MB, free: 1.855 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.213/7.265, allocations: 14.41 kB / 354 MB, free: 1.848 MB / 314.7 MB " [Timeout remaining time 653] (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/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_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: 9.002550115808845]