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.001577/0.001577, allocations: 113.6 kB / 21.19 MB, free: 0.7031 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.001767/0.001767, allocations: 208.6 kB / 24.49 MB, free: 4.055 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.494/1.494, allocations: 207.6 MB / 235.3 MB, free: 10 MB / 190.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.001954/0.001954, allocations: 56.34 kB / 347.2 MB, free: 10.13 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2826/0.2846, allocations: 49.16 MB / 396.3 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.003256/0.2878, allocations: 2.444 MB / 398.8 MB, free: 7.281 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009292/0.2888, allocations: 0.6329 MB / 399.4 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000129/0.2889, allocations: 3.906 kB / 399.4 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001483/0.2891, allocations: 42.31 kB / 399.5 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001497/0.2892, allocations: 83.36 kB / 399.5 MB, free: 6.73 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000208/0.2894, allocations: 61.17 kB / 399.6 MB, free: 6.695 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003145/0.2897, allocations: 296 kB / 399.9 MB, free: 6.547 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001813/0.2899, allocations: 84.75 kB / 400 MB, free: 6.496 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001405/0.29, allocations: 109.2 kB / 400.1 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000156/0.2902, allocations: 131.2 kB / 400.2 MB, free: 6.379 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.864e-05/0.2902, allocations: 23.94 kB / 400.2 MB, free: 6.379 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.377e-05/0.2903, allocations: 23.5 kB / 400.3 MB, free: 6.379 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.393e-05/0.2903, allocations: 57.17 kB / 400.3 MB, free: 6.34 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000114/0.2904, allocations: 132.1 kB / 400.4 MB, free: 6.262 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003788/0.2908, allocations: 297.8 kB / 400.7 MB, free: 6.148 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.2908, allocations: 4.906 kB / 400.7 MB, free: 6.145 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.2908, allocations: 0 / 400.7 MB, free: 6.145 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.228e-05/0.2909, allocations: 1.156 kB / 400.7 MB, free: 6.145 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.0007341/0.2916, allocations: 477.8 kB / 401.2 MB, free: 5.77 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.2916, allocations: 16.92 kB / 401.2 MB, free: 5.762 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.235e-05/0.2917, allocations: 61.66 kB / 401.3 MB, free: 5.707 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.513e-05/0.2917, allocations: 26.33 kB / 401.3 MB, free: 5.695 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002847/0.292, allocations: 184.7 kB / 401.5 MB, free: 5.523 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.47e-05/0.2921, allocations: 19.75 kB / 401.5 MB, free: 5.516 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.658e-05/0.2921, allocations: 33.25 kB / 401.5 MB, free: 5.5 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004642/0.2926, allocations: 228.6 kB / 401.8 MB, free: 5.395 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.189e-05/0.2926, allocations: 1.781 kB / 401.8 MB, free: 5.395 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.448e-05/0.2926, allocations: 15.33 kB / 401.8 MB, free: 5.383 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.2926, allocations: 6.688 kB / 401.8 MB, free: 5.383 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004044/0.293, allocations: 175.5 kB / 402 MB, free: 5.332 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001141/0.2942, allocations: 0.6894 MB / 402.6 MB, free: 4.891 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004776/0.2947, allocations: 213.6 kB / 402.9 MB, free: 4.789 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002306/0.2949, allocations: 102.4 kB / 403 MB, free: 4.75 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.218e-05/0.2949, allocations: 3 kB / 403 MB, free: 4.75 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.923e-05/0.2949, allocations: 37.95 kB / 403 MB, free: 4.707 MB / 318.1 MB Notification: Performance of pre-optimization done (n=26): time 1.483e-06/0.2949, allocations: 0 / 403 MB, free: 4.707 MB / 318.1 MB Notification: Performance of matching and sorting (n=28): time 0.001631/0.2966, allocations: 0.8109 MB / 403.8 MB, free: 4.215 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.937e-05/0.2966, allocations: 54.28 kB / 403.9 MB, free: 4.152 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001256/0.2967, allocations: 163 kB / 404 MB, free: 4.027 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.73e-05/0.2967, allocations: 30.95 kB / 404 MB, free: 3.992 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.588e-05/0.2968, allocations: 149.3 kB / 404.2 MB, free: 3.863 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.087e-05/0.2969, allocations: 107.5 kB / 404.3 MB, free: 3.777 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.903e-05/0.2969, allocations: 50.88 kB / 404.3 MB, free: 3.742 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.186e-05/0.297, allocations: 336.8 kB / 404.7 MB, free: 3.414 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001648/0.2971, allocations: 71.97 kB / 404.7 MB, free: 3.395 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001744/0.2973, allocations: 122.6 kB / 404.9 MB, free: 3.324 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003348/0.2976, allocations: 193.1 kB / 405.1 MB, free: 3.227 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.2977, allocations: 9.188 kB / 405.1 MB, free: 3.219 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000416/0.2981, allocations: 267.7 kB / 405.3 MB, free: 3.098 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.2981, allocations: 5.75 kB / 405.3 MB, free: 3.098 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.2981, allocations: 1.406 kB / 405.3 MB, free: 3.098 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.2981, allocations: 2.969 kB / 405.3 MB, free: 3.098 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000278/0.2984, allocations: 75.12 kB / 405.4 MB, free: 3.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.697e-06/0.2984, allocations: 3.594 kB / 405.4 MB, free: 3.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001245/0.2985, allocations: 16.92 kB / 405.4 MB, free: 3.082 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.543e-05/0.2985, allocations: 6.062 kB / 405.4 MB, free: 3.082 MB / 318.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.0001128/0.2986, allocations: 141.8 kB / 405.6 MB, free: 2.945 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.057e-05/0.2987, allocations: 16.62 kB / 405.6 MB, free: 2.938 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.053e-05/0.2987, allocations: 27.66 kB / 405.6 MB, free: 2.918 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.2988, allocations: 2.875 kB / 405.6 MB, free: 2.918 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/0.2988, allocations: 1.406 kB / 405.6 MB, free: 2.918 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.2988, allocations: 5.453 kB / 405.6 MB, free: 2.914 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008963/0.2997, allocations: 0.6279 MB / 406.3 MB, free: 2.484 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.2997, allocations: 1.781 kB / 406.3 MB, free: 2.484 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003256/0.3, allocations: 74.58 kB / 406.3 MB, free: 2.477 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.429e-06/0.3, allocations: 2.25 kB / 406.3 MB, free: 2.477 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.85e-05/0.3, allocations: 14.69 kB / 406.3 MB, free: 2.465 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.3, allocations: 2.531 kB / 406.3 MB, free: 2.465 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.3, allocations: 1.891 kB / 406.3 MB, free: 2.465 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000609/0.3006, allocations: 442.2 kB / 406.8 MB, free: 2.207 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.836e-05/0.3007, allocations: 17.55 kB / 406.8 MB, free: 2.195 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.116e-05/0.3007, allocations: 12.52 kB / 406.8 MB, free: 2.188 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001402/0.3008, allocations: 15.66 kB / 406.8 MB, free: 2.18 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.166e-05/0.3009, allocations: 19.41 kB / 406.8 MB, free: 2.176 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.286e-05/0.3009, allocations: 13.53 kB / 406.9 MB, free: 2.168 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.928e-05/0.301, allocations: 117.4 kB / 407 MB, free: 2.082 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.301, allocations: 0 / 407 MB, free: 2.082 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003093/0.3013, allocations: 58.81 kB / 407 MB, free: 2.074 MB / 318.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.000729/0.302, allocations: 0.9724 MB / 408 MB, free: 1.281 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000434/0.3024, allocations: 201.4 kB / 408.2 MB, free: 1.219 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.3024, allocations: 0 / 408.2 MB, free: 1.219 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001814/0.3026, allocations: 102.9 kB / 408.3 MB, free: 1.188 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004191/0.303, allocations: 51.25 kB / 408.3 MB, free: 1.16 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003235/0.3063, allocations: 2.655 MB / 411 MB, free: 15.2 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004114/0.3067, allocations: 0.753 MB / 411.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001022/0.3068, allocations: 22.97 kB / 411.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001221/0.3069, allocations: 74.83 kB / 411.9 MB, free: 14.44 MB / 334.1 MB Notification: Performance of SimCode: time 7.22e-07/0.3069, allocations: 0 / 411.9 MB, free: 14.44 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03448/0.3414, allocations: 4.82 MB / 416.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.89/11.23, allocations: 5.109 kB / 416.7 MB, free: 12.27 MB / 334.1 MB " [Timeout remaining time 649] (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: 13.794876040003146]