Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001322/0.001322, allocations: 116.9 kB / 18.45 MB, free: 4.598 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.001415/0.001415, allocations: 217.6 kB / 21.42 MB, free: 1.637 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.429/1.429, allocations: 207.6 MB / 231.8 MB, free: 4.039 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001723/0.001723, allocations: 47.94 kB / 342.3 MB, free: 9.984 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08857/0.09029, allocations: 49.12 MB / 391.4 MB, free: 8.695 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.003774/0.09406, allocations: 2.43 MB / 393.8 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001216/0.09528, allocations: 0.6317 MB / 394.5 MB, free: 5.613 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001689/0.09545, allocations: 11.94 kB / 394.5 MB, free: 5.602 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001829/0.09563, allocations: 39.59 kB / 394.5 MB, free: 5.562 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001964/0.09583, allocations: 79.33 kB / 394.6 MB, free: 5.484 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002028/0.09603, allocations: 63.84 kB / 394.7 MB, free: 5.422 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003511/0.09638, allocations: 290.7 kB / 394.9 MB, free: 5.137 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002002/0.09658, allocations: 82.94 kB / 395 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001614/0.09674, allocations: 111.6 kB / 395.1 MB, free: 4.945 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001648/0.09691, allocations: 127.5 kB / 395.3 MB, free: 4.82 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.542e-05/0.09695, allocations: 24 kB / 395.3 MB, free: 4.797 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.172e-05/0.09699, allocations: 24 kB / 395.3 MB, free: 4.773 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.806e-05/0.09705, allocations: 59.77 kB / 395.4 MB, free: 4.715 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001272/0.09718, allocations: 131.4 kB / 395.5 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003833/0.09756, allocations: 294.7 kB / 395.8 MB, free: 4.297 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.234e-06/0.09757, allocations: 4 kB / 395.8 MB, free: 4.293 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.09757, allocations: 0 / 395.8 MB, free: 4.293 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.09758, allocations: 0 / 395.8 MB, free: 4.293 MB / 318.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.000943/0.09852, allocations: 0.5495 MB / 396.3 MB, free: 3.695 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.09856, allocations: 8.031 kB / 396.3 MB, free: 3.688 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.707e-05/0.09863, allocations: 62.73 kB / 396.4 MB, free: 3.617 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.504e-05/0.09868, allocations: 28.73 kB / 396.4 MB, free: 3.59 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004022/0.09909, allocations: 244.5 kB / 396.7 MB, free: 3.312 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.09911, allocations: 16.94 kB / 396.7 MB, free: 3.297 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.231e-05/0.09917, allocations: 39.89 kB / 396.7 MB, free: 3.258 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004755/0.09964, allocations: 216.9 kB / 396.9 MB, free: 3.039 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.087e-05/0.09966, allocations: 8 kB / 396.9 MB, free: 3.031 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.106e-05/0.09969, allocations: 4 kB / 396.9 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.125e-05/0.0997, allocations: 15.98 kB / 397 MB, free: 3.012 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004171/0.1001, allocations: 178.1 kB / 397.1 MB, free: 2.836 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001206/0.1013, allocations: 0.7501 MB / 397.9 MB, free: 2.027 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005103/0.1018, allocations: 214.4 kB / 398.1 MB, free: 1.809 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002238/0.1021, allocations: 104.8 kB / 398.2 MB, free: 1.703 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.557e-05/0.1021, allocations: 448 / 398.2 MB, free: 1.703 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.04e-05/0.1021, allocations: 38.56 kB / 398.2 MB, free: 1.656 MB / 318.1 MB Notification: Performance of pre-optimization done (n=26): time 1.212e-06/0.1021, allocations: 0 / 398.2 MB, free: 1.656 MB / 318.1 MB Notification: Performance of matching and sorting (n=28): time 0.001848/0.1039, allocations: 0.959 MB / 399.2 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.154e-05/0.104, allocations: 51.41 kB / 399.2 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001586/0.1041, allocations: 162.7 kB / 399.4 MB, free: 388 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.333e-05/0.1042, allocations: 29.7 kB / 399.4 MB, free: 352 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/0.1043, allocations: 152.7 kB / 399.6 MB, free: 196 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.882e-05/0.1044, allocations: 103.1 kB / 399.7 MB, free: 92 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.886e-05/0.1044, allocations: 53.56 kB / 399.7 MB, free: 32 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.1046, allocations: 330.8 kB / 400.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001895/0.1048, allocations: 79.89 kB / 400.1 MB, free: 15.62 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002218/0.105, allocations: 115.2 kB / 400.2 MB, free: 15.5 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004102/0.1054, allocations: 203.3 kB / 400.4 MB, free: 15.29 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1054, allocations: 0 / 400.4 MB, free: 15.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005162/0.1059, allocations: 261.4 kB / 400.7 MB, free: 15.02 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.106, allocations: 8 kB / 400.7 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.106, allocations: 3.984 kB / 400.7 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.106, allocations: 0 / 400.7 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002962/0.1063, allocations: 75.91 kB / 400.8 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.1063, allocations: 4 kB / 400.8 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001335/0.1064, allocations: 24 kB / 400.8 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.354e-05/0.1065, allocations: 12 kB / 400.8 MB, free: 14.9 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.0001517/0.1066, allocations: 134.7 kB / 401 MB, free: 14.76 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.703e-05/0.1067, allocations: 23.84 kB / 401 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.336e-05/0.1067, allocations: 30.55 kB / 401 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.1067, allocations: 4 kB / 401 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.1067, allocations: 0 / 401 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.1067, allocations: 3.938 kB / 401 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00106/0.1078, allocations: 0.6642 MB / 401.7 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.159e-06/0.1078, allocations: 4 kB / 401.7 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003321/0.1081, allocations: 67.91 kB / 401.7 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.359e-06/0.1081, allocations: 0 / 401.7 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.727e-05/0.1082, allocations: 15.92 kB / 401.8 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.1082, allocations: 4.062 kB / 401.8 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.1082, allocations: 0 / 401.8 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007454/0.1089, allocations: 439.8 kB / 402.2 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.874e-05/0.109, allocations: 92.97 kB / 402.3 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.771e-05/0.109, allocations: 19.98 kB / 402.3 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001396/0.1092, allocations: 8 kB / 402.3 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.313e-05/0.1092, allocations: 19.97 kB / 402.3 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.387e-05/0.1093, allocations: 8 kB / 402.3 MB, free: 13.27 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001058/0.1094, allocations: 119.5 kB / 402.5 MB, free: 13.15 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1094, allocations: 0 / 402.5 MB, free: 13.15 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003269/0.1097, allocations: 60 kB / 402.5 MB, free: 13.09 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.001109/0.1108, allocations: 0.9721 MB / 403.5 MB, free: 12.09 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004971/0.1113, allocations: 199.8 kB / 403.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.1113, allocations: 7.938 kB / 403.7 MB, free: 11.88 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002064/0.1115, allocations: 95.83 kB / 403.8 MB, free: 11.79 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004604/0.112, allocations: 43.83 kB / 403.8 MB, free: 11.75 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003743/0.1157, allocations: 2.67 MB / 406.5 MB, free: 8.957 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003818/0.1161, allocations: 0.7521 MB / 407.3 MB, free: 8.176 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001083/0.1162, allocations: 21.95 kB / 407.3 MB, free: 8.152 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001356/0.1163, allocations: 75.41 kB / 407.3 MB, free: 8.078 MB / 334.1 MB Notification: Performance of SimCode: time 1.482e-06/0.1163, allocations: 4 kB / 407.4 MB, free: 8.074 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0302/0.1465, allocations: 4.56 MB / 411.9 MB, free: 3.461 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.277/8.424, allocations: 11.92 kB / 411.9 MB, free: 3.449 MB / 334.1 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_Rotational_Examples_ElasticBearing.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/ElasticBearing/ElasticBearing.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.csv. Warning: Get data of variable springDamper.w_rel from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.822946549000335]