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.0008518/0.0008518, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008424/0.0008424, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.8539/0.8539, allocations: 173.3 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] 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 1.553e-06/1.553e-06, allocations: 0 / 318.4 MB, free: 6.363 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.951e-05/2.106e-05, allocations: 4.672 kB / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.003426/0.003447, allocations: 2.29 MB / 320.7 MB, free: 4.051 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009902/0.004438, allocations: 0.5608 MB / 321.3 MB, free: 3.484 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001407/0.004578, allocations: 4 kB / 321.3 MB, free: 3.48 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001465/0.004725, allocations: 43.53 kB / 321.3 MB, free: 3.438 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001777/0.004903, allocations: 87.2 kB / 321.4 MB, free: 3.352 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001742/0.005077, allocations: 63.84 kB / 321.5 MB, free: 3.289 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002956/0.005372, allocations: 310.4 kB / 321.8 MB, free: 2.984 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001779/0.00555, allocations: 75.34 kB / 321.8 MB, free: 2.91 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002235/0.005774, allocations: 175.6 kB / 322 MB, free: 2.738 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001278/0.005902, allocations: 83.77 kB / 322.1 MB, free: 2.656 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.419e-05/0.005946, allocations: 24 kB / 322.1 MB, free: 2.633 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.516e-05/0.005981, allocations: 28 kB / 322.1 MB, free: 2.605 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.549e-05/0.006026, allocations: 55.75 kB / 322.2 MB, free: 2.551 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.854e-05/0.006115, allocations: 91.83 kB / 322.3 MB, free: 2.461 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003212/0.006436, allocations: 303 kB / 322.6 MB, free: 2.164 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.006439, allocations: 0 / 322.6 MB, free: 2.164 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.006441, allocations: 0 / 322.6 MB, free: 2.164 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.006447, allocations: 0 / 322.6 MB, free: 2.164 MB / 282.7 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.0006583/0.007105, allocations: 473.7 kB / 323.1 MB, free: 1.672 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.007144, allocations: 16.92 kB / 323.1 MB, free: 1.656 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.7e-05/0.007201, allocations: 58.73 kB / 323.1 MB, free: 1.59 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.054e-05/0.007252, allocations: 32.75 kB / 323.2 MB, free: 1.559 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002718/0.007524, allocations: 178 kB / 323.3 MB, free: 1.359 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.267e-05/0.007546, allocations: 21.03 kB / 323.4 MB, free: 1.336 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.557e-05/0.007592, allocations: 28.31 kB / 323.4 MB, free: 1.309 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004102/0.008002, allocations: 234.4 kB / 323.6 MB, free: 1.074 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.932e-05/0.008021, allocations: 3.953 kB / 323.6 MB, free: 1.07 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.179e-05/0.008043, allocations: 12 kB / 323.6 MB, free: 1.059 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.008051, allocations: 12 kB / 323.6 MB, free: 1.047 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003585/0.008409, allocations: 174.5 kB / 323.8 MB, free: 0.8789 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007227/0.009132, allocations: 0.6323 MB / 324.4 MB, free: 204 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003032/0.009435, allocations: 206.6 kB / 324.6 MB, free: 15.98 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001261/0.009561, allocations: 104.8 kB / 324.7 MB, free: 15.88 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.256e-05/0.009574, allocations: 4 kB / 324.7 MB, free: 15.88 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.617e-05/0.00959, allocations: 42.44 kB / 324.8 MB, free: 15.82 MB / 298.7 MB Notification: Performance of pre-optimization done (n=26): time 1.102e-06/0.009591, allocations: 0 / 324.8 MB, free: 15.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=28): time 0.0009548/0.01055, allocations: 0.816 MB / 325.6 MB, free: 14.95 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.321e-05/0.01057, allocations: 51.41 kB / 325.7 MB, free: 14.89 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.854e-05/0.01066, allocations: 158.6 kB / 325.8 MB, free: 14.72 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.262e-05/0.01067, allocations: 29.7 kB / 325.8 MB, free: 14.69 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.674e-05/0.01073, allocations: 148.7 kB / 326 MB, free: 14.54 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.695e-05/0.01077, allocations: 111 kB / 326.1 MB, free: 14.43 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.658e-05/0.01082, allocations: 41.72 kB / 326.1 MB, free: 14.39 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.41e-05/0.01089, allocations: 338.8 kB / 326.5 MB, free: 14.05 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.653e-05/0.01099, allocations: 75.95 kB / 326.5 MB, free: 13.97 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001146/0.01111, allocations: 119.2 kB / 326.7 MB, free: 13.84 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002116/0.01132, allocations: 203.3 kB / 326.9 MB, free: 13.63 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.01132, allocations: 7.938 kB / 326.9 MB, free: 13.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005115/0.01183, allocations: 257.5 kB / 327.1 MB, free: 13.37 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.628e-06/0.01184, allocations: 4 kB / 327.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.687e-06/0.01184, allocations: 0 / 327.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.647e-06/0.01185, allocations: 4 kB / 327.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000141/0.01199, allocations: 75.89 kB / 327.2 MB, free: 13.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.067e-06/0.012, allocations: 0 / 327.2 MB, free: 13.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.982e-05/0.01206, allocations: 15.98 kB / 327.2 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.367e-06/0.01207, allocations: 12 kB / 327.2 MB, free: 13.26 MB / 298.7 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 7.45e-05/0.01214, allocations: 141.7 kB / 327.4 MB, free: 13.11 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.272e-05/0.01216, allocations: 23.89 kB / 327.4 MB, free: 13.09 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.356e-05/0.0122, allocations: 26.66 kB / 327.4 MB, free: 13.06 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.0122, allocations: 7.984 kB / 327.4 MB, free: 13.05 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.0122, allocations: 0 / 327.4 MB, free: 13.05 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.01221, allocations: 0 / 327.4 MB, free: 13.05 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005431/0.01275, allocations: 0.5992 MB / 328 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.01275, allocations: 0 / 328 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001564/0.01291, allocations: 75.97 kB / 328.1 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.01291, allocations: 7.938 kB / 328.1 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.082e-05/0.01292, allocations: 8 kB / 328.1 MB, free: 12.31 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.01292, allocations: 7.984 kB / 328.1 MB, free: 12.3 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.01292, allocations: 0 / 328.1 MB, free: 12.3 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000373/0.0133, allocations: 439.3 kB / 328.5 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.606e-05/0.01331, allocations: 15.91 kB / 328.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.894e-05/0.01333, allocations: 12 kB / 328.6 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.739e-05/0.0134, allocations: 15.98 kB / 328.6 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.83e-05/0.01343, allocations: 19.91 kB / 328.6 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.823e-06/0.01344, allocations: 8 kB / 328.6 MB, free: 11.78 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.258e-05/0.01349, allocations: 120.6 kB / 328.7 MB, free: 11.66 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01349, allocations: 0 / 328.7 MB, free: 11.66 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001792/0.01367, allocations: 60 kB / 328.8 MB, free: 11.61 MB / 298.7 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.0005158/0.01418, allocations: 0.9683 MB / 329.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002495/0.01443, allocations: 192.3 kB / 329.9 MB, free: 10.42 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.01444, allocations: 4 kB / 329.9 MB, free: 10.41 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001075/0.01454, allocations: 107.7 kB / 330.1 MB, free: 10.31 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002705/0.01481, allocations: 57.53 kB / 330.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001991/0.0168, allocations: 2.531 MB / 332.6 MB, free: 7.602 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.585e-05/0.01689, allocations: 142.5 kB / 332.8 MB, free: 7.441 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.981e-05/0.01695, allocations: 17.95 kB / 332.8 MB, free: 7.426 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.223e-05/0.01703, allocations: 76.47 kB / 332.9 MB, free: 7.352 MB / 298.7 MB Notification: Performance of SimCode: time 3.71e-07/0.01703, allocations: 0 / 332.9 MB, free: 7.352 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02012/0.03716, allocations: 5.357 MB / 338.2 MB, free: 2.156 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.579/6.616, allocations: 3.922 kB / 338.2 MB, free: 2.152 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/ElasticBearing/ElasticBearing.csv","/var/lib/jenkins/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: 8.232428847812116]