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.001849/0.001849, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002294/0.002294, allocations: 217.2 kB / 23.75 MB, free: 4.668 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.46/1.46, allocations: 230.6 MB / 257.5 MB, free: 7.984 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.001479/0.001479, allocations: 47.92 kB / 377.8 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2427/0.2442, allocations: 53.36 MB / 431.1 MB, free: 7.145 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.003756/0.248, allocations: 2.462 MB / 433.6 MB, free: 4.676 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001205/0.2492, allocations: 0.6193 MB / 434.2 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001374/0.2493, allocations: 4 kB / 434.2 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001648/0.2495, allocations: 39.58 kB / 434.3 MB, free: 4.008 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001786/0.2496, allocations: 87.27 kB / 434.3 MB, free: 3.922 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000206/0.2498, allocations: 63.86 kB / 434.4 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003384/0.2502, allocations: 290.7 kB / 434.7 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002002/0.2504, allocations: 79.98 kB / 434.8 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001517/0.2505, allocations: 115.6 kB / 434.9 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000176/0.2507, allocations: 123.5 kB / 435 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.875e-05/0.2507, allocations: 24 kB / 435 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.194e-05/0.2508, allocations: 24 kB / 435 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.105e-05/0.2508, allocations: 59.75 kB / 435.1 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001354/0.251, allocations: 135.3 kB / 435.2 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003452/0.2513, allocations: 295.5 kB / 435.5 MB, free: 2.738 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.2513, allocations: 0 / 435.5 MB, free: 2.738 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2513, allocations: 0 / 435.5 MB, free: 2.738 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.031e-05/0.2513, allocations: 3.938 kB / 435.5 MB, free: 2.734 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.0007535/0.2521, allocations: 473.8 kB / 436 MB, free: 2.242 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.2521, allocations: 15.97 kB / 436 MB, free: 2.227 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.684e-05/0.2522, allocations: 62.72 kB / 436.1 MB, free: 2.156 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.959e-05/0.2522, allocations: 36.69 kB / 436.1 MB, free: 2.121 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003004/0.2525, allocations: 174.7 kB / 436.3 MB, free: 1.926 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.876e-05/0.2526, allocations: 21.03 kB / 436.3 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.407e-05/0.2526, allocations: 31.94 kB / 436.3 MB, free: 1.871 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004793/0.2531, allocations: 230 kB / 436.5 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.968e-05/0.2531, allocations: 3.953 kB / 436.6 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.448e-05/0.2532, allocations: 15.98 kB / 436.6 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.16e-05/0.2532, allocations: 4 kB / 436.6 MB, free: 1.621 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003929/0.2536, allocations: 178.5 kB / 436.7 MB, free: 1.449 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001188/0.2547, allocations: 0.6908 MB / 437.4 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004752/0.2552, allocations: 210.5 kB / 437.6 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000216/0.2554, allocations: 107.6 kB / 437.7 MB, free: 400 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.075e-05/0.2555, allocations: 4 kB / 437.8 MB, free: 396 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.46e-05/0.2555, allocations: 30.56 kB / 437.8 MB, free: 356 kB / 334.1 MB Notification: Performance of pre-optimization done (n=26): time 1.352e-06/0.2555, allocations: 0 / 437.8 MB, free: 356 kB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.001663/0.2571, allocations: 0.8212 MB / 438.6 MB, free: 15.47 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.571e-05/0.2572, allocations: 55.41 kB / 438.7 MB, free: 15.4 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001482/0.2573, allocations: 159.8 kB / 438.8 MB, free: 15.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.293e-05/0.2574, allocations: 33.7 kB / 438.8 MB, free: 15.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.309e-05/0.2575, allocations: 140.8 kB / 439 MB, free: 15.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.61e-05/0.2576, allocations: 114.9 kB / 439.1 MB, free: 14.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.203e-05/0.2576, allocations: 49.7 kB / 439.1 MB, free: 14.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.2578, allocations: 330.8 kB / 439.5 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001959/0.258, allocations: 75.95 kB / 439.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00021/0.2582, allocations: 119.3 kB / 439.7 MB, free: 14.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003732/0.2586, allocations: 195.4 kB / 439.8 MB, free: 14.15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.2586, allocations: 4 kB / 439.9 MB, free: 14.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004691/0.259, allocations: 261.4 kB / 440.1 MB, free: 13.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/0.259, allocations: 4 kB / 440.1 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.259, allocations: 0 / 440.1 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.2591, allocations: 4 kB / 440.1 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002909/0.2594, allocations: 75.89 kB / 440.2 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.316e-06/0.2594, allocations: 3.984 kB / 440.2 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000134/0.2595, allocations: 28.02 kB / 440.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.511e-05/0.2595, allocations: 8 kB / 440.2 MB, free: 13.77 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.0001288/0.2596, allocations: 141.7 kB / 440.4 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.538e-05/0.2597, allocations: 23.8 kB / 440.4 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.347e-05/0.2597, allocations: 30.64 kB / 440.4 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.2598, allocations: 4 kB / 440.4 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.2598, allocations: 0 / 440.4 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.257e-06/0.2598, allocations: 0 / 440.4 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009955/0.2608, allocations: 0.621 MB / 441 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.2608, allocations: 0 / 441 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003305/0.2611, allocations: 75.89 kB / 441.1 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.601e-06/0.2611, allocations: 4 kB / 441.1 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.545e-05/0.2611, allocations: 3.938 kB / 441.1 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.927e-06/0.2611, allocations: 4 kB / 441.1 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.2611, allocations: 4.062 kB / 441.1 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007148/0.2618, allocations: 454.8 kB / 441.6 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.848e-05/0.2619, allocations: 11.91 kB / 441.6 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.294e-05/0.2619, allocations: 16 kB / 441.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001457/0.262, allocations: 11.98 kB / 441.6 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.246e-05/0.2621, allocations: 19.91 kB / 441.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.293e-05/0.2621, allocations: 8 kB / 441.6 MB, free: 12.26 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.62e-05/0.2622, allocations: 119.2 kB / 441.8 MB, free: 12.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2622, allocations: 0 / 441.8 MB, free: 12.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002952/0.2625, allocations: 56 kB / 441.8 MB, free: 12.09 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.0009845/0.2635, allocations: 0.9769 MB / 442.8 MB, free: 11.08 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004478/0.2639, allocations: 193.3 kB / 443 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.2639, allocations: 0 / 443 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001987/0.2641, allocations: 103.8 kB / 443.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004161/0.2645, allocations: 46.31 kB / 443.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003543/0.2681, allocations: 2.672 MB / 445.8 MB, free: 7.965 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003663/0.2685, allocations: 0.7483 MB / 446.5 MB, free: 7.191 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.35e-05/0.2685, allocations: 25.94 kB / 446.6 MB, free: 7.164 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001162/0.2687, allocations: 75.41 kB / 446.6 MB, free: 7.09 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2687, allocations: 0 / 446.6 MB, free: 7.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03218/0.3008, allocations: 4.826 MB / 451.5 MB, free: 2.418 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.54, allocations: 12.05 kB / 451.5 MB, free: 2.406 MB / 350.1 MB " [Timeout remaining time 648] (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: 14.118675037003413]