Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 106.5 kB / 17.73 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 191 kB / 18.66 MB, free: 4.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.332/1.332, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 55.92 kB / 328 MB, free: 3.832 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08722/0.08857, allocations: 46.62 MB / 374.6 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.003708/0.09231, allocations: 2.415 MB / 377.1 MB, free: 2.672 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001163/0.09351, allocations: 0.6279 MB / 377.7 MB, free: 2.035 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002093/0.09374, allocations: 8 kB / 377.7 MB, free: 2.027 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001842/0.09396, allocations: 35.59 kB / 377.7 MB, free: 1.992 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002326/0.09421, allocations: 83.27 kB / 377.8 MB, free: 1.91 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002183/0.09443, allocations: 55.92 kB / 377.9 MB, free: 1.855 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003846/0.09483, allocations: 298.7 kB / 378.1 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000285/0.09512, allocations: 106.9 kB / 378.3 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001842/0.09532, allocations: 115.6 kB / 378.4 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001804/0.09551, allocations: 123.5 kB / 378.5 MB, free: 1.223 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.826e-05/0.09557, allocations: 24 kB / 378.5 MB, free: 1.199 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.233e-05/0.09564, allocations: 27.94 kB / 378.5 MB, free: 1.172 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.179e-05/0.09569, allocations: 55.77 kB / 378.6 MB, free: 1.117 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000127/0.09583, allocations: 131.4 kB / 378.7 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003263/0.09616, allocations: 299.2 kB / 379 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.09617, allocations: 0 / 379 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.09618, allocations: 0 / 379 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.625e-06/0.09619, allocations: 0 / 379 MB, free: 0.6953 MB / 318.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.0007964/0.09699, allocations: 0.542 MB / 379.6 MB, free: 108 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.09704, allocations: 8.031 kB / 379.6 MB, free: 100 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.481e-05/0.09712, allocations: 62.72 kB / 379.6 MB, free: 28 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.836e-05/0.09719, allocations: 28.66 kB / 379.7 MB, free: 0 / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1725/0.2697, allocations: 232.5 kB / 379.9 MB, free: 12.94 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.503e-05/0.2697, allocations: 24.84 kB / 379.9 MB, free: 12.94 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.523e-05/0.2698, allocations: 26.42 kB / 379.9 MB, free: 12.94 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004906/0.2703, allocations: 226.7 kB / 380.1 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.011e-05/0.2703, allocations: 8.062 kB / 380.2 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.315e-05/0.2704, allocations: 12.84 kB / 380.2 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.2704, allocations: 6.562 kB / 380.2 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004011/0.2708, allocations: 175.6 kB / 380.3 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001118/0.2719, allocations: 0.7514 MB / 381.1 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004884/0.2724, allocations: 221.5 kB / 381.3 MB, free: 12.54 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002137/0.2726, allocations: 112.5 kB / 381.4 MB, free: 12.53 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.237e-05/0.2727, allocations: 4.844 kB / 381.4 MB, free: 12.53 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.162e-05/0.2727, allocations: 34.91 kB / 381.5 MB, free: 12.49 MB / 318.1 MB Notification: Performance of pre-optimization done (n=26): time 2.104e-06/0.2727, allocations: 0 / 381.5 MB, free: 12.49 MB / 318.1 MB Notification: Performance of matching and sorting (n=28): time 0.001791/0.2745, allocations: 0.9586 MB / 382.4 MB, free: 11.86 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.281e-05/0.2746, allocations: 59.86 kB / 382.5 MB, free: 11.8 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001414/0.2747, allocations: 160.7 kB / 382.6 MB, free: 11.68 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.51e-05/0.2747, allocations: 30.95 kB / 382.7 MB, free: 11.64 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.2e-05/0.2748, allocations: 139.4 kB / 382.8 MB, free: 11.52 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.222e-05/0.2749, allocations: 106.3 kB / 382.9 MB, free: 11.44 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001007/0.275, allocations: 56.59 kB / 383 MB, free: 11.4 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.216e-05/0.275, allocations: 330 kB / 383.3 MB, free: 11.08 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001769/0.2752, allocations: 74.09 kB / 383.4 MB, free: 11.06 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001945/0.2754, allocations: 117.3 kB / 383.5 MB, free: 11 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003632/0.2758, allocations: 201.1 kB / 383.7 MB, free: 10.9 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2758, allocations: 1.531 kB / 383.7 MB, free: 10.9 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004488/0.2763, allocations: 266.4 kB / 383.9 MB, free: 10.78 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.2763, allocations: 7.469 kB / 383.9 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.2763, allocations: 1.094 kB / 383.9 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.919e-05/0.2763, allocations: 5.641 kB / 383.9 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002928/0.2766, allocations: 79.67 kB / 384 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.685e-06/0.2766, allocations: 2.75 kB / 384 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001216/0.2768, allocations: 13.31 kB / 384 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.436e-05/0.2768, allocations: 9.562 kB / 384 MB, free: 10.76 MB / 318.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 9.6e-05/0.2769, allocations: 139.4 kB / 384.2 MB, free: 10.63 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.211e-05/0.2769, allocations: 21.84 kB / 384.2 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.879e-05/0.277, allocations: 27.95 kB / 384.2 MB, free: 10.6 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.277, allocations: 3.438 kB / 384.2 MB, free: 10.6 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/0.277, allocations: 0 / 384.2 MB, free: 10.6 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.277, allocations: 1.969 kB / 384.2 MB, free: 10.6 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008807/0.2779, allocations: 0.6539 MB / 384.9 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.2779, allocations: 0.875 kB / 384.9 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003298/0.2783, allocations: 71.28 kB / 385 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.2783, allocations: 3.016 kB / 385 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.815e-05/0.2783, allocations: 8.828 kB / 385 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.2783, allocations: 5.719 kB / 385 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.2783, allocations: 6.875 kB / 385 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006328/0.279, allocations: 447 kB / 385.4 MB, free: 9.867 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.813e-05/0.279, allocations: 91.34 kB / 385.5 MB, free: 9.766 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.021e-05/0.2791, allocations: 12.19 kB / 385.5 MB, free: 9.758 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001402/0.2792, allocations: 10.56 kB / 385.5 MB, free: 9.754 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.63e-05/0.2793, allocations: 23.86 kB / 385.6 MB, free: 9.746 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.248e-05/0.2793, allocations: 5.375 kB / 385.6 MB, free: 9.746 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.62e-05/0.2794, allocations: 126.1 kB / 385.7 MB, free: 9.652 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2794, allocations: 0 / 385.7 MB, free: 9.652 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003084/0.2797, allocations: 57.78 kB / 385.7 MB, free: 9.645 MB / 318.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.0008363/0.2805, allocations: 0.9704 MB / 386.7 MB, free: 8.852 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004425/0.281, allocations: 207 kB / 386.9 MB, free: 8.789 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.281, allocations: 0 / 386.9 MB, free: 8.789 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001982/0.2812, allocations: 103.3 kB / 387 MB, free: 8.762 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004111/0.2816, allocations: 49.47 kB / 387.1 MB, free: 8.742 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002933/0.2846, allocations: 2.661 MB / 389.7 MB, free: 6.812 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002117/0.2848, allocations: 0.7476 MB / 390.5 MB, free: 6.117 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001026/0.2849, allocations: 22.98 kB / 390.5 MB, free: 6.113 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001058/0.285, allocations: 75.14 kB / 390.6 MB, free: 6.059 MB / 318.1 MB Notification: Performance of SimCode: time 3.8e-07/0.285, allocations: 0 / 390.6 MB, free: 6.059 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02256/0.3076, allocations: 4.614 MB / 395.2 MB, free: 5.266 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.682/7.99, allocations: 1.375 kB / 395.2 MB, free: 5.266 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_ElasticBearing_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_ElasticBearing.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/ElasticBearing/ElasticBearing.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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