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.001259/0.001259, allocations: 115.7 kB / 18.49 MB, free: 4.566 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.001272/0.001272, allocations: 190.6 kB / 21.43 MB, free: 1.641 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.413/1.413, allocations: 225.6 MB / 249.8 MB, free: 3.609 MB / 190.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001678/0.001678, allocations: 47.92 kB / 366.3 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09666/0.09834, allocations: 52.13 MB / 418.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.003963/0.1023, allocations: 2.449 MB / 420.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001196/0.1035, allocations: 0.5843 MB / 421.5 MB, free: 9.574 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002519/0.1038, allocations: 4 kB / 421.5 MB, free: 9.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002343/0.104, allocations: 35.59 kB / 421.5 MB, free: 9.535 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002651/0.1043, allocations: 79.27 kB / 421.6 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002289/0.1045, allocations: 63.91 kB / 421.7 MB, free: 9.395 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004321/0.1049, allocations: 290.7 kB / 422 MB, free: 9.109 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002206/0.1051, allocations: 82.89 kB / 422 MB, free: 9.023 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001738/0.1053, allocations: 111.6 kB / 422.2 MB, free: 8.914 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00019/0.1055, allocations: 127.5 kB / 422.3 MB, free: 8.789 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.245e-05/0.1055, allocations: 24 kB / 422.3 MB, free: 8.766 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.398e-05/0.1056, allocations: 27.94 kB / 422.3 MB, free: 8.738 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.759e-05/0.1057, allocations: 55.77 kB / 422.4 MB, free: 8.684 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001487/0.1058, allocations: 131.4 kB / 422.5 MB, free: 8.555 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004125/0.1062, allocations: 298.7 kB / 422.8 MB, free: 8.262 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.1062, allocations: 0 / 422.8 MB, free: 8.262 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1062, allocations: 0 / 422.8 MB, free: 8.262 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.376e-06/0.1062, allocations: 4 kB / 422.8 MB, free: 8.258 MB / 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.001071/0.1073, allocations: 0.5495 MB / 423.4 MB, free: 7.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.1074, allocations: 8.031 kB / 423.4 MB, free: 7.652 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.614e-05/0.1074, allocations: 8.75 kB / 423.4 MB, free: 7.645 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.082e-05/0.1074, allocations: 58.73 kB / 423.4 MB, free: 7.578 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.049e-05/0.1075, allocations: 28.75 kB / 423.5 MB, free: 7.551 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003926/0.1079, allocations: 248.5 kB / 423.7 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.652e-05/0.1079, allocations: 20.69 kB / 423.7 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.478e-05/0.108, allocations: 28 kB / 423.8 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004752/0.1085, allocations: 224.8 kB / 424 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/0.1085, allocations: 4 kB / 424 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.284e-05/0.1085, allocations: 8 kB / 424 MB, free: 6.988 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.778e-06/0.1085, allocations: 8 kB / 424 MB, free: 6.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004222/0.1089, allocations: 182.1 kB / 424.2 MB, free: 6.801 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001209/0.1101, allocations: 0.7502 MB / 424.9 MB, free: 5.996 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005372/0.1107, allocations: 207.2 kB / 425.1 MB, free: 5.785 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002276/0.1109, allocations: 104.8 kB / 425.2 MB, free: 5.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.156e-05/0.1109, allocations: 3.938 kB / 425.2 MB, free: 5.676 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.164e-05/0.111, allocations: 38.5 kB / 425.3 MB, free: 5.629 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.964e-06/0.111, allocations: 0 / 425.3 MB, free: 5.629 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.001849/0.1128, allocations: 0.9605 MB / 426.2 MB, free: 4.578 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.758e-05/0.1129, allocations: 55.41 kB / 426.3 MB, free: 4.512 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001672/0.113, allocations: 155.8 kB / 426.4 MB, free: 4.348 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.501e-05/0.1131, allocations: 29.7 kB / 426.5 MB, free: 4.312 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.1132, allocations: 156.7 kB / 426.6 MB, free: 4.156 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.254e-05/0.1132, allocations: 111 kB / 426.7 MB, free: 4.047 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.044e-05/0.1133, allocations: 45.7 kB / 426.8 MB, free: 3.996 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.1135, allocations: 330.8 kB / 427.1 MB, free: 3.664 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001983/0.1137, allocations: 75.95 kB / 427.2 MB, free: 3.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002236/0.1139, allocations: 127 kB / 427.3 MB, free: 3.453 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004103/0.1143, allocations: 211.3 kB / 427.5 MB, free: 3.234 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1143, allocations: 0 / 427.5 MB, free: 3.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000512/0.1148, allocations: 261.4 kB / 427.7 MB, free: 2.973 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.1148, allocations: 8 kB / 427.8 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.1149, allocations: 3.984 kB / 427.8 MB, free: 2.961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.1149, allocations: 0 / 427.8 MB, free: 2.961 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002929/0.1152, allocations: 75.91 kB / 427.8 MB, free: 2.887 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.1152, allocations: 4 kB / 427.8 MB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001279/0.1153, allocations: 11.98 kB / 427.8 MB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.659e-05/0.1153, allocations: 8.094 kB / 427.9 MB, free: 2.863 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 0.0001391/0.1155, allocations: 141.7 kB / 428 MB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.502e-05/0.1155, allocations: 19.91 kB / 428 MB, free: 2.695 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.871e-05/0.1156, allocations: 26.55 kB / 428 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-06/0.1156, allocations: 7.984 kB / 428 MB, free: 2.664 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.1156, allocations: 0 / 428 MB, free: 2.664 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.227e-06/0.1156, allocations: 0 / 428 MB, free: 2.664 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001015/0.1166, allocations: 0.6564 MB / 428.7 MB, free: 1.945 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.1166, allocations: 4 kB / 428.7 MB, free: 1.941 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003381/0.1169, allocations: 71.91 kB / 428.8 MB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.371e-06/0.1169, allocations: 3.984 kB / 428.8 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.03e-05/0.117, allocations: 11.94 kB / 428.8 MB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.117, allocations: 0 / 428.8 MB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.117, allocations: 0 / 428.8 MB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007327/0.1177, allocations: 447.1 kB / 429.2 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.653e-05/0.1178, allocations: 92.97 kB / 429.3 MB, free: 1.289 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.429e-05/0.1178, allocations: 15.98 kB / 429.3 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001549/0.118, allocations: 15.94 kB / 429.4 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.541e-05/0.118, allocations: 15.97 kB / 429.4 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.825e-05/0.118, allocations: 12 kB / 429.4 MB, free: 1.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.612e-05/0.1181, allocations: 119.2 kB / 429.5 MB, free: 1.113 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1181, allocations: 3.938 kB / 429.5 MB, free: 1.109 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003086/0.1184, allocations: 60 kB / 429.6 MB, free: 1.051 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.001048/0.1195, allocations: 0.9843 MB / 430.5 MB, free: 36 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004838/0.12, allocations: 201.3 kB / 430.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.12, allocations: 0 / 430.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002129/0.1202, allocations: 103.8 kB / 430.8 MB, free: 15.74 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004145/0.1206, allocations: 40.23 kB / 430.9 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003638/0.1242, allocations: 2.66 MB / 433.5 MB, free: 12.92 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003845/0.1246, allocations: 0.7522 MB / 434.3 MB, free: 12.14 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.407e-05/0.1247, allocations: 21.95 kB / 434.3 MB, free: 12.12 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001224/0.1248, allocations: 75.41 kB / 434.4 MB, free: 12.04 MB / 366.1 MB Notification: Performance of SimCode: time 7.61e-07/0.1248, allocations: 0 / 434.4 MB, free: 12.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02473/0.1496, allocations: 4.614 MB / 439 MB, free: 7.566 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.088/8.237, allocations: 12.67 kB / 439 MB, free: 7.555 MB / 366.1 MB " [Timeout remaining time 652] (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] "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.778321040968876]