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.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.001695/0.001695, allocations: 113.6 kB / 21.19 MB, free: 0.7031 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.001739/0.001739, allocations: 208.6 kB / 24.49 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.428/1.428, allocations: 207.6 MB / 235.3 MB, free: 9.996 MB / 190.1 MB " [Timeout remaining time 178] 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.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_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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002002/0.002002, allocations: 51.92 kB / 347.2 MB, free: 10.14 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2829/0.2849, allocations: 49.18 MB / 396.3 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.00363/0.2886, allocations: 2.435 MB / 398.8 MB, free: 7.301 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001037/0.2896, allocations: 0.6378 MB / 399.4 MB, free: 6.836 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001448/0.2898, allocations: 8.656 kB / 399.4 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001632/0.2899, allocations: 36.61 kB / 399.5 MB, free: 6.809 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001577/0.2901, allocations: 84.45 kB / 399.5 MB, free: 6.746 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002061/0.2903, allocations: 60.77 kB / 399.6 MB, free: 6.711 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00034/0.2906, allocations: 294.6 kB / 399.9 MB, free: 6.562 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001994/0.2908, allocations: 81.67 kB / 400 MB, free: 6.516 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000148/0.291, allocations: 117.2 kB / 400.1 MB, free: 6.461 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001754/0.2911, allocations: 124 kB / 400.2 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.268e-05/0.2912, allocations: 23.25 kB / 400.2 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.288e-05/0.2912, allocations: 23.78 kB / 400.3 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.077e-05/0.2913, allocations: 60.34 kB / 400.3 MB, free: 6.355 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000129/0.2914, allocations: 132.4 kB / 400.4 MB, free: 6.277 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004068/0.2918, allocations: 301.8 kB / 400.7 MB, free: 6.16 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.2918, allocations: 1.312 kB / 400.7 MB, free: 6.16 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.2918, allocations: 0 / 400.7 MB, free: 6.16 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.807e-06/0.2918, allocations: 0.9844 kB / 400.7 MB, free: 6.16 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.0008014/0.2926, allocations: 477.8 kB / 401.2 MB, free: 5.785 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.025e-05/0.2927, allocations: 17.89 kB / 401.2 MB, free: 5.777 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.438e-05/0.2928, allocations: 60.17 kB / 401.3 MB, free: 5.723 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.838e-05/0.2928, allocations: 27.45 kB / 401.3 MB, free: 5.711 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00032/0.2931, allocations: 185.6 kB / 401.5 MB, free: 5.539 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.533e-05/0.2932, allocations: 18.38 kB / 401.5 MB, free: 5.531 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.337e-05/0.2932, allocations: 33.58 kB / 401.5 MB, free: 5.516 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004778/0.2937, allocations: 224 kB / 401.8 MB, free: 5.414 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.998e-05/0.2937, allocations: 2.062 kB / 401.8 MB, free: 5.414 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.216e-05/0.2937, allocations: 14.5 kB / 401.8 MB, free: 5.402 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.156e-05/0.2938, allocations: 6.703 kB / 401.8 MB, free: 5.402 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004107/0.2942, allocations: 180.2 kB / 402 MB, free: 5.348 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00116/0.2953, allocations: 0.6831 MB / 402.6 MB, free: 4.91 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004825/0.2958, allocations: 216.2 kB / 402.9 MB, free: 4.809 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002171/0.296, allocations: 103.3 kB / 403 MB, free: 4.77 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.283e-05/0.296, allocations: 1.969 kB / 403 MB, free: 4.77 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.63e-05/0.2961, allocations: 37.69 kB / 403 MB, free: 4.727 MB / 318.1 MB Notification: Performance of pre-optimization done (n=26): time 2.484e-06/0.2961, allocations: 7.984 kB / 403 MB, free: 4.719 MB / 318.1 MB Notification: Performance of matching and sorting (n=28): time 0.001597/0.2977, allocations: 0.8066 MB / 403.8 MB, free: 4.23 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.305e-05/0.2977, allocations: 59.36 kB / 403.9 MB, free: 4.164 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001295/0.2978, allocations: 156.8 kB / 404 MB, free: 4.043 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.565e-05/0.2978, allocations: 30.8 kB / 404 MB, free: 4.008 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.466e-05/0.2979, allocations: 150.5 kB / 404.2 MB, free: 3.879 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.867e-05/0.298, allocations: 106.7 kB / 404.3 MB, free: 3.793 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.646e-05/0.298, allocations: 55.06 kB / 404.4 MB, free: 3.754 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.69e-05/0.2981, allocations: 333.4 kB / 404.7 MB, free: 3.43 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001626/0.2983, allocations: 77.2 kB / 404.8 MB, free: 3.406 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000177/0.2984, allocations: 118.3 kB / 404.9 MB, free: 3.34 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003449/0.2988, allocations: 198.8 kB / 405.1 MB, free: 3.234 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.2988, allocations: 1.125 kB / 405.1 MB, free: 3.234 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004519/0.2992, allocations: 271.5 kB / 405.3 MB, free: 3.109 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.2992, allocations: 5.5 kB / 405.3 MB, free: 3.109 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.2993, allocations: 1.797 kB / 405.3 MB, free: 3.109 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.98e-05/0.2993, allocations: 2.344 kB / 405.3 MB, free: 3.109 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002939/0.2996, allocations: 74.3 kB / 405.4 MB, free: 3.105 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.497e-06/0.2996, allocations: 6.766 kB / 405.4 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001158/0.2997, allocations: 11.73 kB / 405.4 MB, free: 3.098 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.644e-05/0.2997, allocations: 11.31 kB / 405.4 MB, free: 3.094 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 0.0001002/0.2998, allocations: 140.3 kB / 405.6 MB, free: 2.957 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.216e-05/0.2999, allocations: 17.73 kB / 405.6 MB, free: 2.949 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.626e-05/0.2999, allocations: 27.41 kB / 405.6 MB, free: 2.93 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.2999, allocations: 3.375 kB / 405.6 MB, free: 2.93 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.2999, allocations: 0 / 405.6 MB, free: 2.93 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.2999, allocations: 6.906 kB / 405.6 MB, free: 2.926 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008716/0.3008, allocations: 0.6271 MB / 406.3 MB, free: 2.496 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.3008, allocations: 1.125 kB / 406.3 MB, free: 2.496 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003161/0.3011, allocations: 68.06 kB / 406.3 MB, free: 2.496 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.3011, allocations: 1.469 kB / 406.3 MB, free: 2.496 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.753e-05/0.3011, allocations: 14.62 kB / 406.3 MB, free: 2.484 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.3011, allocations: 3.062 kB / 406.3 MB, free: 2.484 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.3011, allocations: 4.641 kB / 406.3 MB, free: 2.48 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006376/0.3018, allocations: 441.7 kB / 406.8 MB, free: 2.227 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.886e-05/0.3018, allocations: 18.53 kB / 406.8 MB, free: 2.215 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.287e-05/0.3018, allocations: 11.55 kB / 406.8 MB, free: 2.207 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001376/0.302, allocations: 11.75 kB / 406.8 MB, free: 2.203 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.239e-05/0.302, allocations: 23.59 kB / 406.8 MB, free: 2.195 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.3021, allocations: 6.297 kB / 406.9 MB, free: 2.195 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.334e-05/0.3021, allocations: 121 kB / 407 MB, free: 2.105 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3021, allocations: 0 / 407 MB, free: 2.105 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002949/0.3024, allocations: 61.44 kB / 407 MB, free: 2.094 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.0007827/0.3032, allocations: 0.9849 MB / 408 MB, free: 1.289 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004416/0.3037, allocations: 195.8 kB / 408.2 MB, free: 1.23 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3037, allocations: 0 / 408.2 MB, free: 1.23 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001846/0.3038, allocations: 94.84 kB / 408.3 MB, free: 1.207 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004145/0.3043, allocations: 51.12 kB / 408.3 MB, free: 1.18 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003305/0.3076, allocations: 2.664 MB / 411 MB, free: 15.21 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004572/0.308, allocations: 0.7524 MB / 411.8 MB, free: 14.51 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.237e-05/0.3081, allocations: 18.48 kB / 411.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001449/0.3083, allocations: 74.7 kB / 411.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3083, allocations: 0 / 411.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03547/0.3437, allocations: 4.818 MB / 416.7 MB, free: 12.29 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/11.75, allocations: 1.062 kB / 416.7 MB, free: 12.29 MB / 334.1 MB " [Timeout remaining time 648] (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 --stepSize=0.01 --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) [Timeout 52.5] 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) [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: 14.142610942944884]