Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.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.00189/0.00189, allocations: 112.2 kB / 20.43 MB, free: 1.449 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.002025/0.002025, allocations: 187.3 kB / 23.72 MB, free: 4.684 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.432/1.432, allocations: 225.6 MB / 252.5 MB, free: 13.03 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.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001629/0.001629, allocations: 51.92 kB / 370.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2536/0.2552, allocations: 52.18 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.003819/0.2591, allocations: 2.457 MB / 425.1 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009687/0.26, allocations: 0.5844 MB / 425.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001247/0.2602, allocations: 7.938 kB / 425.7 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001508/0.2603, allocations: 43.58 kB / 425.7 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001602/0.2605, allocations: 83.27 kB / 425.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001877/0.2607, allocations: 51.94 kB / 425.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003444/0.261, allocations: 306.6 kB / 426.1 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001893/0.2612, allocations: 75.36 kB / 426.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001475/0.2613, allocations: 119.6 kB / 426.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001714/0.2615, allocations: 119.5 kB / 426.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.23e-05/0.2616, allocations: 24 kB / 426.5 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.357e-05/0.2616, allocations: 24 kB / 426.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.084e-05/0.2616, allocations: 51.84 kB / 426.5 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001311/0.2618, allocations: 143.3 kB / 426.7 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003565/0.2621, allocations: 291.2 kB / 427 MB, free: 10.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.315e-06/0.2621, allocations: 4 kB / 427 MB, free: 10.22 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2621, allocations: 0 / 427 MB, free: 10.22 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.2622, allocations: 0 / 427 MB, free: 10.22 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.0008142/0.263, allocations: 481.7 kB / 427.4 MB, free: 9.723 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.263, allocations: 12.03 kB / 427.5 MB, free: 9.711 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.759e-05/0.2631, allocations: 58.73 kB / 427.5 MB, free: 9.645 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.961e-05/0.2631, allocations: 32.75 kB / 427.5 MB, free: 9.613 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003365/0.2635, allocations: 186.6 kB / 427.7 MB, free: 9.406 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.146e-05/0.2635, allocations: 17.03 kB / 427.7 MB, free: 9.387 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.681e-05/0.2636, allocations: 31.94 kB / 427.8 MB, free: 9.355 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004586/0.264, allocations: 222.1 kB / 428 MB, free: 9.137 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.127e-05/0.264, allocations: 4 kB / 428 MB, free: 9.133 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.451e-05/0.2641, allocations: 11.98 kB / 428 MB, free: 9.121 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.938e-06/0.2641, allocations: 15.94 kB / 428 MB, free: 9.105 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003841/0.2644, allocations: 174.5 kB / 428.2 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001176/0.2656, allocations: 0.6831 MB / 428.9 MB, free: 8.207 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004883/0.2661, allocations: 218.3 kB / 429.1 MB, free: 7.984 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002145/0.2663, allocations: 104.2 kB / 429.2 MB, free: 7.883 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.505e-05/0.2663, allocations: 4 kB / 429.2 MB, free: 7.879 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.423e-05/0.2664, allocations: 42.55 kB / 429.2 MB, free: 7.828 MB / 334.1 MB Notification: Performance of pre-optimization done (n=26): time 1.292e-06/0.2664, allocations: 0 / 429.2 MB, free: 7.828 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.001744/0.2681, allocations: 0.81 MB / 430 MB, free: 6.965 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.048e-05/0.2682, allocations: 51.41 kB / 430.1 MB, free: 6.902 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001689/0.2683, allocations: 166.6 kB / 430.3 MB, free: 6.723 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.438e-05/0.2684, allocations: 25.7 kB / 430.3 MB, free: 6.691 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001152/0.2685, allocations: 148.8 kB / 430.4 MB, free: 6.543 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.593e-05/0.2686, allocations: 103.1 kB / 430.5 MB, free: 6.441 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.649e-05/0.2687, allocations: 49.7 kB / 430.6 MB, free: 6.387 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.2688, allocations: 334.8 kB / 430.9 MB, free: 6.051 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001738/0.269, allocations: 67.97 kB / 431 MB, free: 5.984 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000213/0.2692, allocations: 128 kB / 431.1 MB, free: 5.848 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000398/0.2696, allocations: 203.3 kB / 431.3 MB, free: 5.637 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.2696, allocations: 4 kB / 431.3 MB, free: 5.633 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000498/0.2701, allocations: 265.3 kB / 431.6 MB, free: 5.367 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.2701, allocations: 8 kB / 431.6 MB, free: 5.359 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.2701, allocations: 0 / 431.6 MB, free: 5.359 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.258e-05/0.2701, allocations: 7.984 kB / 431.6 MB, free: 5.352 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000314/0.2705, allocations: 71.91 kB / 431.6 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.343e-05/0.2705, allocations: 7.984 kB / 431.6 MB, free: 5.273 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001224/0.2706, allocations: 12.09 kB / 431.7 MB, free: 5.262 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.875e-05/0.2706, allocations: 12 kB / 431.7 MB, free: 5.25 MB / 334.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.0001462/0.2708, allocations: 138.6 kB / 431.8 MB, free: 5.105 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.5e-05/0.2708, allocations: 23.89 kB / 431.8 MB, free: 5.082 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.373e-05/0.2709, allocations: 26.66 kB / 431.9 MB, free: 5.055 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.2709, allocations: 0 / 431.9 MB, free: 5.055 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.2709, allocations: 0 / 431.9 MB, free: 5.055 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.846e-06/0.2709, allocations: 4 kB / 431.9 MB, free: 5.051 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001003/0.2719, allocations: 0.632 MB / 432.5 MB, free: 4.363 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.2719, allocations: 4 kB / 432.5 MB, free: 4.359 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003182/0.2722, allocations: 71.91 kB / 432.6 MB, free: 4.289 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.387e-06/0.2722, allocations: 0 / 432.6 MB, free: 4.289 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.555e-05/0.2723, allocations: 15.98 kB / 432.6 MB, free: 4.273 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.2723, allocations: 7.938 kB / 432.6 MB, free: 4.266 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.2723, allocations: 4 kB / 432.6 MB, free: 4.262 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000708/0.273, allocations: 436.4 kB / 433 MB, free: 3.816 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.053e-05/0.273, allocations: 19.86 kB / 433 MB, free: 3.797 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.404e-05/0.273, allocations: 19.92 kB / 433.1 MB, free: 3.777 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001455/0.2732, allocations: 8 kB / 433.1 MB, free: 3.77 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.881e-05/0.2732, allocations: 19.97 kB / 433.1 MB, free: 3.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.614e-05/0.2733, allocations: 11.98 kB / 433.1 MB, free: 3.738 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.444e-05/0.2733, allocations: 123.4 kB / 433.2 MB, free: 3.617 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2733, allocations: 0 / 433.2 MB, free: 3.617 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000296/0.2736, allocations: 60 kB / 433.3 MB, free: 3.559 MB / 334.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.00098/0.2746, allocations: 0.9683 MB / 434.2 MB, free: 2.559 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004388/0.2751, allocations: 191.8 kB / 434.4 MB, free: 2.371 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.2751, allocations: 0 / 434.4 MB, free: 2.371 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002102/0.2753, allocations: 95.89 kB / 434.5 MB, free: 2.277 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00043/0.2757, allocations: 43.16 kB / 434.6 MB, free: 2.238 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003583/0.2793, allocations: 2.665 MB / 437.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003909/0.2797, allocations: 0.7522 MB / 438 MB, free: 14.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.108e-05/0.2798, allocations: 21.94 kB / 438 MB, free: 14.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001239/0.2799, allocations: 71.42 kB / 438.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2799, allocations: 0 / 438.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03382/0.3137, allocations: 4.83 MB / 442.9 MB, free: 9.906 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.36, allocations: 2.234 kB / 442.9 MB, free: 9.906 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/ElasticBearing/ElasticBearing.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.csv. Warning: Get data of variable springDamper.w_rel from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.868009231002361]