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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001546/0.001546, allocations: 113.2 kB / 17.06 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002075/0.002076, allocations: 198.9 kB / 18.01 MB, free: 5.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001117/0.001117, allocations: 43.92 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2682/0.2693, allocations: 49.45 MB / 400.2 MB, free: 8.383 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.004124/0.2735, allocations: 2.413 MB / 402.6 MB, free: 6.355 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001297/0.2749, allocations: 0.5726 MB / 403.2 MB, free: 5.777 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002699/0.2752, allocations: 4 kB / 403.2 MB, free: 5.773 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002319/0.2754, allocations: 43.58 kB / 403.3 MB, free: 5.73 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002848/0.2757, allocations: 83.27 kB / 403.3 MB, free: 5.648 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002408/0.276, allocations: 51.94 kB / 403.4 MB, free: 5.598 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004387/0.2764, allocations: 294.6 kB / 403.7 MB, free: 5.309 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002684/0.2767, allocations: 118.8 kB / 403.8 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002411/0.277, allocations: 111.6 kB / 403.9 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002095/0.2772, allocations: 119.5 kB / 404 MB, free: 4.961 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.355e-05/0.2773, allocations: 24 kB / 404 MB, free: 4.938 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.37e-05/0.2773, allocations: 27.94 kB / 404.1 MB, free: 4.91 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.206e-05/0.2774, allocations: 55.83 kB / 404.1 MB, free: 4.855 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001562/0.2776, allocations: 139.3 kB / 404.3 MB, free: 4.719 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004334/0.278, allocations: 288.7 kB / 404.5 MB, free: 4.438 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.278, allocations: 0 / 404.5 MB, free: 4.438 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.278, allocations: 4 kB / 404.5 MB, free: 4.434 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.036e-05/0.278, allocations: 0 / 404.5 MB, free: 4.434 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.001013/0.2791, allocations: 0.542 MB / 405.1 MB, free: 3.844 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.2791, allocations: 12.03 kB / 405.1 MB, free: 3.832 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.742e-05/0.2792, allocations: 62.67 kB / 405.2 MB, free: 3.762 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.636e-05/0.2793, allocations: 28.56 kB / 405.2 MB, free: 3.734 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004099/0.2797, allocations: 238.1 kB / 405.4 MB, free: 3.465 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.409e-05/0.2798, allocations: 16.94 kB / 405.4 MB, free: 3.449 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.592e-05/0.2798, allocations: 39.84 kB / 405.5 MB, free: 3.41 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004796/0.2803, allocations: 228.8 kB / 405.7 MB, free: 3.184 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.449e-05/0.2804, allocations: 4 kB / 405.7 MB, free: 3.18 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.527e-05/0.2804, allocations: 11.98 kB / 405.7 MB, free: 3.168 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.131e-05/0.2804, allocations: 8 kB / 405.7 MB, free: 3.16 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003959/0.2808, allocations: 178.1 kB / 405.9 MB, free: 2.988 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001203/0.282, allocations: 0.7538 MB / 406.7 MB, free: 2.176 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004798/0.2825, allocations: 225 kB / 406.9 MB, free: 1.953 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000218/0.2827, allocations: 108.8 kB / 407 MB, free: 1.844 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.538e-05/0.2828, allocations: 4 kB / 407 MB, free: 1.84 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.191e-05/0.2828, allocations: 38.56 kB / 407 MB, free: 1.793 MB / 318.1 MB Notification: Performance of pre-optimization done (n=26): time 4.178e-06/0.2828, allocations: 0 / 407 MB, free: 1.793 MB / 318.1 MB Notification: Performance of matching and sorting (n=28): time 0.001893/0.2847, allocations: 0.9582 MB / 408 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.576e-05/0.2848, allocations: 55.41 kB / 408 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001727/0.285, allocations: 154.7 kB / 408.2 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.572e-05/0.285, allocations: 25.7 kB / 408.2 MB, free: 492 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000109/0.2851, allocations: 156.4 kB / 408.4 MB, free: 332 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.452e-05/0.2852, allocations: 98.55 kB / 408.5 MB, free: 232 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.169e-05/0.2853, allocations: 49.7 kB / 408.5 MB, free: 176 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.2855, allocations: 338.8 kB / 408.8 MB, free: 15.83 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001849/0.2857, allocations: 71.95 kB / 408.9 MB, free: 15.76 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001971/0.2859, allocations: 123 kB / 409 MB, free: 15.63 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003762/0.2863, allocations: 203.3 kB / 409.2 MB, free: 15.42 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.2863, allocations: 0 / 409.2 MB, free: 15.42 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000485/0.2868, allocations: 261.3 kB / 409.5 MB, free: 15.16 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.2868, allocations: 8 kB / 409.5 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.2868, allocations: 0 / 409.5 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.944e-05/0.2868, allocations: 8.094 kB / 409.5 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002906/0.2871, allocations: 71.91 kB / 409.6 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.128e-05/0.2872, allocations: 7.984 kB / 409.6 MB, free: 15.06 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001503/0.2873, allocations: 8 kB / 409.6 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.862e-05/0.2873, allocations: 12 kB / 409.6 MB, free: 15.04 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.0001426/0.2875, allocations: 141.7 kB / 409.7 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.642e-05/0.2875, allocations: 19.72 kB / 409.8 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.624e-05/0.2876, allocations: 34.55 kB / 409.8 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.2876, allocations: 0 / 409.8 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.2876, allocations: 7.938 kB / 409.8 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.2877, allocations: 0 / 409.8 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009771/0.2886, allocations: 0.6545 MB / 410.5 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.2887, allocations: 0 / 410.5 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003167/0.289, allocations: 79.95 kB / 410.5 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.289, allocations: 0 / 410.5 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.093e-05/0.289, allocations: 11.94 kB / 410.5 MB, free: 14.03 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.289, allocations: 0 / 410.5 MB, free: 14.03 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.289, allocations: 4 kB / 410.5 MB, free: 14.02 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000641/0.2897, allocations: 435.8 kB / 411 MB, free: 13.58 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.318e-05/0.2898, allocations: 96.94 kB / 411.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.348e-05/0.2898, allocations: 16 kB / 411.1 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001399/0.2899, allocations: 8 kB / 411.1 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.718e-05/0.29, allocations: 27.91 kB / 411.1 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/0.29, allocations: 4 kB / 411.1 MB, free: 13.41 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.758e-05/0.2901, allocations: 127.5 kB / 411.2 MB, free: 13.29 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2901, allocations: 0 / 411.2 MB, free: 13.29 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003236/0.2905, allocations: 56 kB / 411.3 MB, free: 13.23 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.0009567/0.2914, allocations: 0.9734 MB / 412.3 MB, free: 12.23 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004428/0.2919, allocations: 199.8 kB / 412.5 MB, free: 12.03 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2919, allocations: 0 / 412.5 MB, free: 12.03 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001875/0.2921, allocations: 116.2 kB / 412.6 MB, free: 11.92 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004456/0.2925, allocations: 50.61 kB / 412.6 MB, free: 11.87 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003117/0.2957, allocations: 2.655 MB / 415.3 MB, free: 9.094 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000288/0.296, allocations: 0.7522 MB / 416 MB, free: 8.316 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.016e-05/0.2961, allocations: 21.94 kB / 416.1 MB, free: 8.293 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001078/0.2962, allocations: 75.41 kB / 416.1 MB, free: 8.219 MB / 334.1 MB Notification: Performance of SimCode: time 1.041e-06/0.2962, allocations: 0 / 416.1 MB, free: 8.219 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02396/0.3201, allocations: 4.591 MB / 420.7 MB, free: 3.738 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.612/7.932, allocations: 10.55 kB / 420.7 MB, free: 3.73 MB / 334.1 MB (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 --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) 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) "" 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