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.0008508/0.0008508, allocations: 91.67 kB / 20.68 MB, free: 3.871 MB / 18.57 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.0008248/0.0008248, allocations: 166 kB / 23.95 MB, free: 0.5977 MB / 18.57 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 0.8401/0.8401, allocations: 177.1 MB / 204.3 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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 1.503e-06/1.503e-06, allocations: 0 / 324.6 MB, free: 15.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.245e-05/1.396e-05, allocations: 4.531 kB / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.002209/0.002223, allocations: 2.318 MB / 326.9 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006632/0.002886, allocations: 0.596 MB / 327.5 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.432e-05/0.00298, allocations: 7.938 kB / 327.5 MB, free: 13.03 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001151/0.003095, allocations: 31.66 kB / 327.5 MB, free: 13 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001144/0.00321, allocations: 95.12 kB / 327.6 MB, free: 12.9 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001323/0.003342, allocations: 59.91 kB / 327.7 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002079/0.00355, allocations: 306.4 kB / 328 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001538/0.003704, allocations: 75.89 kB / 328 MB, free: 12.47 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001358/0.00384, allocations: 171.7 kB / 328.2 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.87e-05/0.003928, allocations: 83.77 kB / 328.3 MB, free: 12.22 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.256e-05/0.003961, allocations: 24 kB / 328.3 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.453e-05/0.003985, allocations: 24 kB / 328.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.45e-05/0.00402, allocations: 55.75 kB / 328.4 MB, free: 12.12 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.977e-05/0.00408, allocations: 95.81 kB / 328.5 MB, free: 12.03 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002266/0.004306, allocations: 306.9 kB / 328.8 MB, free: 11.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.823e-06/0.004308, allocations: 0 / 328.8 MB, free: 11.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.61e-07/0.004309, allocations: 0 / 328.8 MB, free: 11.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.417e-06/0.004312, allocations: 0 / 328.8 MB, free: 11.73 MB / 298.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.0005518/0.004864, allocations: 473.8 kB / 329.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.004901, allocations: 12.03 kB / 329.3 MB, free: 11.22 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.666e-05/0.004948, allocations: 62.73 kB / 329.3 MB, free: 11.15 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.592e-05/0.004984, allocations: 28.75 kB / 329.3 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001947/0.005179, allocations: 185.9 kB / 329.5 MB, free: 10.92 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.683e-05/0.005205, allocations: 21.03 kB / 329.5 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.379e-05/0.005239, allocations: 24.38 kB / 329.6 MB, free: 10.87 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002834/0.005523, allocations: 230.4 kB / 329.8 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.005537, allocations: 3.953 kB / 329.8 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.692e-05/0.005554, allocations: 12 kB / 329.8 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.005561, allocations: 8 kB / 329.8 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002415/0.005802, allocations: 178.5 kB / 330 MB, free: 10.45 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000717/0.006519, allocations: 0.6408 MB / 330.6 MB, free: 9.758 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003284/0.006848, allocations: 206.5 kB / 330.8 MB, free: 9.547 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001267/0.006975, allocations: 103.6 kB / 330.9 MB, free: 9.445 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.33e-05/0.006988, allocations: 4 kB / 330.9 MB, free: 9.441 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.667e-05/0.007005, allocations: 42.44 kB / 331 MB, free: 9.391 MB / 298.7 MB Notification: Performance of pre-optimization done (n=26): time 1.403e-06/0.007006, allocations: 0 / 331 MB, free: 9.391 MB / 298.7 MB Notification: Performance of matching and sorting (n=28): time 0.001277/0.008282, allocations: 0.822 MB / 331.8 MB, free: 8.516 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.015e-05/0.008313, allocations: 55.34 kB / 331.9 MB, free: 8.449 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001004/0.008413, allocations: 158.6 kB / 332 MB, free: 8.281 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.447e-05/0.008428, allocations: 29.7 kB / 332 MB, free: 8.246 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.177e-05/0.008489, allocations: 140.8 kB / 332.2 MB, free: 8.105 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.963e-05/0.008549, allocations: 115 kB / 332.3 MB, free: 7.992 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.159e-05/0.0086, allocations: 45.7 kB / 332.3 MB, free: 7.941 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.153e-05/0.008682, allocations: 334.8 kB / 332.7 MB, free: 7.605 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000106/0.008788, allocations: 79.81 kB / 332.7 MB, free: 7.527 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001184/0.008906, allocations: 112 kB / 332.8 MB, free: 7.406 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002257/0.009132, allocations: 199.3 kB / 333 MB, free: 7.199 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.009134, allocations: 7.938 kB / 333.1 MB, free: 7.191 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002728/0.009407, allocations: 253.5 kB / 333.3 MB, free: 6.938 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/0.009419, allocations: 4 kB / 333.3 MB, free: 6.934 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.009424, allocations: 96 / 333.3 MB, free: 6.934 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.158e-05/0.009435, allocations: 8 kB / 333.3 MB, free: 6.926 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001639/0.009599, allocations: 75.89 kB / 333.4 MB, free: 6.852 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.643e-06/0.009606, allocations: 3.984 kB / 333.4 MB, free: 6.848 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.457e-05/0.00967, allocations: 19.98 kB / 333.4 MB, free: 6.828 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.808e-06/0.00968, allocations: 8 kB / 333.4 MB, free: 6.82 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 8.042e-05/0.009761, allocations: 137.7 kB / 333.5 MB, free: 6.676 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.713e-05/0.009788, allocations: 19.86 kB / 333.6 MB, free: 6.656 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.64e-05/0.009824, allocations: 26.66 kB / 333.6 MB, free: 6.629 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.009828, allocations: 11.98 kB / 333.6 MB, free: 6.617 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.009832, allocations: 0 / 333.6 MB, free: 6.617 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.009835, allocations: 0 / 333.6 MB, free: 6.617 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000552/0.01039, allocations: 0.5893 MB / 334.2 MB, free: 5.973 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.01039, allocations: 3.984 kB / 334.2 MB, free: 5.969 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001693/0.01056, allocations: 75.84 kB / 334.3 MB, free: 5.895 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-06/0.01056, allocations: 4 kB / 334.3 MB, free: 5.891 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.297e-05/0.01057, allocations: 16.06 kB / 334.3 MB, free: 5.875 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.01058, allocations: 3.984 kB / 334.3 MB, free: 5.871 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.01058, allocations: 0 / 334.3 MB, free: 5.871 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004013/0.01098, allocations: 443.3 kB / 334.7 MB, free: 5.418 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.931e-05/0.011, allocations: 19.97 kB / 334.8 MB, free: 5.398 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.763e-05/0.01102, allocations: 4 kB / 334.8 MB, free: 5.395 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.839e-05/0.01108, allocations: 15.98 kB / 334.8 MB, free: 5.379 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.269e-05/0.01113, allocations: 19.91 kB / 334.8 MB, free: 5.359 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.378e-06/0.01114, allocations: 12 kB / 334.8 MB, free: 5.348 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.279e-05/0.01119, allocations: 120.6 kB / 334.9 MB, free: 5.23 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01119, allocations: 3.938 kB / 334.9 MB, free: 5.227 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001822/0.01137, allocations: 60 kB / 335 MB, free: 5.168 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.0005751/0.01195, allocations: 0.9644 MB / 335.9 MB, free: 4.168 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002706/0.01222, allocations: 191.8 kB / 336.1 MB, free: 3.98 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.01222, allocations: 4 kB / 336.1 MB, free: 3.977 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001174/0.01234, allocations: 104.9 kB / 336.2 MB, free: 3.875 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002945/0.01263, allocations: 51.78 kB / 336.3 MB, free: 3.824 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002257/0.01489, allocations: 2.525 MB / 338.8 MB, free: 1.18 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.608e-05/0.01497, allocations: 146.4 kB / 339 MB, free: 1.02 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.298e-05/0.01503, allocations: 21.89 kB / 339 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.539e-05/0.01511, allocations: 76.47 kB / 339.1 MB, free: 0.9219 MB / 298.7 MB Notification: Performance of SimCode: time 4.51e-07/0.01511, allocations: 0 / 339.1 MB, free: 0.9219 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01808/0.0332, allocations: 5.373 MB / 344.4 MB, free: 11.7 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.389/6.422, allocations: 2.922 kB / 344.4 MB, free: 11.7 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/ElasticBearing/ElasticBearing.csv","/var/lib/jenkins/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: 8.003503385931253]