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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001261/0.001261, allocations: 118.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001293/0.001293, allocations: 197.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 55.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.255/0.2562, allocations: 50.54 MB / 408.7 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.00349/0.2597, allocations: 2.44 MB / 411.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001081/0.2609, allocations: 0.6077 MB / 411.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001282/0.261, allocations: 4 kB / 411.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001458/0.2612, allocations: 43.58 kB / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001471/0.2613, allocations: 75.27 kB / 411.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001626/0.2615, allocations: 67.92 kB / 412 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002846/0.2618, allocations: 298.6 kB / 412.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001933/0.262, allocations: 110.9 kB / 412.4 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001399/0.2621, allocations: 111.6 kB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001549/0.2623, allocations: 127.4 kB / 412.6 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.624e-05/0.2623, allocations: 24 kB / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.004e-05/0.2624, allocations: 24 kB / 412.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.727e-05/0.2625, allocations: 51.84 kB / 412.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001163/0.2626, allocations: 135.3 kB / 412.8 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003323/0.2629, allocations: 296.6 kB / 413.1 MB, free: 13.15 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.2629, allocations: 0 / 413.1 MB, free: 13.15 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2629, allocations: 0 / 413.1 MB, free: 13.15 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.2629, allocations: 4 kB / 413.1 MB, free: 13.14 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.0008154/0.2638, allocations: 0.5342 MB / 413.7 MB, free: 12.56 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.2638, allocations: 16.03 kB / 413.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.637e-05/0.2639, allocations: 58.73 kB / 413.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.448e-05/0.264, allocations: 28.56 kB / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003167/0.2643, allocations: 236.5 kB / 414 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.059e-05/0.2643, allocations: 20.88 kB / 414 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.771e-05/0.2644, allocations: 35.92 kB / 414 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004366/0.2648, allocations: 228.8 kB / 414.3 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.2648, allocations: 4 kB / 414.3 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.256e-05/0.2649, allocations: 12 kB / 414.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.2649, allocations: 8 kB / 414.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000367/0.2653, allocations: 174.1 kB / 414.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001235/0.2665, allocations: 0.7577 MB / 415.2 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005678/0.2671, allocations: 217.5 kB / 415.4 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002103/0.2673, allocations: 116.8 kB / 415.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.835e-05/0.2673, allocations: 4 kB / 415.6 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.52e-05/0.2674, allocations: 42.48 kB / 415.6 MB, free: 10.5 MB / 334.1 MB Notification: Performance of pre-optimization done (n=26): time 2.214e-06/0.2674, allocations: 0 / 415.6 MB, free: 10.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.001672/0.2691, allocations: 0.9512 MB / 416.5 MB, free: 9.453 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.879e-05/0.2691, allocations: 55.39 kB / 416.6 MB, free: 9.387 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001331/0.2693, allocations: 163.7 kB / 416.8 MB, free: 9.215 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.14e-05/0.2693, allocations: 29.7 kB / 416.8 MB, free: 9.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.536e-05/0.2694, allocations: 148.5 kB / 416.9 MB, free: 9.031 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.368e-05/0.2694, allocations: 98.55 kB / 417 MB, free: 8.934 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.395e-05/0.2695, allocations: 49.7 kB / 417.1 MB, free: 8.879 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.2697, allocations: 338.8 kB / 417.4 MB, free: 8.539 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001748/0.2698, allocations: 67.97 kB / 417.5 MB, free: 8.473 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001872/0.27, allocations: 120.2 kB / 417.6 MB, free: 8.344 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003527/0.2704, allocations: 203.3 kB / 417.8 MB, free: 8.133 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.2704, allocations: 4 kB / 417.8 MB, free: 8.129 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004514/0.2709, allocations: 257.3 kB / 418 MB, free: 7.871 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.2709, allocations: 8 kB / 418.1 MB, free: 7.863 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.2709, allocations: 0 / 418.1 MB, free: 7.863 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.2709, allocations: 4 kB / 418.1 MB, free: 7.859 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002891/0.2712, allocations: 75.89 kB / 418.1 MB, free: 7.785 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.2712, allocations: 4.094 kB / 418.1 MB, free: 7.781 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001226/0.2714, allocations: 12 kB / 418.1 MB, free: 7.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.496e-05/0.2714, allocations: 8 kB / 418.2 MB, free: 7.762 MB / 334.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.0001297/0.2715, allocations: 157.6 kB / 418.3 MB, free: 7.598 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.084e-05/0.2716, allocations: 15.81 kB / 418.3 MB, free: 7.582 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.845e-05/0.2716, allocations: 26.56 kB / 418.4 MB, free: 7.559 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.2716, allocations: 0 / 418.4 MB, free: 7.559 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.2716, allocations: 8 kB / 418.4 MB, free: 7.551 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.2716, allocations: 3.984 kB / 418.4 MB, free: 7.547 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009213/0.2726, allocations: 0.6492 MB / 419 MB, free: 6.836 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.2726, allocations: 0 / 419 MB, free: 6.836 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003163/0.2729, allocations: 75.89 kB / 419.1 MB, free: 6.762 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.528e-06/0.2729, allocations: 0 / 419.1 MB, free: 6.762 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.276e-05/0.273, allocations: 16 kB / 419.1 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.273, allocations: 0 / 419.1 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.273, allocations: 4 kB / 419.1 MB, free: 6.742 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006333/0.2736, allocations: 442.7 kB / 419.5 MB, free: 6.289 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.31e-05/0.2737, allocations: 104.8 kB / 419.6 MB, free: 6.168 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.166e-05/0.2737, allocations: 12 kB / 419.7 MB, free: 6.156 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001371/0.2739, allocations: 11.98 kB / 419.7 MB, free: 6.145 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.209e-05/0.2739, allocations: 19.98 kB / 419.7 MB, free: 6.125 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.061e-05/0.2739, allocations: 4 kB / 419.7 MB, free: 6.121 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.539e-05/0.274, allocations: 115.2 kB / 419.8 MB, free: 6.008 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.274, allocations: 4 kB / 419.8 MB, free: 6.004 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002955/0.2743, allocations: 56 kB / 419.9 MB, free: 5.949 MB / 334.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.0008933/0.2752, allocations: 0.97 MB / 420.8 MB, free: 4.949 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004198/0.2757, allocations: 208 kB / 421 MB, free: 4.746 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2757, allocations: 0 / 421 MB, free: 4.746 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000181/0.2759, allocations: 107.8 kB / 421.1 MB, free: 4.641 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004048/0.2763, allocations: 32.3 kB / 421.2 MB, free: 4.609 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003266/0.2796, allocations: 2.681 MB / 423.8 MB, free: 1.812 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003322/0.2799, allocations: 0.7522 MB / 424.6 MB, free: 1.035 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.037e-05/0.28, allocations: 17.95 kB / 424.6 MB, free: 1.016 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001109/0.2801, allocations: 75.41 kB / 424.7 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2802, allocations: 0 / 424.7 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02166/0.3018, allocations: 4.606 MB / 429.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.617/7.919, allocations: 4.594 kB / 429.3 MB, free: 12.45 MB / 350.1 MB (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 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_ElasticBearing.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" 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