Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.ElasticBearing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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=2000,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") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000838/0.0008381, allocations: 182 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.228/1.228, allocations: 225.7 MB / 243.2 MB, free: 8.457 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007595/0.0007595, allocations: 96.83 kB / 294.4 MB, free: 9.488 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002289/0.0002289, allocations: 12 kB / 354.2 MB, free: 13.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.187/0.1873, allocations: 50.41 MB / 404.6 MB, free: 31.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.001751/0.189, allocations: 2.044 MB / 406.6 MB, free: 29.26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005836/0.1896, allocations: 0.552 MB / 407.2 MB, free: 28.71 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.954e-05/0.1898, allocations: 4 kB / 407.2 MB, free: 28.71 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.846e-05/0.1899, allocations: 27.78 kB / 407.2 MB, free: 28.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001097/0.19, allocations: 64.64 kB / 407.3 MB, free: 28.62 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001207/0.1901, allocations: 51.95 kB / 407.3 MB, free: 28.57 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000183/0.1903, allocations: 283.4 kB / 407.6 MB, free: 28.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001471/0.1905, allocations: 101.7 kB / 407.7 MB, free: 28.19 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.131e-05/0.1905, allocations: 95.58 kB / 407.8 MB, free: 28.1 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.209e-05/0.1906, allocations: 107.5 kB / 407.9 MB, free: 27.99 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.447e-05/0.1907, allocations: 15.94 kB / 407.9 MB, free: 27.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.426e-05/0.1907, allocations: 14.91 kB / 407.9 MB, free: 27.96 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.086e-05/0.1907, allocations: 39.84 kB / 408 MB, free: 27.93 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.465e-05/0.1908, allocations: 149 kB / 408.1 MB, free: 27.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001702/0.191, allocations: 276.4 kB / 408.4 MB, free: 27.5 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.191, allocations: 0 / 408.4 MB, free: 27.5 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.191, allocations: 0 / 408.4 MB, free: 27.5 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.191, allocations: 0 / 408.4 MB, free: 27.5 MB / 298.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.0005208/0.1916, allocations: 0.5022 MB / 408.9 MB, free: 26.96 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.1916, allocations: 12.03 kB / 408.9 MB, free: 26.95 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.122e-05/0.1917, allocations: 32.56 kB / 408.9 MB, free: 26.91 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001652/0.1918, allocations: 241.8 kB / 409.2 MB, free: 26.64 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.605e-05/0.1918, allocations: 20.94 kB / 409.2 MB, free: 26.62 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.89e-05/0.1919, allocations: 28.12 kB / 409.2 MB, free: 26.59 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003571/0.1923, allocations: 228.9 kB / 409.4 MB, free: 26.36 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.1923, allocations: 4 kB / 409.4 MB, free: 26.36 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.697e-05/0.1923, allocations: 8 kB / 409.4 MB, free: 26.35 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.1923, allocations: 8 kB / 409.4 MB, free: 26.34 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003182/0.1926, allocations: 190.1 kB / 409.6 MB, free: 26.16 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008678/0.1935, allocations: 0.7771 MB / 410.4 MB, free: 25.32 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000372/0.1939, allocations: 215.4 kB / 410.6 MB, free: 25.11 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001761/0.1941, allocations: 120.8 kB / 410.7 MB, free: 24.98 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.656e-05/0.1941, allocations: 8 kB / 410.7 MB, free: 24.98 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.121e-05/0.1941, allocations: 30.56 kB / 410.8 MB, free: 24.94 MB / 298.7 MB Notification: Performance of pre-optimization done (n=26): time 1.233e-06/0.1941, allocations: 0 / 410.8 MB, free: 24.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=28): time 0.001276/0.1954, allocations: 0.9881 MB / 411.8 MB, free: 23.86 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.636e-05/0.1954, allocations: 55.41 kB / 411.8 MB, free: 23.8 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.688e-05/0.1955, allocations: 157 kB / 412 MB, free: 23.63 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.029e-05/0.1956, allocations: 33.64 kB / 412 MB, free: 23.59 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.085e-05/0.1956, allocations: 148.5 kB / 412.1 MB, free: 23.44 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.029e-05/0.1957, allocations: 102.5 kB / 412.2 MB, free: 23.34 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.275e-06/0.1957, allocations: 8 kB / 412.3 MB, free: 23.33 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.11e-05/0.1957, allocations: 334.8 kB / 412.6 MB, free: 23 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000152/0.1959, allocations: 79.95 kB / 412.7 MB, free: 22.92 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001605/0.1961, allocations: 115.4 kB / 412.8 MB, free: 22.79 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003026/0.1964, allocations: 208.8 kB / 413 MB, free: 22.58 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.1964, allocations: 4 kB / 413 MB, free: 22.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003724/0.1967, allocations: 264.5 kB / 413.2 MB, free: 22.31 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.058e-05/0.1968, allocations: 8 kB / 413.2 MB, free: 22.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.1968, allocations: 3.984 kB / 413.2 MB, free: 22.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.1968, allocations: 12.03 kB / 413.3 MB, free: 22.29 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002569/0.1971, allocations: 79.91 kB / 413.3 MB, free: 22.21 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.1971, allocations: 0 / 413.3 MB, free: 22.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001169/0.1972, allocations: 19.98 kB / 413.4 MB, free: 22.19 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.209e-05/0.1972, allocations: 8 kB / 413.4 MB, free: 22.18 MB / 298.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 7.499e-05/0.1973, allocations: 141.7 kB / 413.5 MB, free: 22.04 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.161e-05/0.1973, allocations: 19.81 kB / 413.5 MB, free: 22.02 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.566e-05/0.1974, allocations: 30.55 kB / 413.6 MB, free: 21.99 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.1974, allocations: 4 kB / 413.6 MB, free: 21.98 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.287e-06/0.1974, allocations: 0 / 413.6 MB, free: 21.98 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.1974, allocations: 0 / 413.6 MB, free: 21.98 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000684/0.1981, allocations: 0.6619 MB / 414.2 MB, free: 21.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.1981, allocations: 0 / 414.2 MB, free: 21.26 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000296/0.1984, allocations: 75.91 kB / 414.3 MB, free: 21.19 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.1984, allocations: 11.97 kB / 414.3 MB, free: 21.18 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.403e-05/0.1984, allocations: 4 kB / 414.3 MB, free: 21.17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.085e-06/0.1984, allocations: 12 kB / 414.3 MB, free: 21.16 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1985, allocations: 0 / 414.3 MB, free: 21.16 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005145/0.199, allocations: 459.9 kB / 414.8 MB, free: 20.69 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.6e-05/0.199, allocations: 88.92 kB / 414.9 MB, free: 20.59 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.677e-05/0.199, allocations: 12.05 kB / 414.9 MB, free: 20.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001331/0.1992, allocations: 11.94 kB / 414.9 MB, free: 20.56 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.933e-05/0.1992, allocations: 27.97 kB / 414.9 MB, free: 20.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.658e-06/0.1992, allocations: 4 kB / 414.9 MB, free: 20.53 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.94e-05/0.1993, allocations: 118.1 kB / 415 MB, free: 20.42 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.1993, allocations: 0 / 415 MB, free: 20.42 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002384/0.1995, allocations: 63.94 kB / 415.1 MB, free: 20.36 MB / 298.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 7.848e-05/0.1996, allocations: 111.2 kB / 415.2 MB, free: 20.24 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003509/0.2, allocations: 207.8 kB / 415.4 MB, free: 20.04 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.644e-06/0.2, allocations: 4 kB / 415.4 MB, free: 20.03 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000162/0.2002, allocations: 107.8 kB / 415.5 MB, free: 19.93 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003646/0.2005, allocations: 40.28 kB / 415.6 MB, free: 19.89 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009946/0.2015, allocations: 1.024 MB / 416.6 MB, free: 18.83 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001181/0.2017, allocations: 0.7525 MB / 417.3 MB, free: 18.05 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.699e-05/0.2017, allocations: 21.94 kB / 417.3 MB, free: 18.03 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.311e-05/0.2018, allocations: 23.44 kB / 417.4 MB, free: 18.01 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2018, allocations: 0 / 417.4 MB, free: 18.01 MB / 298.7 MB Notification: Performance of Templates: time 0.003559/0.2054, allocations: 1.973 MB / 419.3 MB, free: 16.05 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.makefile (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) 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","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches