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.001309/0.001309, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001368/0.001368, allocations: 207.6 kB / 23.73 MB, free: 4.379 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.377/1.377, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.001449/0.001449, allocations: 51.92 kB / 377.7 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.241/0.2425, allocations: 53.37 MB / 431.1 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.003776/0.2462, allocations: 2.318 MB / 433.4 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001219/0.2475, allocations: 0.5844 MB / 434 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001252/0.2476, allocations: 7.938 kB / 434 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001608/0.2477, allocations: 39.58 kB / 434 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001678/0.2479, allocations: 79.31 kB / 434.1 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001754/0.2481, allocations: 59.92 kB / 434.2 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003282/0.2484, allocations: 302.6 kB / 434.5 MB, free: 3.277 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001795/0.2486, allocations: 77.67 kB / 434.5 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001471/0.2487, allocations: 119.6 kB / 434.6 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001664/0.2489, allocations: 127.5 kB / 434.8 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.499e-05/0.2489, allocations: 20 kB / 434.8 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.702e-05/0.249, allocations: 24 kB / 434.8 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.341e-05/0.249, allocations: 51.84 kB / 434.9 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001179/0.2492, allocations: 107.5 kB / 435 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003725/0.2495, allocations: 302.7 kB / 435.3 MB, free: 2.465 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.2495, allocations: 0 / 435.3 MB, free: 2.465 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.257e-06/0.2495, allocations: 3.984 kB / 435.3 MB, free: 2.461 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.061e-06/0.2495, allocations: 0 / 435.3 MB, free: 2.461 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.0008093/0.2504, allocations: 485.7 kB / 435.7 MB, free: 1.957 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.2504, allocations: 8.031 kB / 435.8 MB, free: 1.949 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.169e-05/0.2505, allocations: 58.73 kB / 435.8 MB, free: 1.883 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.428e-05/0.2505, allocations: 28.75 kB / 435.8 MB, free: 1.855 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003143/0.2508, allocations: 194.2 kB / 436 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.551e-05/0.2509, allocations: 17.03 kB / 436 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.059e-05/0.2509, allocations: 31.94 kB / 436.1 MB, free: 1.594 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004672/0.2514, allocations: 230.1 kB / 436.3 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.092e-05/0.2514, allocations: 7.953 kB / 436.3 MB, free: 1.359 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.274e-05/0.2514, allocations: 8 kB / 436.3 MB, free: 1.352 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.2514, allocations: 8 kB / 436.3 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000406/0.2518, allocations: 174.5 kB / 436.5 MB, free: 1.176 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00114/0.253, allocations: 0.6324 MB / 437.1 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004819/0.2535, allocations: 210.5 kB / 437.3 MB, free: 288 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002155/0.2537, allocations: 108 kB / 437.4 MB, free: 180 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.483e-05/0.2537, allocations: 4 kB / 437.4 MB, free: 176 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.207e-05/0.2537, allocations: 38.5 kB / 437.5 MB, free: 128 kB / 334.1 MB Notification: Performance of pre-optimization done (n=26): time 1.753e-06/0.2537, allocations: 0 / 437.5 MB, free: 128 kB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.001871/0.2556, allocations: 0.8215 MB / 438.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.892e-05/0.2557, allocations: 59.41 kB / 438.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001573/0.2558, allocations: 151.8 kB / 438.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.63e-05/0.2558, allocations: 37.64 kB / 438.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.333e-05/0.2559, allocations: 136.8 kB / 438.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.719e-05/0.256, allocations: 115 kB / 438.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.425e-05/0.2561, allocations: 53.7 kB / 438.8 MB, free: 14.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.2563, allocations: 334.8 kB / 439.2 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001881/0.2565, allocations: 75.95 kB / 439.2 MB, free: 14.26 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002076/0.2567, allocations: 115.4 kB / 439.4 MB, free: 14.13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003948/0.2571, allocations: 203.3 kB / 439.6 MB, free: 13.92 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.163e-06/0.2571, allocations: 0 / 439.6 MB, free: 13.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004879/0.2575, allocations: 257.5 kB / 439.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.2576, allocations: 4 kB / 439.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.2576, allocations: 4 kB / 439.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.2576, allocations: 0 / 439.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003154/0.2579, allocations: 75.89 kB / 439.9 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.2579, allocations: 0 / 439.9 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000137/0.258, allocations: 16.08 kB / 439.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.912e-05/0.2581, allocations: 16 kB / 439.9 MB, free: 13.55 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.0001307/0.2582, allocations: 137.7 kB / 440.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.556e-05/0.2582, allocations: 23.86 kB / 440.1 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.978e-05/0.2583, allocations: 26.64 kB / 440.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.2583, allocations: 4 kB / 440.1 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.2583, allocations: 0 / 440.1 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.2583, allocations: 0 / 440.1 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009754/0.2593, allocations: 0.605 MB / 440.7 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.2593, allocations: 8 kB / 440.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003359/0.2596, allocations: 71.91 kB / 440.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.2596, allocations: 0 / 440.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.427e-05/0.2597, allocations: 15.92 kB / 440.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.2597, allocations: 0 / 440.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.2597, allocations: 4 kB / 440.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006996/0.2604, allocations: 446.6 kB / 441.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.896e-05/0.2604, allocations: 19.84 kB / 441.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.887e-05/0.2604, allocations: 15.98 kB / 441.3 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001455/0.2606, allocations: 8 kB / 441.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.183e-05/0.2606, allocations: 15.97 kB / 441.3 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.513e-05/0.2607, allocations: 11.98 kB / 441.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.287e-05/0.2607, allocations: 119.2 kB / 441.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2607, allocations: 3.938 kB / 441.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002937/0.261, allocations: 56 kB / 441.5 MB, free: 11.89 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.001046/0.2621, allocations: 0.973 MB / 442.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000479/0.2626, allocations: 189.3 kB / 442.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.2626, allocations: 0 / 442.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000207/0.2628, allocations: 108.1 kB / 442.8 MB, free: 10.6 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004287/0.2632, allocations: 47.84 kB / 442.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003507/0.2667, allocations: 2.656 MB / 445.5 MB, free: 7.777 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001335/0.2668, allocations: 142.5 kB / 445.6 MB, free: 7.621 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.184e-05/0.2669, allocations: 21.94 kB / 445.6 MB, free: 7.598 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001264/0.2671, allocations: 71.42 kB / 445.7 MB, free: 7.527 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2671, allocations: 0 / 445.7 MB, free: 7.527 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03181/0.2989, allocations: 5.301 MB / 451 MB, free: 2.383 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.42/10.72, allocations: 3.938 kB / 451 MB, free: 2.379 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: 12.944868779974058]