Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001624/0.001624, allocations: 114 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001816/0.001816, allocations: 215.3 kB / 23.74 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 230.5 MB / 257.4 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001974/0.001974, allocations: 67.88 kB / 377.8 MB, free: 3.016 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2461/0.248, allocations: 53.42 MB / 431.2 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.003827/0.2519, allocations: 2.461 MB / 433.6 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001214/0.2531, allocations: 0.6232 MB / 434.3 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001581/0.2532, allocations: 7.938 kB / 434.3 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001696/0.2534, allocations: 35.59 kB / 434.3 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002475/0.2537, allocations: 83.27 kB / 434.4 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002038/0.2539, allocations: 55.92 kB / 434.4 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003951/0.2543, allocations: 306.6 kB / 434.7 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001947/0.2545, allocations: 79.36 kB / 434.8 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001503/0.2546, allocations: 111.6 kB / 434.9 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001716/0.2548, allocations: 123.4 kB / 435 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.386e-05/0.2548, allocations: 24 kB / 435.1 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.447e-05/0.2549, allocations: 24 kB / 435.1 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.422e-05/0.2549, allocations: 55.83 kB / 435.1 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001346/0.2551, allocations: 135.3 kB / 435.3 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003635/0.2554, allocations: 299.2 kB / 435.6 MB, free: 2.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.2554, allocations: 0 / 435.6 MB, free: 2.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2554, allocations: 0 / 435.6 MB, free: 2.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.046e-05/0.2554, allocations: 4 kB / 435.6 MB, free: 2.266 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.0007869/0.2562, allocations: 485.7 kB / 436 MB, free: 1.762 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.2563, allocations: 8.031 kB / 436.1 MB, free: 1.754 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.025e-05/0.2563, allocations: 58.73 kB / 436.1 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.422e-05/0.2564, allocations: 28.75 kB / 436.1 MB, free: 1.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000317/0.2567, allocations: 186.1 kB / 436.3 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.456e-05/0.2567, allocations: 21.03 kB / 436.3 MB, free: 1.434 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.058e-05/0.2568, allocations: 27.94 kB / 436.4 MB, free: 1.406 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000455/0.2572, allocations: 230 kB / 436.6 MB, free: 1.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.363e-05/0.2573, allocations: 7.953 kB / 436.6 MB, free: 1.172 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.246e-05/0.2573, allocations: 8 kB / 436.6 MB, free: 1.164 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.2573, allocations: 8 kB / 436.6 MB, free: 1.156 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003912/0.2577, allocations: 174.5 kB / 436.8 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001193/0.2589, allocations: 0.6986 MB / 437.5 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000477/0.2593, allocations: 202.5 kB / 437.7 MB, free: 36 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002351/0.2596, allocations: 104.8 kB / 437.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.679e-05/0.2596, allocations: 4 kB / 437.8 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.832e-05/0.2596, allocations: 38.5 kB / 437.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.382e-06/0.2596, allocations: 4 kB / 437.8 MB, free: 15.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.001724/0.2614, allocations: 0.8156 MB / 438.6 MB, free: 15 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.97e-05/0.2614, allocations: 51.41 kB / 438.7 MB, free: 14.94 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001574/0.2616, allocations: 163.8 kB / 438.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.524e-05/0.2616, allocations: 29.7 kB / 438.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/0.2617, allocations: 140.8 kB / 439 MB, free: 14.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.197e-05/0.2618, allocations: 115 kB / 439.1 MB, free: 14.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.792e-05/0.2619, allocations: 49.7 kB / 439.2 MB, free: 14.42 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.262, allocations: 334.8 kB / 439.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001862/0.2622, allocations: 79.89 kB / 439.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002096/0.2624, allocations: 104.3 kB / 439.7 MB, free: 13.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004077/0.2628, allocations: 216.1 kB / 439.9 MB, free: 13.67 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.2628, allocations: 0 / 439.9 MB, free: 13.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005108/0.2633, allocations: 253.5 kB / 440.2 MB, free: 13.42 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.2634, allocations: 12.09 kB / 440.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.2634, allocations: 0 / 440.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.2634, allocations: 3.938 kB / 440.2 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002927/0.2637, allocations: 79.89 kB / 440.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.2637, allocations: 7.938 kB / 440.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001433/0.2638, allocations: 11.98 kB / 440.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.837e-05/0.2638, allocations: 12 kB / 440.3 MB, free: 13.29 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.0001446/0.264, allocations: 141.7 kB / 440.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.858e-05/0.264, allocations: 23.86 kB / 440.4 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.595e-05/0.2641, allocations: 22.66 kB / 440.5 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.2641, allocations: 4 kB / 440.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.2641, allocations: 0 / 440.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.233e-06/0.2641, allocations: 3.984 kB / 440.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001041/0.2652, allocations: 0.6225 MB / 441.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.86e-06/0.2652, allocations: 4 kB / 441.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003348/0.2655, allocations: 71.89 kB / 441.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.2655, allocations: 0 / 441.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.327e-05/0.2655, allocations: 11.94 kB / 441.2 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.2655, allocations: 0 / 441.2 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.2655, allocations: 0 / 441.2 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007254/0.2663, allocations: 450.6 kB / 441.6 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.57e-05/0.2663, allocations: 19.95 kB / 441.6 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.233e-05/0.2663, allocations: 7.938 kB / 441.6 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001438/0.2665, allocations: 11.94 kB / 441.7 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.327e-05/0.2665, allocations: 27.95 kB / 441.7 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.177e-05/0.2665, allocations: 4 kB / 441.7 MB, free: 11.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001036/0.2667, allocations: 119.2 kB / 441.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2667, allocations: 0 / 441.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003008/0.267, allocations: 60 kB / 441.9 MB, free: 11.62 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.00105/0.268, allocations: 0.9736 MB / 442.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000465/0.2685, allocations: 188.1 kB / 443 MB, free: 10.44 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2685, allocations: 192 / 443 MB, free: 10.44 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002087/0.2687, allocations: 111.7 kB / 443.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004345/0.2691, allocations: 46.28 kB / 443.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003732/0.2728, allocations: 2.66 MB / 445.8 MB, free: 7.512 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004279/0.2733, allocations: 0.7522 MB / 446.6 MB, free: 6.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.458e-05/0.2734, allocations: 29.86 kB / 446.6 MB, free: 6.699 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001242/0.2735, allocations: 75.41 kB / 446.7 MB, free: 6.625 MB / 350.1 MB Notification: Performance of SimCode: time 6.51e-07/0.2735, allocations: 4 kB / 446.7 MB, free: 6.621 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03488/0.3084, allocations: 4.817 MB / 451.5 MB, free: 1.926 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.75/11.06, allocations: 17.86 kB / 451.5 MB, free: 1.918 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_ElasticBearing_fmu --startTime=0 --stopTime=10 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_ElasticBearing.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.454466598806903]