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.001131/0.001131, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001235/0.001235, allocations: 198 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002252/0.002252, allocations: 63.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2806/0.2829, allocations: 50.54 MB / 408.7 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.004254/0.2872, allocations: 2.429 MB / 411.2 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001435/0.2887, allocations: 0.6116 MB / 411.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002616/0.2889, allocations: 7.938 kB / 411.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002079/0.2892, allocations: 35.66 kB / 411.8 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002364/0.2895, allocations: 83.27 kB / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002239/0.2897, allocations: 59.92 kB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003836/0.2901, allocations: 302.6 kB / 412.3 MB, free: 14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002382/0.2903, allocations: 114.9 kB / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002056/0.2905, allocations: 111.6 kB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002197/0.2908, allocations: 119.5 kB / 412.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.395e-05/0.2908, allocations: 24 kB / 412.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.08e-05/0.2909, allocations: 28 kB / 412.7 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.382e-05/0.291, allocations: 55.83 kB / 412.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001486/0.2911, allocations: 135.3 kB / 412.8 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003617/0.2915, allocations: 288.7 kB / 413.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.2915, allocations: 4 kB / 413.1 MB, free: 13.13 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.2915, allocations: 3.938 kB / 413.1 MB, free: 13.13 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.526e-05/0.2915, allocations: 0 / 413.1 MB, free: 13.13 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.001032/0.2926, allocations: 0.542 MB / 413.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.2926, allocations: 8.031 kB / 413.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.48e-05/0.2927, allocations: 62.72 kB / 413.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.944e-05/0.2928, allocations: 28.56 kB / 413.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000391/0.2932, allocations: 243.7 kB / 414 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.366e-05/0.2932, allocations: 24.81 kB / 414 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.618e-05/0.2933, allocations: 31.94 kB / 414.1 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004561/0.2938, allocations: 220.9 kB / 414.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.028e-05/0.2938, allocations: 8 kB / 414.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.078e-05/0.2938, allocations: 8 kB / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.2938, allocations: 8 kB / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004007/0.2942, allocations: 178.1 kB / 414.5 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001224/0.2955, allocations: 0.7538 MB / 415.2 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005047/0.296, allocations: 206.5 kB / 415.4 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002414/0.2962, allocations: 120.7 kB / 415.5 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.759e-05/0.2963, allocations: 7.938 kB / 415.6 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.558e-05/0.2963, allocations: 34.56 kB / 415.6 MB, free: 10.49 MB / 334.1 MB Notification: Performance of pre-optimization done (n=26): time 3.156e-06/0.2963, allocations: 7.984 kB / 415.6 MB, free: 10.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.001862/0.2982, allocations: 0.9473 MB / 416.5 MB, free: 9.441 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.221e-05/0.2982, allocations: 59.41 kB / 416.6 MB, free: 9.371 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001629/0.2984, allocations: 155.7 kB / 416.8 MB, free: 9.207 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.481e-05/0.2984, allocations: 33.7 kB / 416.8 MB, free: 9.168 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.2986, allocations: 144.5 kB / 416.9 MB, free: 9.023 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.375e-05/0.2986, allocations: 98.55 kB / 417 MB, free: 8.926 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.467e-05/0.2987, allocations: 57.64 kB / 417.1 MB, free: 8.863 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.2989, allocations: 334.8 kB / 417.4 MB, free: 8.527 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001868/0.2991, allocations: 75.95 kB / 417.5 MB, free: 8.453 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002018/0.2993, allocations: 108.3 kB / 417.6 MB, free: 8.336 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003946/0.2997, allocations: 211.3 kB / 417.8 MB, free: 8.117 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2997, allocations: 0 / 417.8 MB, free: 8.117 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005005/0.3002, allocations: 257.3 kB / 418 MB, free: 7.859 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.904e-05/0.3002, allocations: 6.812 kB / 418.1 MB, free: 7.855 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.3002, allocations: 0 / 418.1 MB, free: 7.855 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.3003, allocations: 4 kB / 418.1 MB, free: 7.852 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002792/0.3005, allocations: 79.98 kB / 418.1 MB, free: 7.773 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.3006, allocations: 4 kB / 418.1 MB, free: 7.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001236/0.3007, allocations: 11.98 kB / 418.1 MB, free: 7.758 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.945e-05/0.3007, allocations: 12 kB / 418.2 MB, free: 7.746 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.0001258/0.3009, allocations: 153.5 kB / 418.3 MB, free: 7.586 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.28e-05/0.3009, allocations: 15.81 kB / 418.3 MB, free: 7.57 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.236e-05/0.301, allocations: 26.56 kB / 418.4 MB, free: 7.547 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.301, allocations: 4 kB / 418.4 MB, free: 7.543 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.301, allocations: 4 kB / 418.4 MB, free: 7.539 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.301, allocations: 3.984 kB / 418.4 MB, free: 7.535 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009311/0.3019, allocations: 0.6531 MB / 419 MB, free: 6.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.3019, allocations: 0 / 419 MB, free: 6.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003213/0.3023, allocations: 75.89 kB / 419.1 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.3023, allocations: 4.062 kB / 419.1 MB, free: 6.742 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.32e-05/0.3023, allocations: 11.94 kB / 419.1 MB, free: 6.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.117e-06/0.3023, allocations: 4 kB / 419.1 MB, free: 6.727 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.3023, allocations: 0 / 419.1 MB, free: 6.727 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006957/0.303, allocations: 450.7 kB / 419.5 MB, free: 6.266 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001279/0.3032, allocations: 96.83 kB / 419.6 MB, free: 6.152 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.293e-05/0.3032, allocations: 8 kB / 419.7 MB, free: 6.145 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001414/0.3034, allocations: 15.98 kB / 419.7 MB, free: 6.129 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.414e-05/0.3034, allocations: 15.98 kB / 419.7 MB, free: 6.113 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.144e-05/0.3034, allocations: 4 kB / 419.7 MB, free: 6.109 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.211e-05/0.3035, allocations: 119.2 kB / 419.8 MB, free: 5.992 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3035, allocations: 0 / 419.8 MB, free: 5.992 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003037/0.3038, allocations: 60 kB / 419.9 MB, free: 5.934 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.000936/0.3048, allocations: 0.97 MB / 420.8 MB, free: 4.934 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004389/0.3052, allocations: 204 kB / 421 MB, free: 4.734 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3053, allocations: 0 / 421 MB, free: 4.734 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001933/0.3054, allocations: 107.8 kB / 421.1 MB, free: 4.629 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004242/0.3059, allocations: 50.44 kB / 421.2 MB, free: 4.582 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00333/0.3092, allocations: 2.663 MB / 423.8 MB, free: 1.797 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003307/0.3096, allocations: 0.7522 MB / 424.6 MB, free: 1.02 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.894e-05/0.3097, allocations: 21.94 kB / 424.6 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000111/0.3098, allocations: 71.42 kB / 424.7 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3098, allocations: 0 / 424.7 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02352/0.3333, allocations: 4.598 MB / 429.3 MB, free: 12.44 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.921/8.254, allocations: 7.688 kB / 429.3 MB, free: 12.43 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