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.001415/0.001415, allocations: 84.66 kB / 20.95 MB, free: 3.453 MB / 18.57 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.001422/0.001422, allocations: 153.1 kB / 24.26 MB, free: 156 kB / 18.57 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.418/1.418, allocations: 173.3 MB / 200.8 MB, free: 9.285 MB / 186.7 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: 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.0.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.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.232e-06/1.232e-06, allocations: 0 / 267.3 MB, free: 6.719 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.302e-05/3.425e-05, allocations: 9.969 kB / 267.3 MB, free: 6.711 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.003786/0.00382, allocations: 2.304 MB / 269.6 MB, free: 4.391 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001056/0.004876, allocations: 0.5609 MB / 270.2 MB, free: 3.824 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001296/0.005006, allocations: 11.94 kB / 270.2 MB, free: 3.812 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001774/0.005183, allocations: 43.52 kB / 270.2 MB, free: 3.77 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001809/0.005364, allocations: 79.27 kB / 270.3 MB, free: 3.691 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001747/0.005539, allocations: 63.92 kB / 270.4 MB, free: 3.629 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003758/0.005914, allocations: 306.4 kB / 270.7 MB, free: 3.328 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001961/0.00611, allocations: 71.34 kB / 270.7 MB, free: 3.258 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002404/0.006351, allocations: 175.6 kB / 270.9 MB, free: 3.086 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001412/0.006492, allocations: 79.78 kB / 271 MB, free: 3.008 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.578e-05/0.006538, allocations: 27.94 kB / 271 MB, free: 2.98 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.383e-05/0.006582, allocations: 24 kB / 271 MB, free: 2.957 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.276e-05/0.006644, allocations: 59.8 kB / 271.1 MB, free: 2.898 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001174/0.006762, allocations: 91.77 kB / 271.2 MB, free: 2.809 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003859/0.007148, allocations: 295 kB / 271.5 MB, free: 2.52 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.007153, allocations: 7.984 kB / 271.5 MB, free: 2.512 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.9e-07/0.007153, allocations: 0 / 271.5 MB, free: 2.512 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.368e-06/0.007157, allocations: 0 / 271.5 MB, free: 2.512 MB / 250.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.0008452/0.008003, allocations: 481.7 kB / 272 MB, free: 2.012 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.00804, allocations: 8.922 kB / 272 MB, free: 2.004 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.008143, allocations: 52.75 kB / 272 MB, free: 1.953 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002954/0.008438, allocations: 181.3 kB / 272.2 MB, free: 1.754 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.772e-05/0.008466, allocations: 24.97 kB / 272.2 MB, free: 1.727 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.832e-05/0.008524, allocations: 28.38 kB / 272.2 MB, free: 1.699 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004915/0.009016, allocations: 226.6 kB / 272.5 MB, free: 1.473 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.495e-05/0.009041, allocations: 11.89 kB / 272.5 MB, free: 1.461 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.422e-05/0.009065, allocations: 12 kB / 272.5 MB, free: 1.449 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.009075, allocations: 8 kB / 272.5 MB, free: 1.441 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004179/0.009493, allocations: 174.5 kB / 272.7 MB, free: 1.273 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001176/0.01067, allocations: 0.6017 MB / 273.3 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000515/0.01118, allocations: 202.6 kB / 273.5 MB, free: 440 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002468/0.01143, allocations: 104.8 kB / 273.6 MB, free: 332 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.142e-05/0.01145, allocations: 4 kB / 273.6 MB, free: 328 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.067e-05/0.01148, allocations: 30.56 kB / 273.6 MB, free: 288 kB / 250.7 MB Notification: Performance of pre-optimization done (n=26): time 1.352e-06/0.01148, allocations: 3.938 kB / 273.6 MB, free: 284 kB / 250.7 MB Notification: Performance of matching and sorting (n=28): time 0.002055/0.01354, allocations: 0.8177 MB / 274.4 MB, free: 15.41 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.785e-05/0.01359, allocations: 55.41 kB / 274.5 MB, free: 15.34 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001498/0.01374, allocations: 145.6 kB / 274.6 MB, free: 15.19 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.155e-05/0.01378, allocations: 33.7 kB / 274.7 MB, free: 15.15 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/0.01389, allocations: 148.7 kB / 274.8 MB, free: 15 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.552e-05/0.01398, allocations: 103.1 kB / 274.9 MB, free: 14.9 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.932e-05/0.01407, allocations: 57.66 kB / 275 MB, free: 14.84 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.01425, allocations: 326.8 kB / 275.3 MB, free: 14.51 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001939/0.01444, allocations: 71.95 kB / 275.3 MB, free: 14.44 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002379/0.01468, allocations: 123 kB / 275.5 MB, free: 14.3 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000435/0.01511, allocations: 207.3 kB / 275.7 MB, free: 14.09 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.01512, allocations: 0 / 275.7 MB, free: 14.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005284/0.01564, allocations: 269.4 kB / 275.9 MB, free: 13.82 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.01566, allocations: 4 kB / 275.9 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.01566, allocations: 0 / 275.9 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.01568, allocations: 4 kB / 275.9 MB, free: 13.81 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003099/0.01599, allocations: 83.98 kB / 276 MB, free: 13.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.01599, allocations: 0 / 276 MB, free: 13.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001274/0.01612, allocations: 15.98 kB / 276 MB, free: 13.71 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.892e-05/0.01614, allocations: 12 kB / 276 MB, free: 13.7 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 0.0001378/0.01628, allocations: 137.7 kB / 276.2 MB, free: 13.56 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.063e-05/0.01634, allocations: 31.84 kB / 276.2 MB, free: 13.53 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.235e-05/0.0164, allocations: 21.95 kB / 276.2 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.01641, allocations: 4 kB / 276.2 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.01641, allocations: 0 / 276.2 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.01641, allocations: 4 kB / 276.2 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009956/0.01741, allocations: 0.5587 MB / 276.8 MB, free: 12.89 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.01741, allocations: 0 / 276.8 MB, free: 12.89 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003603/0.01777, allocations: 71.89 kB / 276.9 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.01778, allocations: 4 kB / 276.9 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.004e-05/0.0178, allocations: 8 kB / 276.9 MB, free: 12.81 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.0178, allocations: 0 / 276.9 MB, free: 12.81 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.0178, allocations: 12.05 kB / 276.9 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007822/0.01859, allocations: 459.7 kB / 277.3 MB, free: 12.33 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.479e-05/0.01861, allocations: 11.91 kB / 277.4 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.044e-05/0.01864, allocations: 8.062 kB / 277.4 MB, free: 12.31 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001502/0.01879, allocations: 11.98 kB / 277.4 MB, free: 12.3 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.679e-05/0.01885, allocations: 15.97 kB / 277.4 MB, free: 12.28 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.449e-05/0.01886, allocations: 8 kB / 277.4 MB, free: 12.27 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.262e-05/0.01896, allocations: 115.2 kB / 277.5 MB, free: 12.16 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01896, allocations: 0 / 277.5 MB, free: 12.16 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003087/0.01926, allocations: 59.94 kB / 277.6 MB, free: 12.1 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 0.0001293/0.01939, allocations: 107.1 kB / 277.7 MB, free: 11.98 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004824/0.01988, allocations: 192.3 kB / 277.9 MB, free: 11.8 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.01988, allocations: 4 kB / 277.9 MB, free: 11.79 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002211/0.0201, allocations: 104.1 kB / 278 MB, free: 11.69 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004081/0.02051, allocations: 47.84 kB / 278 MB, free: 11.64 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001243/0.02175, allocations: 0.674 MB / 278.7 MB, free: 10.94 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001535/0.02191, allocations: 142.5 kB / 278.8 MB, free: 10.78 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.352e-05/0.02199, allocations: 25.92 kB / 278.9 MB, free: 10.75 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.702e-05/0.02205, allocations: 20.5 kB / 278.9 MB, free: 10.73 MB / 266.7 MB Notification: Performance of SimCode: time 3.9e-07/0.02205, allocations: 0 / 278.9 MB, free: 10.73 MB / 266.7 MB Notification: Performance of Templates: time 0.005963/0.02801, allocations: 2.121 MB / 281 MB, free: 8.648 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/ElasticBearing/ElasticBearing.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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] Reference file matches [Calling sys.exit(0), Time elapsed: 4.263159096008167]