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.001235/0.001235, allocations: 112 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.001508/0.001508, allocations: 188.4 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.375/1.375, allocations: 225.6 MB / 252.5 MB, free: 13.07 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.001639/0.001639, allocations: 47.92 kB / 370.4 MB, free: 9.891 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2467/0.2484, allocations: 52.19 MB / 422.6 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.00396/0.2523, allocations: 2.457 MB / 425.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001099/0.2534, allocations: 0.5805 MB / 425.7 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001505/0.2536, allocations: 7.938 kB / 425.7 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001752/0.2538, allocations: 39.58 kB / 425.7 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00018/0.254, allocations: 79.33 kB / 425.8 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002151/0.2542, allocations: 55.92 kB / 425.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003851/0.2546, allocations: 310.5 kB / 426.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002048/0.2548, allocations: 79.36 kB / 426.2 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001765/0.2549, allocations: 115.6 kB / 426.3 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001801/0.2551, allocations: 123.5 kB / 426.5 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.692e-05/0.2552, allocations: 24 kB / 426.5 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.388e-05/0.2552, allocations: 24 kB / 426.5 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.357e-05/0.2553, allocations: 51.84 kB / 426.6 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000135/0.2554, allocations: 131.3 kB / 426.7 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004059/0.2558, allocations: 295.2 kB / 427 MB, free: 10.29 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.2558, allocations: 0 / 427 MB, free: 10.29 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.738e-06/0.2558, allocations: 4 kB / 427 MB, free: 10.28 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.977e-06/0.2558, allocations: 0 / 427 MB, free: 10.28 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.0008306/0.2567, allocations: 489.7 kB / 427.4 MB, free: 9.773 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.41e-05/0.2567, allocations: 8.031 kB / 427.5 MB, free: 9.766 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.691e-05/0.2568, allocations: 58.73 kB / 427.5 MB, free: 9.699 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.644e-05/0.2568, allocations: 28.75 kB / 427.5 MB, free: 9.672 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003328/0.2572, allocations: 190.6 kB / 427.7 MB, free: 9.461 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.732e-05/0.2572, allocations: 21.03 kB / 427.7 MB, free: 9.438 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.158e-05/0.2572, allocations: 27.94 kB / 427.8 MB, free: 9.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000462/0.2577, allocations: 226.1 kB / 428 MB, free: 9.188 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.188e-05/0.2577, allocations: 4 kB / 428 MB, free: 9.184 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.277e-05/0.2578, allocations: 8 kB / 428 MB, free: 9.176 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.829e-06/0.2578, allocations: 8 kB / 428 MB, free: 9.168 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003979/0.2582, allocations: 178.4 kB / 428.2 MB, free: 8.996 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001224/0.2594, allocations: 0.6985 MB / 428.9 MB, free: 8.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005061/0.2599, allocations: 202.5 kB / 429.1 MB, free: 8.043 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002209/0.2601, allocations: 104.8 kB / 429.2 MB, free: 7.938 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.833e-05/0.2601, allocations: 4 kB / 429.2 MB, free: 7.934 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.258e-05/0.2602, allocations: 38.55 kB / 429.2 MB, free: 7.887 MB / 334.1 MB Notification: Performance of pre-optimization done (n=26): time 1.894e-06/0.2602, allocations: 4 kB / 429.2 MB, free: 7.883 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.001716/0.2619, allocations: 0.8061 MB / 430 MB, free: 7.023 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.153e-05/0.2619, allocations: 55.34 kB / 430.1 MB, free: 6.957 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001738/0.2621, allocations: 162.6 kB / 430.3 MB, free: 6.781 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.529e-05/0.2621, allocations: 29.7 kB / 430.3 MB, free: 6.746 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.375e-05/0.2622, allocations: 148.7 kB / 430.4 MB, free: 6.598 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001418/0.2624, allocations: 103.1 kB / 430.5 MB, free: 6.496 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.845e-05/0.2624, allocations: 53.7 kB / 430.6 MB, free: 6.438 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.2626, allocations: 334.8 kB / 430.9 MB, free: 6.102 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001759/0.2628, allocations: 67.97 kB / 431 MB, free: 6.035 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002132/0.263, allocations: 124 kB / 431.1 MB, free: 5.902 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003849/0.2634, allocations: 207.3 kB / 431.3 MB, free: 5.688 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.2634, allocations: 0 / 431.3 MB, free: 5.688 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005446/0.2639, allocations: 261.4 kB / 431.6 MB, free: 5.426 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.117e-05/0.2639, allocations: 12.09 kB / 431.6 MB, free: 5.414 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.2639, allocations: 0 / 431.6 MB, free: 5.414 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.264, allocations: 0 / 431.6 MB, free: 5.414 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00029/0.2642, allocations: 79.91 kB / 431.6 MB, free: 5.336 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.25e-05/0.2643, allocations: 7.984 kB / 431.7 MB, free: 5.328 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000131/0.2644, allocations: 8 kB / 431.7 MB, free: 5.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.808e-05/0.2644, allocations: 12 kB / 431.7 MB, free: 5.309 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.0001511/0.2646, allocations: 142.6 kB / 431.8 MB, free: 5.16 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.799e-05/0.2646, allocations: 23.89 kB / 431.8 MB, free: 5.137 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.663e-05/0.2647, allocations: 22.66 kB / 431.9 MB, free: 5.113 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.2647, allocations: 4 kB / 431.9 MB, free: 5.109 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.2647, allocations: 0 / 431.9 MB, free: 5.109 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.2647, allocations: 3.938 kB / 431.9 MB, free: 5.105 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001005/0.2657, allocations: 0.6321 MB / 432.5 MB, free: 4.418 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.2657, allocations: 7.938 kB / 432.5 MB, free: 4.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000324/0.266, allocations: 67.91 kB / 432.6 MB, free: 4.344 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.676e-06/0.266, allocations: 0 / 432.6 MB, free: 4.344 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.509e-05/0.266, allocations: 15.92 kB / 432.6 MB, free: 4.328 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/0.266, allocations: 0 / 432.6 MB, free: 4.328 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.266, allocations: 0 / 432.6 MB, free: 4.328 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007085/0.2668, allocations: 452.4 kB / 433 MB, free: 3.867 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.942e-05/0.2668, allocations: 15.86 kB / 433 MB, free: 3.852 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.499e-05/0.2668, allocations: 15.98 kB / 433.1 MB, free: 3.836 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001421/0.267, allocations: 8 kB / 433.1 MB, free: 3.828 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.302e-05/0.267, allocations: 19.97 kB / 433.1 MB, free: 3.809 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.449e-05/0.2671, allocations: 15.97 kB / 433.1 MB, free: 3.793 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.298e-05/0.2671, allocations: 123.5 kB / 433.2 MB, free: 3.672 MB / 334.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2671, allocations: 0 / 433.2 MB, free: 3.672 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003163/0.2675, allocations: 60 kB / 433.3 MB, free: 3.613 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.001009/0.2685, allocations: 0.9682 MB / 434.2 MB, free: 2.613 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004453/0.2689, allocations: 183.9 kB / 434.4 MB, free: 2.434 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/0.2689, allocations: 8 kB / 434.4 MB, free: 2.426 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002049/0.2691, allocations: 100 kB / 434.5 MB, free: 2.328 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004218/0.2695, allocations: 35.97 kB / 434.6 MB, free: 2.293 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003683/0.2732, allocations: 2.653 MB / 437.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003865/0.2736, allocations: 0.7522 MB / 438 MB, free: 14.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001068/0.2737, allocations: 25.92 kB / 438 MB, free: 14.72 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001316/0.2739, allocations: 71.42 kB / 438.1 MB, free: 14.65 MB / 350.1 MB Notification: Performance of SimCode: time 9.51e-07/0.2739, allocations: 3.938 kB / 438.1 MB, free: 14.64 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03383/0.3077, allocations: 4.834 MB / 442.9 MB, free: 9.965 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.88/11.19, allocations: 3.938 kB / 442.9 MB, free: 9.961 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing_fmu --startTime=0 --stopTime=10 --stepSize=0.01 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] "" Variables in the reference:time,load.phi,load.w,shaft.phi,shaft.w,springDamper.phi_rel,springDamper.w_rel Variables in the result:der(housing.phi),der(housing.w),der(load.phi),der(load.w),der(shaft.phi),der(shaft.w),der(springDamper.phi_rel),der(springDamper.w_rel),fixed.flange.phi,fixed.flange.tau,fixed.phi0,housing.J,housing.a,housing.flange_a.phi,housing.flange_a.tau,housing.flange_b.phi,housing.flange_b.tau,housing.phi,housing.stateSelect,housing.w,idealGear.flange_a.phi,idealGear.flange_a.tau,idealGear.flange_b.phi,idealGear.flange_b.tau,idealGear.phi_a,idealGear.phi_b,idealGear.ratio,idealGear.support.phi,idealGear.support.tau,idealGear.useSupport,load.J,load.a,load.flange_a.phi,load.flange_a.tau,load.flange_b.phi,load.flange_b.tau,load.phi,load.stateSelect,load.w,multiSensor.flange_a.phi,multiSensor.flange_a.tau,multiSensor.flange_b.phi,multiSensor.flange_b.tau,multiSensor.power,multiSensor.tau,multiSensor.w,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,shaft.J,shaft.a,shaft.flange_a.phi,shaft.flange_a.tau,shaft.flange_b.phi,shaft.flange_b.tau,shaft.phi,shaft.stateSelect,shaft.w,spring.c,spring.flange_a.phi,spring.flange_a.tau,spring.flange_b.phi,spring.flange_b.tau,spring.phi_rel,spring.phi_rel0,spring.tau,springDamper.a_rel,springDamper.c,springDamper.d,springDamper.flange_a.phi,springDamper.flange_a.tau,springDamper.flange_b.phi,springDamper.flange_b.tau,springDamper.lossPower,springDamper.phi_nominal,springDamper.phi_rel,springDamper.phi_rel0,springDamper.stateSelect,springDamper.tau,springDamper.useHeatPort,springDamper.w_rel,time,torque.flange.phi,torque.flange.tau,torque.support.phi,torque.support.tau,torque.tau,torque.useSupport [Calling sys.exit(0), Time elapsed: 13.511065945029259]