Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.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.001266/0.001266, allocations: 111.1 kB / 20.44 MB, free: 1.34 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.001496/0.001496, allocations: 211.5 kB / 23.72 MB, free: 4.527 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.43/1.43, allocations: 230.6 MB / 257.5 MB, free: 7.812 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.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 51.92 kB / 377.7 MB, free: 3.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2538/0.2553, allocations: 53.37 MB / 431.1 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.004088/0.2594, allocations: 2.314 MB / 433.4 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001254/0.2606, allocations: 0.5843 MB / 434 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001349/0.2608, allocations: 7.938 kB / 434 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000168/0.2609, allocations: 39.58 kB / 434 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001902/0.2611, allocations: 83.27 kB / 434.1 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001716/0.2613, allocations: 51.94 kB / 434.2 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000354/0.2617, allocations: 298.6 kB / 434.4 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001976/0.2619, allocations: 91.91 kB / 434.5 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001667/0.262, allocations: 115.6 kB / 434.6 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002042/0.2622, allocations: 123.4 kB / 434.8 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.697e-05/0.2623, allocations: 24 kB / 434.8 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.872e-05/0.2623, allocations: 24 kB / 434.8 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.224e-05/0.2624, allocations: 51.83 kB / 434.9 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001277/0.2625, allocations: 111.5 kB / 435 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003668/0.2629, allocations: 303.1 kB / 435.3 MB, free: 2.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.2629, allocations: 0 / 435.3 MB, free: 2.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2629, allocations: 0 / 435.3 MB, free: 2.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.685e-06/0.2629, allocations: 4 kB / 435.3 MB, free: 2.477 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.0008104/0.2637, allocations: 477.8 kB / 435.7 MB, free: 1.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.2637, allocations: 12.02 kB / 435.8 MB, free: 1.969 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.746e-05/0.2638, allocations: 66.72 kB / 435.8 MB, free: 1.895 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.564e-05/0.2639, allocations: 28.75 kB / 435.8 MB, free: 1.867 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003453/0.2642, allocations: 178.7 kB / 436 MB, free: 1.668 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.836e-05/0.2642, allocations: 21.03 kB / 436 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.507e-05/0.2643, allocations: 35.92 kB / 436.1 MB, free: 1.609 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004655/0.2648, allocations: 222.1 kB / 436.3 MB, free: 1.391 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.559e-05/0.2648, allocations: 7.938 kB / 436.3 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.449e-05/0.2648, allocations: 12 kB / 436.3 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.725e-06/0.2648, allocations: 4 kB / 436.3 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004108/0.2652, allocations: 178.5 kB / 436.5 MB, free: 1.195 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00123/0.2665, allocations: 0.6402 MB / 437.1 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005091/0.267, allocations: 206.5 kB / 437.3 MB, free: 304 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002212/0.2672, allocations: 104.8 kB / 437.4 MB, free: 196 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.9e-05/0.2672, allocations: 4 kB / 437.4 MB, free: 192 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.672e-05/0.2672, allocations: 30.56 kB / 437.5 MB, free: 152 kB / 334.1 MB Notification: Performance of pre-optimization done (n=26): time 2.234e-06/0.2672, allocations: 0 / 437.5 MB, free: 152 kB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.001815/0.2691, allocations: 0.8255 MB / 438.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.574e-05/0.2691, allocations: 55.41 kB / 438.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001658/0.2693, allocations: 155.8 kB / 438.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.717e-05/0.2693, allocations: 29.7 kB / 438.5 MB, free: 15 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001083/0.2694, allocations: 140.8 kB / 438.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.06e-05/0.2695, allocations: 115 kB / 438.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.297e-05/0.2696, allocations: 49.7 kB / 438.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.2698, allocations: 334.8 kB / 439.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001869/0.2699, allocations: 75.95 kB / 439.2 MB, free: 14.28 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002174/0.2702, allocations: 119.3 kB / 439.3 MB, free: 14.15 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004054/0.2706, allocations: 203.3 kB / 439.5 MB, free: 13.94 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.2706, allocations: 3.938 kB / 439.5 MB, free: 13.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005121/0.2711, allocations: 261.4 kB / 439.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.2711, allocations: 4 kB / 439.8 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.2711, allocations: 0 / 439.8 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/0.2711, allocations: 4 kB / 439.8 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002979/0.2714, allocations: 71.89 kB / 439.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.2714, allocations: 8.094 kB / 439.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001305/0.2716, allocations: 19.98 kB / 439.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.452e-05/0.2716, allocations: 4 kB / 439.9 MB, free: 13.57 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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.0001515/0.2717, allocations: 141.7 kB / 440 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.694e-05/0.2718, allocations: 19.86 kB / 440.1 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.731e-05/0.2718, allocations: 26.66 kB / 440.1 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.481e-06/0.2718, allocations: 4 kB / 440.1 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.2718, allocations: 3.984 kB / 440.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.2719, allocations: 0 / 440.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001079/0.2729, allocations: 0.5972 MB / 440.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.2729, allocations: 3.984 kB / 440.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003444/0.2733, allocations: 75.91 kB / 440.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.571e-06/0.2733, allocations: 4 kB / 440.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.888e-05/0.2733, allocations: 7.938 kB / 440.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.909e-06/0.2733, allocations: 4 kB / 440.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.2733, allocations: 3.984 kB / 440.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007439/0.2741, allocations: 450.6 kB / 441.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.387e-05/0.2741, allocations: 11.91 kB / 441.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.423e-05/0.2741, allocations: 12 kB / 441.3 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001424/0.2743, allocations: 11.98 kB / 441.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.952e-05/0.2743, allocations: 19.97 kB / 441.3 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.454e-05/0.2744, allocations: 8 kB / 441.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.785e-05/0.2745, allocations: 115.2 kB / 441.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2745, allocations: 4 kB / 441.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003307/0.2748, allocations: 60 kB / 441.5 MB, free: 11.92 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (shaft.phi,shaft.w,load.phi,load.w,springDamper.phi_rel,springDamper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 28 * 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.001049/0.2758, allocations: 0.9729 MB / 442.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004824/0.2763, allocations: 185.5 kB / 442.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.2763, allocations: 4.062 kB / 442.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002145/0.2765, allocations: 111.7 kB / 442.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004473/0.277, allocations: 47.83 kB / 442.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003751/0.2807, allocations: 2.663 MB / 445.5 MB, free: 7.793 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001508/0.2809, allocations: 146.5 kB / 445.6 MB, free: 7.633 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.283e-05/0.281, allocations: 21.94 kB / 445.6 MB, free: 7.609 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001202/0.2811, allocations: 75.42 kB / 445.7 MB, free: 7.535 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.2811, allocations: 0 / 445.7 MB, free: 7.535 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03491/0.316, allocations: 5.295 MB / 451 MB, free: 2.402 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.38, allocations: 4.062 kB / 451 MB, free: 2.398 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/ElasticBearing/ElasticBearing.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable springDamper.w_rel in file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.csv. Warning: Get data of variable springDamper.w_rel from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.785043126990786]