Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.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.001304/0.001304, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.001374/0.001374, allocations: 194.8 kB / 23.71 MB, free: 4.406 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.464/1.464, allocations: 225.7 MB / 252.5 MB, free: 12.8 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.PreLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_PreLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.PreLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_PreLoad",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002498/0.002498, allocations: 51.91 kB / 370.4 MB, free: 9.676 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2482/0.2507, allocations: 52.18 MB / 422.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.PreLoad): time 0.005211/0.2559, allocations: 3.227 MB / 425.8 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001694/0.2576, allocations: 0.845 MB / 426.6 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002272/0.2578, allocations: 11.94 kB / 426.6 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002128/0.258, allocations: 87.16 kB / 426.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002876/0.2583, allocations: 142.7 kB / 426.9 MB, free: 10.06 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004325/0.2588, allocations: 171.6 kB / 427 MB, free: 9.895 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006652/0.2594, allocations: 0.5918 MB / 427.6 MB, free: 9.301 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002753/0.2597, allocations: 137.8 kB / 427.8 MB, free: 9.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003402/0.26, allocations: 243.2 kB / 428 MB, free: 8.922 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00033/0.2604, allocations: 242.9 kB / 428.2 MB, free: 8.684 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.173e-05/0.2605, allocations: 52 kB / 428.3 MB, free: 8.633 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.299e-05/0.2605, allocations: 48 kB / 428.3 MB, free: 8.586 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001236/0.2607, allocations: 115.6 kB / 428.5 MB, free: 8.473 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002394/0.2609, allocations: 231 kB / 428.7 MB, free: 8.246 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000708/0.2616, allocations: 0.6126 MB / 429.3 MB, free: 7.633 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.2616, allocations: 0 / 429.3 MB, free: 7.633 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.2616, allocations: 0 / 429.3 MB, free: 7.633 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.479e-05/0.2616, allocations: 0 / 429.3 MB, free: 7.633 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: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.001656/0.2633, allocations: 0.7739 MB / 430.1 MB, free: 6.828 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.2633, allocations: 16.03 kB / 430.1 MB, free: 6.812 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.446e-05/0.2634, allocations: 82.7 kB / 430.2 MB, free: 6.723 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.363e-05/0.2635, allocations: 56.61 kB / 430.2 MB, free: 6.668 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005008/0.264, allocations: 273.1 kB / 430.5 MB, free: 6.379 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.757e-05/0.2641, allocations: 33.38 kB / 430.5 MB, free: 6.344 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.572e-05/0.2642, allocations: 48.33 kB / 430.6 MB, free: 6.297 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009128/0.2651, allocations: 462.5 kB / 431 MB, free: 5.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.315e-05/0.2651, allocations: 3.984 kB / 431 MB, free: 5.836 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.99e-05/0.2651, allocations: 16 kB / 431 MB, free: 5.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.38e-05/0.2651, allocations: 12 kB / 431 MB, free: 5.809 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00105/0.2662, allocations: 451.7 kB / 431.5 MB, free: 5.371 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002479/0.2687, allocations: 1.235 MB / 432.7 MB, free: 4.078 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009872/0.2697, allocations: 0.4994 MB / 433.2 MB, free: 3.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007962/0.2705, allocations: 347.5 kB / 433.6 MB, free: 3.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.526e-05/0.2705, allocations: 8.656 kB / 433.6 MB, free: 3.219 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.34e-05/0.2706, allocations: 43.14 kB / 433.6 MB, free: 3.168 MB / 334.1 MB Notification: Performance of pre-optimization done (n=67): time 2.475e-06/0.2706, allocations: 4 kB / 433.6 MB, free: 3.164 MB / 334.1 MB Notification: Performance of matching and sorting (n=103): time 0.007356/0.2779, allocations: 3.002 MB / 436.6 MB, free: 132 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.183e-05/0.278, allocations: 64.41 kB / 436.7 MB, free: 56 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003066/0.2783, allocations: 264.2 kB / 436.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.717e-05/0.2783, allocations: 37.7 kB / 437 MB, free: 15.74 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001626/0.2785, allocations: 201.5 kB / 437.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002801/0.2788, allocations: 364.7 kB / 437.5 MB, free: 15.19 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002192/0.279, allocations: 150.6 kB / 437.7 MB, free: 15.03 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001891/0.2792, allocations: 358.8 kB / 438 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006134/0.2798, allocations: 277.8 kB / 438.3 MB, free: 14.4 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006583/0.2805, allocations: 345.3 kB / 438.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001272/0.2817, allocations: 0.6272 MB / 439.3 MB, free: 13.42 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.2817, allocations: 4 kB / 439.3 MB, free: 13.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001566/0.2833, allocations: 0.7823 MB / 440 MB, free: 12.63 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/0.2833, allocations: 8 kB / 440.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/0.2833, allocations: 3.938 kB / 440.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.308e-05/0.2833, allocations: 4 kB / 440.1 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008148/0.2842, allocations: 207.7 kB / 440.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.581e-05/0.2842, allocations: 4 kB / 440.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003929/0.2846, allocations: 51.95 kB / 440.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.23e-05/0.2846, allocations: 31.98 kB / 440.4 MB, free: 12.32 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (outerContactB.contact,outerContactA.contact,innerContactB.contact,innerContactA.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 113 * 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.0002826/0.2849, allocations: 193.7 kB / 440.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001031/0.285, allocations: 55.67 kB / 440.6 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001629/0.2852, allocations: 77.33 kB / 440.7 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.219e-05/0.2852, allocations: 12 kB / 440.7 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.111e-05/0.2852, allocations: 0 / 440.7 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.105e-05/0.2852, allocations: 3.984 kB / 440.7 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0033/0.2885, allocations: 1.836 MB / 442.5 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.097e-06/0.2885, allocations: 8 kB / 442.5 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007946/0.2893, allocations: 203.7 kB / 442.7 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.478e-05/0.2893, allocations: 8.594 kB / 442.7 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.477e-05/0.2894, allocations: 31.94 kB / 442.8 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.28e-05/0.2894, allocations: 11.98 kB / 442.8 MB, free: 9.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.482e-06/0.2894, allocations: 15.86 kB / 442.8 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00247/0.2919, allocations: 1.369 MB / 444.2 MB, free: 8.309 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001164/0.292, allocations: 51.66 kB / 444.2 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.554e-05/0.2921, allocations: 28 kB / 444.2 MB, free: 8.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003878/0.2925, allocations: 47.95 kB / 444.3 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001218/0.2926, allocations: 84.73 kB / 444.4 MB, free: 8.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.903e-05/0.2926, allocations: 35.98 kB / 444.4 MB, free: 8.066 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001833/0.2928, allocations: 183 kB / 444.6 MB, free: 7.891 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2928, allocations: 0 / 444.6 MB, free: 7.891 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005015/0.2933, allocations: 148 kB / 444.7 MB, free: 7.746 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (outerContactA.s_rel,outerContactA.v_rel,outerContactB.s_rel,outerContactB.v_rel,friction.s_rel,friction.v_rel) * Number of discrete variables: 4 (innerContactA.contact,innerContactB.contact,outerContactA.contact,outerContactB.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 103 * 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.002736/0.2961, allocations: 1.944 MB / 446.7 MB, free: 5.719 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001497/0.2976, allocations: 0.6996 MB / 447.4 MB, free: 5.016 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.226e-06/0.2976, allocations: 4 kB / 447.4 MB, free: 5.012 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008288/0.2984, allocations: 414.2 kB / 447.8 MB, free: 4.613 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008212/0.2992, allocations: 128.5 kB / 447.9 MB, free: 4.488 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00847/0.3077, allocations: 5.273 MB / 453.2 MB, free: 15 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002916/0.308, allocations: 272.5 kB / 453.4 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003653/0.3083, allocations: 76.97 kB / 453.5 MB, free: 14.63 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000315/0.3087, allocations: 195.4 kB / 453.7 MB, free: 14.44 MB / 366.1 MB Notification: Performance of SimCode: time 8.91e-07/0.3087, allocations: 0 / 453.7 MB, free: 14.44 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04602/0.3547, allocations: 12.61 MB / 466.3 MB, free: 2.066 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/11.89, allocations: 3.938 kB / 466.3 MB, free: 2.062 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_PreLoad.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/PreLoad/PreLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable innerContactA.s_rel in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad_res.csv. Warning: Get data of variable innerContactA.s_rel from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad_res.csv failed! Error: Could not read variable innerContactB.s_rel in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad_res.csv. Warning: Get data of variable innerContactB.s_rel from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad_res.csv failed! Error: Could not read variable outerContactB.v_rel in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad_res.csv. Warning: Get data of variable outerContactB.v_rel from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.46197566576302]