Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001363/0.001363, allocations: 123.2 kB / 17.79 MB, free: 5.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001577/0.001577, allocations: 186.9 kB / 20.73 MB, free: 2.316 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 225.6 MB / 249.1 MB, free: 3.625 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 47.92 kB / 365.6 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09772/0.0992, allocations: 52.15 MB / 417.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.00379/0.103, allocations: 2.431 MB / 420.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009247/0.1039, allocations: 0.5804 MB / 420.8 MB, free: 9.605 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001141/0.104, allocations: 7.938 kB / 420.8 MB, free: 9.598 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001431/0.1042, allocations: 35.59 kB / 420.8 MB, free: 9.562 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001552/0.1043, allocations: 83.33 kB / 420.9 MB, free: 9.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001631/0.1045, allocations: 59.91 kB / 421 MB, free: 9.422 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003252/0.1048, allocations: 294.6 kB / 421.3 MB, free: 9.133 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001804/0.105, allocations: 74.95 kB / 421.3 MB, free: 9.055 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001362/0.1051, allocations: 115.6 kB / 421.4 MB, free: 8.941 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001612/0.1053, allocations: 123.5 kB / 421.6 MB, free: 8.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.736e-05/0.1053, allocations: 24 kB / 421.6 MB, free: 8.797 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.309e-05/0.1054, allocations: 24 kB / 421.6 MB, free: 8.773 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.624e-05/0.1054, allocations: 55.78 kB / 421.7 MB, free: 8.719 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001333/0.1056, allocations: 135.4 kB / 421.8 MB, free: 8.586 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003507/0.1059, allocations: 302.7 kB / 422.1 MB, free: 8.289 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.1059, allocations: 0 / 422.1 MB, free: 8.289 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1059, allocations: 0 / 422.1 MB, free: 8.289 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.011e-05/0.1059, allocations: 0 / 422.1 MB, free: 8.289 MB / 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.0009348/0.1069, allocations: 0.5456 MB / 422.6 MB, free: 7.695 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.1069, allocations: 8.031 kB / 422.6 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.516e-05/0.107, allocations: 66.72 kB / 422.7 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.274e-05/0.107, allocations: 28.75 kB / 422.7 MB, free: 7.586 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003024/0.1073, allocations: 248.5 kB / 423 MB, free: 7.305 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.164e-05/0.1073, allocations: 16.94 kB / 423 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.943e-05/0.1074, allocations: 31.94 kB / 423 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004411/0.1078, allocations: 220.9 kB / 423.2 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.081e-05/0.1079, allocations: 7.938 kB / 423.3 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.299e-05/0.1079, allocations: 8 kB / 423.3 MB, free: 7.023 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.1079, allocations: 12 kB / 423.3 MB, free: 7.012 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003869/0.1083, allocations: 178.1 kB / 423.4 MB, free: 6.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001166/0.1095, allocations: 0.7541 MB / 424.2 MB, free: 6.027 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004637/0.1099, allocations: 203.2 kB / 424.4 MB, free: 5.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002138/0.1101, allocations: 111.1 kB / 424.5 MB, free: 5.711 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.328e-05/0.1101, allocations: 0 / 424.5 MB, free: 5.711 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.422e-05/0.1102, allocations: 34.56 kB / 424.5 MB, free: 5.668 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.012e-06/0.1102, allocations: 0 / 424.5 MB, free: 5.668 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.001742/0.1119, allocations: 0.9644 MB / 425.5 MB, free: 4.613 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.813e-05/0.1119, allocations: 51.41 kB / 425.6 MB, free: 4.551 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001488/0.1121, allocations: 159.8 kB / 425.7 MB, free: 4.383 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.248e-05/0.1121, allocations: 29.7 kB / 425.7 MB, free: 4.348 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.83e-05/0.1122, allocations: 152.6 kB / 425.9 MB, free: 4.195 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.542e-05/0.1123, allocations: 115 kB / 426 MB, free: 4.082 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.878e-05/0.1124, allocations: 45.7 kB / 426 MB, free: 4.031 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.1125, allocations: 330.8 kB / 426.4 MB, free: 3.699 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001737/0.1127, allocations: 79.95 kB / 426.4 MB, free: 3.621 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002094/0.1129, allocations: 127.1 kB / 426.6 MB, free: 3.484 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003706/0.1133, allocations: 203.3 kB / 426.8 MB, free: 3.273 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.1133, allocations: 0 / 426.8 MB, free: 3.273 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004613/0.1137, allocations: 261.4 kB / 427 MB, free: 3.012 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.1138, allocations: 8 kB / 427 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.503e-06/0.1138, allocations: 3.984 kB / 427 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.1138, allocations: 4 kB / 427 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002697/0.1141, allocations: 71.89 kB / 427.1 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.1141, allocations: 4 kB / 427.1 MB, free: 2.922 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001275/0.1142, allocations: 20.08 kB / 427.1 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.783e-05/0.1142, allocations: 8 kB / 427.1 MB, free: 2.895 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 0.0001293/0.1143, allocations: 137.7 kB / 427.3 MB, free: 2.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.14e-05/0.1144, allocations: 19.91 kB / 427.3 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.854e-05/0.1144, allocations: 30.55 kB / 427.3 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.1144, allocations: 0 / 427.3 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.1144, allocations: 0 / 427.3 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.1144, allocations: 4 kB / 427.3 MB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009519/0.1154, allocations: 0.6564 MB / 428 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.1154, allocations: 4 kB / 428 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003262/0.1157, allocations: 71.91 kB / 428.1 MB, free: 1.906 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.1157, allocations: 0 / 428.1 MB, free: 1.906 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.895e-05/0.1158, allocations: 15.88 kB / 428.1 MB, free: 1.891 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.1158, allocations: 8.047 kB / 428.1 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.1158, allocations: 4 kB / 428.1 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006798/0.1164, allocations: 443 kB / 428.5 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.413e-05/0.1165, allocations: 92.97 kB / 428.6 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.137e-05/0.1165, allocations: 16 kB / 428.6 MB, free: 1.301 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001387/0.1167, allocations: 11.98 kB / 428.6 MB, free: 1.289 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.461e-05/0.1167, allocations: 15.97 kB / 428.7 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.209e-05/0.1167, allocations: 12 kB / 428.7 MB, free: 1.262 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.806e-05/0.1168, allocations: 115.2 kB / 428.8 MB, free: 1.148 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1168, allocations: 3.938 kB / 428.8 MB, free: 1.145 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002879/0.1171, allocations: 60 kB / 428.8 MB, free: 1.086 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.00102/0.1181, allocations: 0.9843 MB / 429.8 MB, free: 72 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004482/0.1186, allocations: 201.3 kB / 430 MB, free: 15.87 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.1186, allocations: 0 / 430 MB, free: 15.87 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002039/0.1188, allocations: 103.8 kB / 430.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003931/0.1192, allocations: 42.3 kB / 430.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00345/0.1226, allocations: 2.658 MB / 432.8 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003999/0.123, allocations: 0.7483 MB / 433.6 MB, free: 12.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.073e-05/0.1231, allocations: 25.94 kB / 433.6 MB, free: 12.15 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001206/0.1233, allocations: 75.41 kB / 433.7 MB, free: 12.08 MB / 366.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1233, allocations: 0 / 433.7 MB, free: 12.08 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02896/0.1522, allocations: 4.574 MB / 438.2 MB, free: 7.621 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.228/8.38, allocations: 11.92 kB / 438.3 MB, free: 7.609 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing_fmu --startTime=0 --stopTime=10 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/ElasticBearing/ElasticBearing.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 10.938447111751884]