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.001506/0.001506, allocations: 123.4 kB / 17.79 MB, free: 5.266 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.001615/0.001615, allocations: 200.3 kB / 20.74 MB, free: 2.32 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.438/1.438, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001591/0.001591, allocations: 51.92 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09952/0.1011, allocations: 53.33 MB / 426.3 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.003848/0.105, allocations: 2.443 MB / 428.7 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001194/0.1062, allocations: 0.6193 MB / 429.4 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001761/0.1063, allocations: 7.938 kB / 429.4 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001607/0.1065, allocations: 35.59 kB / 429.4 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000226/0.1067, allocations: 83.31 kB / 429.5 MB, free: 1.602 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001899/0.1069, allocations: 63.86 kB / 429.6 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003615/0.1073, allocations: 298.6 kB / 429.8 MB, free: 1.246 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001794/0.1074, allocations: 74.95 kB / 429.9 MB, free: 1.168 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000167/0.1076, allocations: 123.6 kB / 430 MB, free: 1.047 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001692/0.1078, allocations: 119.5 kB / 430.2 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.084e-05/0.1078, allocations: 24 kB / 430.2 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.199e-05/0.1079, allocations: 24 kB / 430.2 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.388e-05/0.1079, allocations: 51.84 kB / 430.3 MB, free: 0.832 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001814/0.1081, allocations: 139.3 kB / 430.4 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003492/0.1085, allocations: 290.8 kB / 430.7 MB, free: 420 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.1085, allocations: 4 kB / 430.7 MB, free: 416 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1085, allocations: 0 / 430.7 MB, free: 416 kB / 350.1 MB Notification: Performance of Transformations before backend: time 8.416e-06/0.1085, allocations: 3.938 kB / 430.7 MB, free: 412 kB / 350.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.1777/0.2861, allocations: 0.5361 MB / 431.2 MB, free: 11.17 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/0.2862, allocations: 9.531 kB / 431.2 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.326e-05/0.2863, allocations: 60.66 kB / 431.3 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.161e-05/0.2863, allocations: 30.31 kB / 431.3 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000311/0.2866, allocations: 240.9 kB / 431.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.685e-05/0.2866, allocations: 20.61 kB / 431.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.192e-05/0.2867, allocations: 26.16 kB / 431.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004625/0.2872, allocations: 233.1 kB / 431.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.111e-05/0.2872, allocations: 6.297 kB / 431.8 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.157e-05/0.2872, allocations: 9.969 kB / 431.8 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.818e-06/0.2872, allocations: 6.156 kB / 431.8 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003995/0.2876, allocations: 177.1 kB / 432 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001011/0.2886, allocations: 0.7527 MB / 432.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004457/0.2891, allocations: 202.2 kB / 433 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001862/0.2892, allocations: 115.6 kB / 433.1 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.566e-05/0.2893, allocations: 5.281 kB / 433.1 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.273e-05/0.2893, allocations: 35.7 kB / 433.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.342e-06/0.2893, allocations: 2.031 kB / 433.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.001456/0.2907, allocations: 0.9632 MB / 434.1 MB, free: 9.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.192e-05/0.2908, allocations: 57.36 kB / 434.1 MB, free: 9.918 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001062/0.2909, allocations: 156.6 kB / 434.3 MB, free: 9.816 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.3e-05/0.2909, allocations: 30.3 kB / 434.3 MB, free: 9.785 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.359e-05/0.2909, allocations: 140.5 kB / 434.5 MB, free: 9.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.026e-05/0.291, allocations: 111.3 kB / 434.6 MB, free: 9.609 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.54e-05/0.291, allocations: 47.05 kB / 434.6 MB, free: 9.594 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.052e-05/0.2911, allocations: 337 kB / 434.9 MB, free: 9.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001684/0.2913, allocations: 74.52 kB / 435 MB, free: 9.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001867/0.2915, allocations: 111.9 kB / 435.1 MB, free: 9.191 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003466/0.2918, allocations: 213.2 kB / 435.3 MB, free: 9.086 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.2918, allocations: 0 / 435.3 MB, free: 9.086 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004282/0.2922, allocations: 264.3 kB / 435.6 MB, free: 8.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.2922, allocations: 5.594 kB / 435.6 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.2922, allocations: 1.062 kB / 435.6 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.744e-05/0.2923, allocations: 2.25 kB / 435.6 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002767/0.2925, allocations: 75.97 kB / 435.7 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.764e-06/0.2926, allocations: 2.281 kB / 435.7 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001221/0.2927, allocations: 13.53 kB / 435.7 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.671e-05/0.2927, allocations: 11.59 kB / 435.7 MB, free: 8.969 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 9.625e-05/0.2928, allocations: 144.5 kB / 435.8 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.393e-05/0.2928, allocations: 23.23 kB / 435.9 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.987e-05/0.2929, allocations: 30.69 kB / 435.9 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.2929, allocations: 2.156 kB / 435.9 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.2929, allocations: 2.172 kB / 435.9 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.2929, allocations: 2.062 kB / 435.9 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000834/0.2937, allocations: 0.6511 MB / 436.6 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.2937, allocations: 6.172 kB / 436.6 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003185/0.2941, allocations: 72.03 kB / 436.6 MB, free: 8.355 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.2941, allocations: 1.281 kB / 436.6 MB, free: 8.355 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.694e-05/0.2941, allocations: 7.438 kB / 436.6 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.2941, allocations: 8.219 kB / 436.6 MB, free: 8.348 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.2941, allocations: 4.969 kB / 436.7 MB, free: 8.348 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006333/0.2947, allocations: 443.8 kB / 437.1 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.099e-05/0.2948, allocations: 91.64 kB / 437.2 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.898e-05/0.2948, allocations: 9.5 kB / 437.2 MB, free: 7.984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001382/0.2949, allocations: 16.67 kB / 437.2 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.743e-05/0.295, allocations: 24.56 kB / 437.2 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.335e-05/0.295, allocations: 7.484 kB / 437.2 MB, free: 7.973 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.822e-05/0.2951, allocations: 116.1 kB / 437.3 MB, free: 7.887 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2951, allocations: 0 / 437.3 MB, free: 7.887 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003173/0.2954, allocations: 62.34 kB / 437.4 MB, free: 7.875 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.0007718/0.2962, allocations: 0.9731 MB / 438.4 MB, free: 7.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004318/0.2966, allocations: 190.4 kB / 438.6 MB, free: 7.043 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2966, allocations: 0 / 438.6 MB, free: 7.043 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001942/0.2968, allocations: 104.8 kB / 438.7 MB, free: 7.012 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004109/0.2972, allocations: 43.72 kB / 438.7 MB, free: 6.992 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002996/0.3002, allocations: 2.669 MB / 441.4 MB, free: 5.059 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001735/0.3004, allocations: 0.7525 MB / 442.1 MB, free: 4.355 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.252e-05/0.3005, allocations: 21.61 kB / 442.2 MB, free: 4.355 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.953e-05/0.3006, allocations: 74.8 kB / 442.2 MB, free: 4.301 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3006, allocations: 0 / 442.2 MB, free: 4.301 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02932/0.3299, allocations: 4.575 MB / 446.8 MB, free: 3.676 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.05/8.38, allocations: 8.016 kB / 446.8 MB, free: 3.672 MB / 350.1 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing_fmu --startTime=0 --stopTime=10 --stepSize=0.01 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [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: 11.095159427961335]