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.00133/0.00133, allocations: 111.8 kB / 20.43 MB, free: 1.473 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.00159/0.00159, allocations: 210 kB / 23.74 MB, free: 4.691 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.442/1.442, allocations: 230.6 MB / 257.5 MB, free: 8.02 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.00152/0.00152, allocations: 43.94 kB / 377.8 MB, free: 3.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2483/0.2499, allocations: 53.37 MB / 431.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.003995/0.2539, allocations: 2.459 MB / 433.6 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001169/0.255, allocations: 0.6232 MB / 434.2 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000139/0.2552, allocations: 4 kB / 434.2 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001549/0.2553, allocations: 43.53 kB / 434.3 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001756/0.2555, allocations: 83.27 kB / 434.3 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001797/0.2557, allocations: 59.92 kB / 434.4 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003643/0.256, allocations: 298.6 kB / 434.7 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001902/0.2562, allocations: 79.98 kB / 434.8 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001515/0.2564, allocations: 107.6 kB / 434.9 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001921/0.2566, allocations: 127.4 kB / 435 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.155e-05/0.2566, allocations: 24 kB / 435 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.194e-05/0.2567, allocations: 27.94 kB / 435 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.382e-05/0.2567, allocations: 55.83 kB / 435.1 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001356/0.2568, allocations: 135.3 kB / 435.2 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003719/0.2572, allocations: 299.2 kB / 435.5 MB, free: 2.453 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.2572, allocations: 0 / 435.5 MB, free: 2.453 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2572, allocations: 0 / 435.5 MB, free: 2.453 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.046e-05/0.2572, allocations: 0 / 435.5 MB, free: 2.453 MB / 334.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.0007977/0.258, allocations: 477.7 kB / 436 MB, free: 1.957 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.2581, allocations: 11.97 kB / 436 MB, free: 1.945 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.618e-05/0.2581, allocations: 66.72 kB / 436.1 MB, free: 1.871 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.579e-05/0.2582, allocations: 32.75 kB / 436.1 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003273/0.2585, allocations: 184.4 kB / 436.3 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.475e-05/0.2585, allocations: 13.03 kB / 436.3 MB, free: 1.621 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.384e-05/0.2586, allocations: 35.94 kB / 436.3 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004526/0.2591, allocations: 226 kB / 436.6 MB, free: 1.363 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.883e-05/0.2591, allocations: 7.953 kB / 436.6 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.141e-05/0.2591, allocations: 8 kB / 436.6 MB, free: 1.348 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.691e-05/0.2591, allocations: 12 kB / 436.6 MB, free: 1.336 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004035/0.2595, allocations: 178.5 kB / 436.8 MB, free: 1.164 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001218/0.2607, allocations: 0.6908 MB / 437.4 MB, free: 436 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004816/0.2612, allocations: 198.5 kB / 437.6 MB, free: 228 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002191/0.2614, allocations: 108.8 kB / 437.7 MB, free: 116 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.513e-05/0.2614, allocations: 0 / 437.7 MB, free: 116 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.848e-05/0.2615, allocations: 38.5 kB / 437.8 MB, free: 68 kB / 334.1 MB Notification: Performance of pre-optimization done (n=26): time 1.212e-06/0.2615, allocations: 0 / 437.8 MB, free: 68 kB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.001726/0.2632, allocations: 0.8177 MB / 438.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.16e-05/0.2633, allocations: 55.41 kB / 438.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001551/0.2634, allocations: 159.8 kB / 438.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.022e-05/0.2634, allocations: 29.7 kB / 438.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.464e-05/0.2635, allocations: 140.8 kB / 439 MB, free: 14.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.335e-05/0.2636, allocations: 115 kB / 439.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.706e-05/0.2637, allocations: 45.7 kB / 439.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.2639, allocations: 338.8 kB / 439.5 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00019/0.2641, allocations: 79.89 kB / 439.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002174/0.2643, allocations: 111.4 kB / 439.7 MB, free: 14.08 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003911/0.2647, allocations: 207.2 kB / 439.9 MB, free: 13.87 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.2647, allocations: 4 kB / 439.9 MB, free: 13.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005042/0.2652, allocations: 253.5 kB / 440.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.2652, allocations: 8 kB / 440.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.2652, allocations: 0 / 440.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.2652, allocations: 7.938 kB / 440.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002991/0.2655, allocations: 75.83 kB / 440.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.816e-06/0.2655, allocations: 4 kB / 440.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000131/0.2657, allocations: 20.08 kB / 440.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.596e-05/0.2657, allocations: 8 kB / 440.2 MB, free: 13.49 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.0001349/0.2658, allocations: 141.7 kB / 440.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.265e-05/0.2659, allocations: 19.86 kB / 440.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.736e-05/0.2659, allocations: 26.66 kB / 440.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.2659, allocations: 4 kB / 440.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.2659, allocations: 4 kB / 440.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.2659, allocations: 3.984 kB / 440.4 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001034/0.267, allocations: 0.6245 MB / 441 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.267, allocations: 0 / 441 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003361/0.2673, allocations: 75.89 kB / 441.1 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.2673, allocations: 0 / 441.1 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.1e-05/0.2673, allocations: 11.94 kB / 441.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.2673, allocations: 4.062 kB / 441.1 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.2673, allocations: 4 kB / 441.1 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007455/0.2681, allocations: 446.6 kB / 441.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.995e-05/0.2681, allocations: 19.91 kB / 441.6 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.138e-05/0.2682, allocations: 8 kB / 441.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001479/0.2683, allocations: 15.98 kB / 441.6 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.426e-05/0.2684, allocations: 11.97 kB / 441.6 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.69e-05/0.2684, allocations: 12 kB / 441.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001111/0.2685, allocations: 115.2 kB / 441.8 MB, free: 11.87 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2685, allocations: 0 / 441.8 MB, free: 11.87 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000319/0.2688, allocations: 60 kB / 441.8 MB, free: 11.81 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.001081/0.2699, allocations: 0.973 MB / 442.8 MB, free: 10.81 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004778/0.2704, allocations: 193.3 kB / 443 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.2704, allocations: 0 / 443 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000211/0.2706, allocations: 103.8 kB / 443.1 MB, free: 10.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004501/0.271, allocations: 47.81 kB / 443.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003753/0.2748, allocations: 2.672 MB / 445.8 MB, free: 7.688 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003962/0.2752, allocations: 0.7483 MB / 446.5 MB, free: 6.914 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001023/0.2753, allocations: 21.94 kB / 446.6 MB, free: 6.891 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001262/0.2754, allocations: 79.34 kB / 446.6 MB, free: 6.812 MB / 350.1 MB Notification: Performance of SimCode: time 6.81e-07/0.2754, allocations: 4 kB / 446.6 MB, free: 6.809 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03618/0.3116, allocations: 4.818 MB / 451.5 MB, free: 2.145 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.39, allocations: 10.56 kB / 451.5 MB, free: 2.137 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.809234036831185]