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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001282/0.001282, allocations: 117 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001402/0.001402, allocations: 216.7 kB / 21.46 MB, free: 1.613 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.418/1.418, allocations: 230.4 MB / 254.7 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001794/0.001794, allocations: 59.91 kB / 373.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1033, allocations: 53.38 MB / 427 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.00372/0.107, allocations: 2.445 MB / 429.5 MB, free: 2.164 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001048/0.108, allocations: 0.6116 MB / 430.1 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001167/0.1082, allocations: 7.938 kB / 430.1 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001427/0.1083, allocations: 35.59 kB / 430.1 MB, free: 1.504 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000158/0.1085, allocations: 75.33 kB / 430.2 MB, free: 1.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001668/0.1086, allocations: 67.84 kB / 430.3 MB, free: 1.363 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003445/0.109, allocations: 302.6 kB / 430.6 MB, free: 1.066 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001809/0.1092, allocations: 74.95 kB / 430.7 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000148/0.1093, allocations: 119.6 kB / 430.8 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001589/0.1095, allocations: 123.5 kB / 430.9 MB, free: 0.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.253e-05/0.1095, allocations: 24 kB / 430.9 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.143e-05/0.1095, allocations: 24 kB / 430.9 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.62e-05/0.1096, allocations: 47.84 kB / 431 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001323/0.1097, allocations: 139.3 kB / 431.1 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003366/0.1101, allocations: 306.6 kB / 431.4 MB, free: 224 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.1101, allocations: 0 / 431.4 MB, free: 224 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1101, allocations: 0 / 431.4 MB, free: 224 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.1101, allocations: 4 kB / 431.4 MB, free: 220 kB / 350.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.1773/0.2873, allocations: 0.5402 MB / 432 MB, free: 10.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.2874, allocations: 9.969 kB / 432 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.115e-05/0.2874, allocations: 7.406 kB / 432 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.658e-05/0.2874, allocations: 56.88 kB / 432 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.038e-05/0.2875, allocations: 32.5 kB / 432.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003069/0.2878, allocations: 238.1 kB / 432.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.85e-05/0.2878, allocations: 22.58 kB / 432.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.209e-05/0.2879, allocations: 29.03 kB / 432.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004603/0.2884, allocations: 227.6 kB / 432.6 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.923e-05/0.2884, allocations: 6.703 kB / 432.6 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.161e-05/0.2884, allocations: 9.438 kB / 432.6 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.206e-06/0.2884, allocations: 10.16 kB / 432.6 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003962/0.2888, allocations: 175.5 kB / 432.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009862/0.2898, allocations: 0.7535 MB / 433.5 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000431/0.2902, allocations: 212.5 kB / 433.7 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002023/0.2904, allocations: 101.5 kB / 433.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.684e-05/0.2904, allocations: 6.484 kB / 433.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.426e-05/0.2905, allocations: 37.25 kB / 433.9 MB, free: 10.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.373e-06/0.2905, allocations: 0 / 433.9 MB, free: 10.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.001471/0.2919, allocations: 0.9695 MB / 434.8 MB, free: 9.797 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.052e-05/0.2919, allocations: 55.19 kB / 434.9 MB, free: 9.734 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001071/0.2921, allocations: 152.7 kB / 435 MB, free: 9.633 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.252e-05/0.2921, allocations: 31.73 kB / 435.1 MB, free: 9.602 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.239e-05/0.2921, allocations: 144.7 kB / 435.2 MB, free: 9.496 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.739e-05/0.2922, allocations: 106.5 kB / 435.3 MB, free: 9.426 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.526e-05/0.2922, allocations: 50.27 kB / 435.4 MB, free: 9.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.594e-05/0.2923, allocations: 334.5 kB / 435.7 MB, free: 9.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001712/0.2924, allocations: 75.28 kB / 435.8 MB, free: 9.066 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001779/0.2926, allocations: 117 kB / 435.9 MB, free: 9.004 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003574/0.293, allocations: 205.9 kB / 436.1 MB, free: 8.902 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.293, allocations: 1.594 kB / 436.1 MB, free: 8.902 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004447/0.2934, allocations: 267.7 kB / 436.4 MB, free: 8.793 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.2934, allocations: 5.844 kB / 436.4 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.2934, allocations: 2.812 kB / 436.4 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.2935, allocations: 2.219 kB / 436.4 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002668/0.2937, allocations: 73.48 kB / 436.4 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.2937, allocations: 4.125 kB / 436.4 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001187/0.2939, allocations: 15 kB / 436.5 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.481e-05/0.2939, allocations: 11.56 kB / 436.5 MB, free: 8.785 MB / 350.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 8.484e-05/0.294, allocations: 143.5 kB / 436.6 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.107e-05/0.294, allocations: 21.05 kB / 436.6 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.556e-05/0.2941, allocations: 27.59 kB / 436.7 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.2941, allocations: 2.969 kB / 436.7 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.2941, allocations: 1.438 kB / 436.7 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.2941, allocations: 6.141 kB / 436.7 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007839/0.2949, allocations: 0.6595 MB / 437.3 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.2949, allocations: 0 / 437.3 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003142/0.2952, allocations: 70.06 kB / 437.4 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.596e-06/0.2952, allocations: 1.781 kB / 437.4 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.534e-05/0.2952, allocations: 8.125 kB / 437.4 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.2952, allocations: 5.156 kB / 437.4 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.2952, allocations: 6.188 kB / 437.4 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006202/0.2958, allocations: 446.1 kB / 437.8 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.056e-05/0.2959, allocations: 90.73 kB / 437.9 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.877e-05/0.2959, allocations: 11.95 kB / 437.9 MB, free: 7.785 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001432/0.296, allocations: 18.75 kB / 438 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.596e-05/0.2961, allocations: 18.67 kB / 438 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.194e-05/0.2961, allocations: 6.422 kB / 438 MB, free: 7.773 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.224e-05/0.2962, allocations: 116.8 kB / 438.1 MB, free: 7.688 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2962, allocations: 0 / 438.1 MB, free: 7.688 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002926/0.2964, allocations: 58.16 kB / 438.2 MB, free: 7.68 MB / 350.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.0007413/0.2972, allocations: 0.9779 MB / 439.1 MB, free: 6.887 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004222/0.2976, allocations: 191.5 kB / 439.3 MB, free: 6.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2976, allocations: 1.188 kB / 439.3 MB, free: 6.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001909/0.2978, allocations: 96.95 kB / 439.4 MB, free: 6.816 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000392/0.2982, allocations: 37.69 kB / 439.5 MB, free: 6.805 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002968/0.3012, allocations: 2.671 MB / 442.1 MB, free: 4.867 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001713/0.3013, allocations: 0.7487 MB / 442.9 MB, free: 4.172 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.6e-05/0.3014, allocations: 29.05 kB / 442.9 MB, free: 4.164 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001009/0.3015, allocations: 78.14 kB / 443 MB, free: 4.109 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3015, allocations: 0 / 443 MB, free: 4.109 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02289/0.3244, allocations: 4.609 MB / 447.6 MB, free: 3.457 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.382/8.707, allocations: 12.97 kB / 447.6 MB, free: 3.449 MB / 350.1 MB " [Timeout remaining time 651] (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 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_ElasticBearing.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "Warning: Resultfile and Reference have different end time points! Reffile[2002]=10.000000 File[1331]=6.660000 " [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: 11.127086633001454]