Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001053/0.001053, allocations: 80.92 kB / 21.49 MB, free: 2.996 MB / 18.57 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.001144/0.001144, allocations: 170.6 kB / 24.91 MB, free: 8.723 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9571/0.9571, allocations: 177.1 MB / 205.3 MB, free: 5.109 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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: translateModel(Modelica.Mechanics.Rotational.Examples.ElasticBearing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|load.phi|load.w|shaft.phi|shaft.w|springDamper.phi_rel|springDamper.w_rel",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing") translateModel(Modelica.Mechanics.Rotational.Examples.ElasticBearing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|load.phi|load.w|shaft.phi|shaft.w|springDamper.phi_rel|springDamper.w_rel",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.042e-06/1.042e-06, allocations: 0 / 273.5 MB, free: 1.148 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.292e-05/1.396e-05, allocations: 2.312 kB / 273.5 MB, free: 1.145 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.002405/0.002419, allocations: 2.498 MB / 276 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007303/0.003149, allocations: 0.6114 MB / 276.6 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.525e-05/0.003244, allocations: 7.938 kB / 276.6 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001208/0.003365, allocations: 43.52 kB / 276.6 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001158/0.003481, allocations: 87.25 kB / 276.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001176/0.003599, allocations: 63.91 kB / 276.8 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002069/0.003805, allocations: 306.4 kB / 277.1 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001246/0.00393, allocations: 81.91 kB / 277.2 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001448/0.004075, allocations: 175.6 kB / 277.3 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000101/0.004176, allocations: 95.7 kB / 277.4 MB, free: 13.17 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.705e-05/0.004203, allocations: 24 kB / 277.5 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.438e-05/0.004227, allocations: 24 kB / 277.5 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.484e-05/0.004262, allocations: 55.81 kB / 277.5 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.827e-05/0.00432, allocations: 91.77 kB / 277.6 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001784/0.004499, allocations: 191.3 kB / 277.8 MB, free: 12.79 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.563e-06/0.0045, allocations: 4 kB / 277.8 MB, free: 12.79 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.11e-07/0.004501, allocations: 0 / 277.8 MB, free: 12.79 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.496e-06/0.004505, allocations: 0 / 277.8 MB, free: 12.79 MB / 266.7 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.0004073/0.004912, allocations: 448.3 kB / 278.3 MB, free: 12.33 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.693e-05/0.004939, allocations: 12.03 kB / 278.3 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.378e-05/0.004983, allocations: 36.91 kB / 278.3 MB, free: 12.28 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00016/0.005143, allocations: 166 kB / 278.5 MB, free: 12.09 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.284e-05/0.005155, allocations: 17.03 kB / 278.5 MB, free: 12.08 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.355e-05/0.005189, allocations: 44.25 kB / 278.5 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001758/0.005365, allocations: 167.4 kB / 278.7 MB, free: 11.86 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/0.005379, allocations: 7.922 kB / 278.7 MB, free: 11.86 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.206e-05/0.005391, allocations: 12 kB / 278.7 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.744e-06/0.005399, allocations: 8 kB / 278.7 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.09e-05/0.00548, allocations: 64.55 kB / 278.8 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005386/0.006019, allocations: 472.5 kB / 279.2 MB, free: 11.3 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001859/0.006204, allocations: 138.5 kB / 279.4 MB, free: 11.15 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.978e-05/0.006254, allocations: 48.83 kB / 279.4 MB, free: 11.1 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.721e-05/0.006271, allocations: 8 kB / 279.4 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.749e-05/0.006289, allocations: 34.56 kB / 279.5 MB, free: 11.05 MB / 266.7 MB Notification: Performance of pre-optimization done (n=26): time 1.322e-06/0.00629, allocations: 0 / 279.5 MB, free: 11.05 MB / 266.7 MB Notification: Performance of matching and sorting (n=28): time 0.0006004/0.006891, allocations: 0.5504 MB / 280 MB, free: 10.45 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002554/0.007146, allocations: 55.41 kB / 280.1 MB, free: 10.38 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.47e-05/0.007211, allocations: 149.9 kB / 280.2 MB, free: 10.23 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.105e-05/0.007222, allocations: 29.7 kB / 280.2 MB, free: 10.19 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.7e-05/0.007269, allocations: 140.7 kB / 280.4 MB, free: 10.05 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.246e-05/0.007311, allocations: 103.1 kB / 280.5 MB, free: 9.949 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.569e-05/0.007357, allocations: 57.67 kB / 280.5 MB, free: 9.887 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.591e-05/0.007423, allocations: 334.8 kB / 280.9 MB, free: 9.551 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.727e-05/0.00745, allocations: 23.94 kB / 280.9 MB, free: 9.527 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.294e-05/0.007503, allocations: 75.83 kB / 281 MB, free: 9.441 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.656e-05/0.0076, allocations: 115.3 kB / 281.1 MB, free: 9.316 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.007601, allocations: 0 / 281.1 MB, free: 9.316 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0001268/0.007727, allocations: 141.6 kB / 281.2 MB, free: 9.172 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.112e-05/0.007739, allocations: 11.94 kB / 281.2 MB, free: 9.16 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.007743, allocations: 0 / 281.2 MB, free: 9.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.007755, allocations: 4 kB / 281.2 MB, free: 9.156 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000189/0.007944, allocations: 87.81 kB / 281.3 MB, free: 9.07 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.755e-06/0.007946, allocations: 8.094 kB / 281.3 MB, free: 9.062 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.636e-05/0.007993, allocations: 8 kB / 281.3 MB, free: 9.055 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.717e-06/0.008001, allocations: 8 kB / 281.3 MB, free: 9.047 MB / 266.7 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 6.135e-05/0.008063, allocations: 129.7 kB / 281.5 MB, free: 8.91 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.665e-05/0.008089, allocations: 27.92 kB / 281.5 MB, free: 8.883 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.079e-05/0.00812, allocations: 21.97 kB / 281.5 MB, free: 8.859 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.008122, allocations: 4 kB / 281.5 MB, free: 8.855 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.362e-06/0.008124, allocations: 0 / 281.5 MB, free: 8.855 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.008128, allocations: 3.984 kB / 281.5 MB, free: 8.852 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000332/0.00846, allocations: 389.4 kB / 281.9 MB, free: 8.441 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.008461, allocations: 0 / 281.9 MB, free: 8.441 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001863/0.008648, allocations: 95.67 kB / 282 MB, free: 8.352 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.00865, allocations: 4 kB / 282 MB, free: 8.348 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.378e-06/0.00866, allocations: 4 kB / 282 MB, free: 8.344 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.008663, allocations: 4 kB / 282 MB, free: 8.34 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.008663, allocations: 0 / 282 MB, free: 8.34 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001937/0.008857, allocations: 296.1 kB / 282.3 MB, free: 8.027 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.343e-05/0.008871, allocations: 15.91 kB / 282.3 MB, free: 8.012 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.48e-05/0.008885, allocations: 4 kB / 282.3 MB, free: 8.008 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.605e-05/0.008941, allocations: 11.98 kB / 282.3 MB, free: 7.996 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.17e-05/0.008973, allocations: 23.91 kB / 282.3 MB, free: 7.973 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.542e-06/0.00898, allocations: 7.984 kB / 282.4 MB, free: 7.965 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.371e-05/0.009003, allocations: 39.25 kB / 282.4 MB, free: 7.926 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009003, allocations: 0 / 282.4 MB, free: 7.926 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001494/0.009153, allocations: 60 kB / 282.5 MB, free: 7.867 MB / 266.7 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 6.327e-05/0.009216, allocations: 88.36 kB / 282.5 MB, free: 7.77 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001215/0.009338, allocations: 117.6 kB / 282.7 MB, free: 7.652 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.00934, allocations: 3.938 kB / 282.7 MB, free: 7.648 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.063e-05/0.009391, allocations: 60.77 kB / 282.7 MB, free: 7.586 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001894/0.00958, allocations: 39.97 kB / 282.8 MB, free: 7.547 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006961/0.01028, allocations: 0.5687 MB / 283.3 MB, free: 6.949 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.451e-05/0.01032, allocations: 84.66 kB / 283.4 MB, free: 6.844 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.088e-05/0.01037, allocations: 21.92 kB / 283.4 MB, free: 6.824 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.84e-05/0.01047, allocations: 95.3 kB / 283.5 MB, free: 6.73 MB / 266.7 MB Notification: Performance of SimCode: time 3.91e-07/0.01047, allocations: 4 kB / 283.5 MB, free: 6.727 MB / 266.7 MB Notification: Performance of Templates: time 0.00442/0.01489, allocations: 2.429 MB / 286 MB, free: 4.352 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/ElasticBearing/ElasticBearing.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.543249163776636]