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.001641/0.001641, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 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.002085/0.002085, allocations: 213 kB / 24.47 MB, free: 3.547 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.37/1.37, allocations: 207.7 MB / 235.3 MB, free: 9.801 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.001911/0.001911, allocations: 53.8 kB / 347.2 MB, free: 9.898 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2481/0.2501, allocations: 49.16 MB / 396.3 MB, free: 8.887 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.003058/0.2531, allocations: 2.292 MB / 398.6 MB, free: 7.367 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008464/0.254, allocations: 0.6048 MB / 399.2 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001213/0.2541, allocations: 4.969 kB / 399.2 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001325/0.2542, allocations: 35.84 kB / 399.3 MB, free: 6.914 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001448/0.2544, allocations: 88.97 kB / 399.4 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001683/0.2545, allocations: 61.77 kB / 399.4 MB, free: 6.812 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002872/0.2548, allocations: 295.5 kB / 399.7 MB, free: 6.664 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001713/0.255, allocations: 76.58 kB / 399.8 MB, free: 6.621 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001389/0.2551, allocations: 113.4 kB / 399.9 MB, free: 6.57 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001376/0.2553, allocations: 111 kB / 400 MB, free: 6.52 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.92e-05/0.2553, allocations: 23.47 kB / 400 MB, free: 6.52 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.818e-05/0.2553, allocations: 23.78 kB / 400.1 MB, free: 6.52 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.256e-05/0.2554, allocations: 56.91 kB / 400.1 MB, free: 6.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001035/0.2555, allocations: 112.2 kB / 400.2 MB, free: 6.422 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003396/0.2558, allocations: 297.6 kB / 400.5 MB, free: 6.305 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.2558, allocations: 1.312 kB / 400.5 MB, free: 6.305 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.2558, allocations: 0 / 400.5 MB, free: 6.305 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.902e-06/0.2558, allocations: 0.7969 kB / 400.5 MB, free: 6.305 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.0006941/0.2565, allocations: 477.8 kB / 401 MB, free: 5.93 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/0.2566, allocations: 14.66 kB / 401 MB, free: 5.926 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.165e-05/0.2566, allocations: 65.12 kB / 401.1 MB, free: 5.867 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.376e-05/0.2567, allocations: 30.77 kB / 401.1 MB, free: 5.852 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002869/0.257, allocations: 179.6 kB / 401.3 MB, free: 5.684 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.432e-05/0.257, allocations: 19.83 kB / 401.3 MB, free: 5.676 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.083e-05/0.2571, allocations: 37.86 kB / 401.3 MB, free: 5.656 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004425/0.2575, allocations: 225.3 kB / 401.5 MB, free: 5.555 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.236e-05/0.2575, allocations: 6.047 kB / 401.5 MB, free: 5.551 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.02e-05/0.2575, allocations: 5.406 kB / 401.6 MB, free: 5.547 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.977e-06/0.2576, allocations: 6.219 kB / 401.6 MB, free: 5.547 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003931/0.258, allocations: 179 kB / 401.7 MB, free: 5.492 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001065/0.259, allocations: 0.6486 MB / 402.4 MB, free: 5.055 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004547/0.2595, allocations: 202.8 kB / 402.6 MB, free: 4.965 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000206/0.2597, allocations: 106.2 kB / 402.7 MB, free: 4.922 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.916e-05/0.2597, allocations: 6.781 kB / 402.7 MB, free: 4.918 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.516e-05/0.2597, allocations: 33.86 kB / 402.7 MB, free: 4.879 MB / 318.1 MB Notification: Performance of pre-optimization done (n=26): time 1.453e-06/0.2597, allocations: 0 / 402.7 MB, free: 4.879 MB / 318.1 MB Notification: Performance of matching and sorting (n=28): time 0.001558/0.2613, allocations: 0.8132 MB / 403.5 MB, free: 4.387 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.815e-05/0.2613, allocations: 57.59 kB / 403.6 MB, free: 4.32 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001266/0.2614, allocations: 158 kB / 403.7 MB, free: 4.199 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.444e-05/0.2614, allocations: 30.64 kB / 403.8 MB, free: 4.164 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.287e-05/0.2615, allocations: 148.5 kB / 403.9 MB, free: 4.035 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.927e-05/0.2616, allocations: 108.1 kB / 404 MB, free: 3.949 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.453e-05/0.2616, allocations: 53.52 kB / 404.1 MB, free: 3.914 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.572e-05/0.2617, allocations: 337.2 kB / 404.4 MB, free: 3.586 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001609/0.2618, allocations: 70.86 kB / 404.5 MB, free: 3.566 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001774/0.262, allocations: 120.5 kB / 404.6 MB, free: 3.5 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003353/0.2623, allocations: 191.3 kB / 404.8 MB, free: 3.402 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.2623, allocations: 1.156 kB / 404.8 MB, free: 3.402 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004399/0.2628, allocations: 271.3 kB / 405 MB, free: 3.277 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.2628, allocations: 5.844 kB / 405.1 MB, free: 3.277 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.2628, allocations: 5.719 kB / 405.1 MB, free: 3.273 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.662e-05/0.2628, allocations: 2.344 kB / 405.1 MB, free: 3.273 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002731/0.2631, allocations: 77.84 kB / 405.1 MB, free: 3.266 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.2631, allocations: 1.375 kB / 405.1 MB, free: 3.266 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001224/0.2632, allocations: 12.83 kB / 405.2 MB, free: 3.262 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.705e-05/0.2632, allocations: 8.781 kB / 405.2 MB, free: 3.262 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.348e-05/0.2633, allocations: 140.8 kB / 405.3 MB, free: 3.125 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.037e-05/0.2634, allocations: 16.12 kB / 405.3 MB, free: 3.117 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.503e-05/0.2634, allocations: 32.02 kB / 405.3 MB, free: 3.094 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.2634, allocations: 3.094 kB / 405.3 MB, free: 3.094 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.2634, allocations: 0.6562 kB / 405.3 MB, free: 3.094 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.2634, allocations: 5.062 kB / 405.4 MB, free: 3.09 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008679/0.2643, allocations: 0.6087 MB / 406 MB, free: 2.664 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.2643, allocations: 2.156 kB / 406 MB, free: 2.664 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000322/0.2646, allocations: 67.41 kB / 406 MB, free: 2.664 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.2646, allocations: 10 kB / 406 MB, free: 2.656 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.747e-05/0.2647, allocations: 14.58 kB / 406.1 MB, free: 2.645 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.2647, allocations: 1.875 kB / 406.1 MB, free: 2.645 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.2647, allocations: 5.703 kB / 406.1 MB, free: 2.641 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006579/0.2653, allocations: 436.7 kB / 406.5 MB, free: 2.391 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.036e-05/0.2653, allocations: 18.02 kB / 406.5 MB, free: 2.379 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.192e-05/0.2654, allocations: 11.5 kB / 406.5 MB, free: 2.371 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001398/0.2655, allocations: 16.27 kB / 406.5 MB, free: 2.363 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.974e-05/0.2656, allocations: 23.89 kB / 406.6 MB, free: 2.355 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.341e-05/0.2656, allocations: 10.06 kB / 406.6 MB, free: 2.352 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.376e-05/0.2657, allocations: 120.9 kB / 406.7 MB, free: 2.262 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2657, allocations: 1.375 kB / 406.7 MB, free: 2.262 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002956/0.266, allocations: 58.16 kB / 406.7 MB, free: 2.254 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.0007768/0.2667, allocations: 0.9816 MB / 407.7 MB, free: 1.453 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000402/0.2671, allocations: 196.2 kB / 407.9 MB, free: 1.395 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2671, allocations: 0 / 407.9 MB, free: 1.395 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001846/0.2673, allocations: 103 kB / 408 MB, free: 1.363 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003961/0.2677, allocations: 34.47 kB / 408 MB, free: 1.352 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003092/0.2708, allocations: 2.658 MB / 410.7 MB, free: 15.39 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001587/0.271, allocations: 143.2 kB / 410.8 MB, free: 15.3 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.929e-05/0.2711, allocations: 19.33 kB / 410.9 MB, free: 15.3 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001262/0.2712, allocations: 74.98 kB / 410.9 MB, free: 15.25 MB / 334.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2712, allocations: 0 / 410.9 MB, free: 15.25 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03566/0.3069, allocations: 5.207 MB / 416.1 MB, free: 12.66 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.39, allocations: 9.156 kB / 416.2 MB, free: 12.65 MB / 334.1 MB " [Timeout remaining time 649] (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: 13.86838763114065]