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.001263/0.001263, allocations: 120.1 kB / 18.49 MB, free: 4.562 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.001369/0.001369, allocations: 215.1 kB / 21.45 MB, free: 1.617 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.398/1.398, allocations: 230.6 MB / 254.8 MB, free: 15.27 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001484, allocations: 47.94 kB / 373.7 MB, free: 10.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09235/0.09383, allocations: 53.33 MB / 427 MB, free: 4.836 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.004111/0.09794, allocations: 2.442 MB / 429.5 MB, free: 2.383 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001246/0.09919, allocations: 0.6154 MB / 430.1 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001904/0.09938, allocations: 7.938 kB / 430.1 MB, free: 1.754 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001808/0.09956, allocations: 39.58 kB / 430.1 MB, free: 1.715 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002326/0.09979, allocations: 87.27 kB / 430.2 MB, free: 1.629 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002096/0.1, allocations: 51.94 kB / 430.3 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004007/0.1004, allocations: 306.6 kB / 430.6 MB, free: 1.277 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001993/0.1006, allocations: 74.95 kB / 430.6 MB, free: 1.199 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001878/0.1008, allocations: 119.6 kB / 430.7 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001775/0.101, allocations: 119.5 kB / 430.9 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.546e-05/0.101, allocations: 24 kB / 430.9 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.781e-05/0.1011, allocations: 24 kB / 430.9 MB, free: 0.918 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.53e-05/0.1011, allocations: 51.84 kB / 431 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001478/0.1013, allocations: 139.3 kB / 431.1 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000379/0.1016, allocations: 298.8 kB / 431.4 MB, free: 448 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1016, allocations: 0 / 431.4 MB, free: 448 kB / 350.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.1017, allocations: 4 kB / 431.4 MB, free: 444 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.016e-05/0.1017, allocations: 0 / 431.4 MB, free: 444 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.0009006/0.1026, allocations: 0.534 MB / 431.9 MB, free: 15.85 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.1026, allocations: 12.03 kB / 431.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.391e-05/0.1026, allocations: 8.75 kB / 431.9 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.457e-05/0.1027, allocations: 58.73 kB / 432 MB, free: 15.76 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.206e-05/0.1028, allocations: 40.67 kB / 432 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003609/0.1031, allocations: 240.5 kB / 432.3 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.723e-05/0.1031, allocations: 28.67 kB / 432.3 MB, free: 15.42 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.098e-05/0.1032, allocations: 28 kB / 432.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004998/0.1037, allocations: 224.9 kB / 432.5 MB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.096e-05/0.1037, allocations: 3.953 kB / 432.6 MB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.162e-05/0.1037, allocations: 19.94 kB / 432.6 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.895e-06/0.1038, allocations: 4 kB / 432.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004309/0.1042, allocations: 178.1 kB / 432.7 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001267/0.1055, allocations: 0.7425 MB / 433.5 MB, free: 14.17 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005072/0.106, allocations: 210.4 kB / 433.7 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002393/0.1062, allocations: 112.8 kB / 433.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.105e-05/0.1062, allocations: 4 kB / 433.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.639e-05/0.1062, allocations: 30.56 kB / 433.8 MB, free: 13.8 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.944e-06/0.1062, allocations: 0 / 433.8 MB, free: 13.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=28): time 0.001902/0.1081, allocations: 0.9785 MB / 434.8 MB, free: 12.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.437e-05/0.1082, allocations: 59.34 kB / 434.9 MB, free: 12.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001568/0.1084, allocations: 159.1 kB / 435 MB, free: 12.49 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.461e-05/0.1084, allocations: 33.7 kB / 435.1 MB, free: 12.45 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.339e-05/0.1085, allocations: 136.8 kB / 435.2 MB, free: 12.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.46e-05/0.1086, allocations: 111 kB / 435.3 MB, free: 12.21 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.445e-05/0.1087, allocations: 49.7 kB / 435.4 MB, free: 12.15 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.1088, allocations: 334.8 kB / 435.7 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001989/0.109, allocations: 75.95 kB / 435.8 MB, free: 11.74 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002111/0.1092, allocations: 111.4 kB / 435.9 MB, free: 11.62 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004038/0.1096, allocations: 203.3 kB / 436.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1096, allocations: 4 kB / 436.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005341/0.1102, allocations: 265.4 kB / 436.3 MB, free: 11.14 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.1102, allocations: 4 kB / 436.3 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.1102, allocations: 0 / 436.3 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.1102, allocations: 4 kB / 436.3 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003025/0.1105, allocations: 75.89 kB / 436.4 MB, free: 11.06 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.622e-06/0.1105, allocations: 96 / 436.4 MB, free: 11.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001403/0.1107, allocations: 20 kB / 436.4 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.631e-05/0.1107, allocations: 7.984 kB / 436.4 MB, free: 11.03 MB / 366.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.0001386/0.1108, allocations: 141.7 kB / 436.6 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.055e-05/0.1109, allocations: 19.86 kB / 436.6 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.386e-05/0.1109, allocations: 26.56 kB / 436.6 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.1109, allocations: 4 kB / 436.6 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.111, allocations: 0 / 436.6 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/0.111, allocations: 3.984 kB / 436.6 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001088/0.112, allocations: 0.6525 MB / 437.3 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.1121, allocations: 0 / 437.3 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003444/0.1124, allocations: 71.95 kB / 437.4 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.241e-06/0.1124, allocations: 7.938 kB / 437.4 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2e-05/0.1124, allocations: 12 kB / 437.4 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.873e-06/0.1124, allocations: 7.938 kB / 437.4 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.644e-06/0.1124, allocations: 0 / 437.4 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007659/0.1132, allocations: 438.4 kB / 437.8 MB, free: 9.57 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.659e-05/0.1133, allocations: 97.14 kB / 437.9 MB, free: 9.457 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.788e-05/0.1133, allocations: 12 kB / 437.9 MB, free: 9.445 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001486/0.1135, allocations: 15.98 kB / 437.9 MB, free: 9.43 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.928e-05/0.1135, allocations: 11.98 kB / 437.9 MB, free: 9.418 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.421e-05/0.1135, allocations: 11.94 kB / 438 MB, free: 9.406 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001026/0.1136, allocations: 120.4 kB / 438.1 MB, free: 9.289 MB / 366.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1136, allocations: 0 / 438.1 MB, free: 9.289 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000323/0.114, allocations: 56 kB / 438.1 MB, free: 9.234 MB / 366.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.001096/0.1151, allocations: 0.985 MB / 439.1 MB, free: 8.219 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004929/0.1156, allocations: 195.8 kB / 439.3 MB, free: 8.027 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.1156, allocations: 0 / 439.3 MB, free: 8.027 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000208/0.1158, allocations: 92.98 kB / 439.4 MB, free: 7.938 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000435/0.1162, allocations: 44.28 kB / 439.4 MB, free: 7.895 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003812/0.12, allocations: 2.675 MB / 442.1 MB, free: 5.102 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004093/0.1204, allocations: 0.7522 MB / 442.9 MB, free: 4.32 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.388e-05/0.1205, allocations: 17.95 kB / 442.9 MB, free: 4.301 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001309/0.1206, allocations: 75.41 kB / 443 MB, free: 4.227 MB / 366.1 MB Notification: Performance of SimCode: time 8.51e-07/0.1206, allocations: 0 / 443 MB, free: 4.227 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2505/0.3711, allocations: 4.601 MB / 447.6 MB, free: 25.08 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.124/8.495, allocations: 7.375 kB / 447.6 MB, free: 25.08 MB / 366.1 MB " [Timeout remaining time 651] (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] "Warning: Resultfile and Reference have different end time points! Reffile[2002]=10.000000 File[1331]=6.660000 " [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: 10.887339712993708]