Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.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.Translational.Examples.Oscillator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper1.s_rel|damper1.v_rel|mass1.s|mass1.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator") translateModel(Modelica.Mechanics.Translational.Examples.Oscillator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper1.s_rel|damper1.v_rel|mass1.s|mass1.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000806/0.000806, allocations: 178.5 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.232/1.232, allocations: 225.7 MB / 243.2 MB, free: 8.445 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.0007187/0.0007187, allocations: 96.25 kB / 294.4 MB, free: 9.504 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002188/0.0002188, allocations: 7.938 kB / 354.2 MB, free: 13.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1863/0.1865, allocations: 50.41 MB / 404.6 MB, free: 31.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.001663/0.1882, allocations: 2.033 MB / 406.6 MB, free: 29.28 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005983/0.1888, allocations: 0.5499 MB / 407.2 MB, free: 28.73 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001004/0.189, allocations: 6.719 kB / 407.2 MB, free: 28.72 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001014/0.1891, allocations: 31.77 kB / 407.2 MB, free: 28.69 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.879e-05/0.1892, allocations: 51.55 kB / 407.2 MB, free: 28.64 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001685/0.1893, allocations: 52.42 kB / 407.3 MB, free: 28.59 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002022/0.1896, allocations: 243.4 kB / 407.5 MB, free: 28.35 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001489/0.1897, allocations: 80.02 kB / 407.6 MB, free: 28.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001012/0.1898, allocations: 87.64 kB / 407.7 MB, free: 28.19 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001042/0.1899, allocations: 91.48 kB / 407.8 MB, free: 28.1 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.402e-05/0.19, allocations: 12 kB / 407.8 MB, free: 28.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.927e-05/0.19, allocations: 12 kB / 407.8 MB, free: 28.07 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.916e-05/0.19, allocations: 35.83 kB / 407.8 MB, free: 28.04 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.783e-05/0.1901, allocations: 137 kB / 408 MB, free: 27.9 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001606/0.1903, allocations: 232.6 kB / 408.2 MB, free: 27.67 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1903, allocations: 3.938 kB / 408.2 MB, free: 27.67 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1903, allocations: 1.219 kB / 408.2 MB, free: 27.67 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.359e-06/0.1903, allocations: 4 kB / 408.2 MB, free: 27.66 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0005235/0.1909, allocations: 0.496 MB / 408.7 MB, free: 27.12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.04e-05/0.1909, allocations: 8.031 kB / 408.7 MB, free: 27.11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.219e-05/0.191, allocations: 24.66 kB / 408.7 MB, free: 27.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001616/0.1911, allocations: 243.2 kB / 409 MB, free: 26.81 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.491e-05/0.1911, allocations: 16.81 kB / 409 MB, free: 26.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.101e-05/0.1912, allocations: 16.38 kB / 409 MB, free: 26.78 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003181/0.1915, allocations: 221.3 kB / 409.2 MB, free: 26.55 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/0.1915, allocations: 7.891 kB / 409.2 MB, free: 26.54 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.746e-05/0.1915, allocations: 12 kB / 409.2 MB, free: 26.53 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-06/0.1916, allocations: 4 kB / 409.2 MB, free: 26.53 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000271/0.1918, allocations: 159.8 kB / 409.4 MB, free: 26.37 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008988/0.1927, allocations: 0.7871 MB / 410.2 MB, free: 25.52 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003241/0.1931, allocations: 209 kB / 410.4 MB, free: 25.3 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001821/0.1933, allocations: 109.7 kB / 410.5 MB, free: 25.18 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.525e-05/0.1933, allocations: 0 / 410.5 MB, free: 25.18 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.912e-05/0.1933, allocations: 42.69 kB / 410.5 MB, free: 25.13 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.172e-06/0.1933, allocations: 0 / 410.5 MB, free: 25.13 MB / 298.7 MB Notification: Performance of matching and sorting (n=26): time 0.001212/0.1945, allocations: 0.8803 MB / 411.4 MB, free: 24.16 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.209e-05/0.1946, allocations: 81.11 kB / 411.5 MB, free: 24.06 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001087/0.1947, allocations: 175.5 kB / 411.7 MB, free: 23.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.301e-05/0.1947, allocations: 33.7 kB / 411.7 MB, free: 23.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.982e-05/0.1948, allocations: 140.4 kB / 411.8 MB, free: 23.7 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.358e-05/0.1948, allocations: 98.56 kB / 411.9 MB, free: 23.61 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.297e-06/0.1948, allocations: 4 kB / 411.9 MB, free: 23.6 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.647e-05/0.1949, allocations: 330.8 kB / 412.3 MB, free: 23.27 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001241/0.195, allocations: 67.97 kB / 412.3 MB, free: 23.2 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001312/0.1952, allocations: 112.2 kB / 412.4 MB, free: 23.08 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002626/0.1954, allocations: 193 kB / 412.6 MB, free: 22.88 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.153e-06/0.1954, allocations: 0 / 412.6 MB, free: 22.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003275/0.1958, allocations: 254.5 kB / 412.9 MB, free: 22.62 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.1958, allocations: 7.984 kB / 412.9 MB, free: 22.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.1958, allocations: 3.938 kB / 412.9 MB, free: 22.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.1958, allocations: 7.938 kB / 412.9 MB, free: 22.6 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002223/0.196, allocations: 63.91 kB / 413 MB, free: 22.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.1961, allocations: 4 kB / 413 MB, free: 22.54 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.89e-05/0.1962, allocations: 15.91 kB / 413 MB, free: 22.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.338e-05/0.1962, allocations: 8 kB / 413 MB, free: 22.51 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (32): * Single equations (assignments): 32 * 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.708e-05/0.1963, allocations: 152.8 kB / 413.1 MB, free: 22.36 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.788e-05/0.1963, allocations: 19.81 kB / 413.2 MB, free: 22.34 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.643e-05/0.1964, allocations: 25.88 kB / 413.2 MB, free: 22.31 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.1964, allocations: 0 / 413.2 MB, free: 22.31 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.1964, allocations: 4 kB / 413.2 MB, free: 22.31 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.1964, allocations: 3.984 kB / 413.2 MB, free: 22.3 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005859/0.197, allocations: 0.5864 MB / 413.8 MB, free: 21.65 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.197, allocations: 4 kB / 413.8 MB, free: 21.65 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002402/0.1973, allocations: 59.89 kB / 413.8 MB, free: 21.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.1973, allocations: 4 kB / 413.8 MB, free: 21.59 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.479e-05/0.1973, allocations: 8.094 kB / 413.9 MB, free: 21.58 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.1973, allocations: 4 kB / 413.9 MB, free: 21.57 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.1973, allocations: 7.875 kB / 413.9 MB, free: 21.57 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004833/0.1978, allocations: 493.3 kB / 414.3 MB, free: 21.06 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.118e-05/0.1978, allocations: 100.8 kB / 414.4 MB, free: 20.94 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.861e-05/0.1979, allocations: 8.031 kB / 414.4 MB, free: 20.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001532/0.198, allocations: 12 kB / 414.5 MB, free: 20.92 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.454e-05/0.1981, allocations: 31.84 kB / 414.5 MB, free: 20.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.117e-05/0.1981, allocations: 8 kB / 414.5 MB, free: 20.88 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.275e-05/0.1982, allocations: 132.3 kB / 414.6 MB, free: 20.75 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1982, allocations: 0 / 414.6 MB, free: 20.75 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002719/0.1984, allocations: 48 kB / 414.7 MB, free: 20.71 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (damper1.s_rel,damper1.v_rel,mass1.s,mass1.v) * 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 (26): * Single equations (assignments): 26 * 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.0001139/0.1986, allocations: 112.3 kB / 414.8 MB, free: 20.59 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003108/0.1989, allocations: 191.7 kB / 415 MB, free: 20.4 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.1989, allocations: 0 / 415 MB, free: 20.4 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001431/0.199, allocations: 100.4 kB / 415.1 MB, free: 20.3 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004461/0.1995, allocations: 43.95 kB / 415.1 MB, free: 20.26 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009007/0.2004, allocations: 0.8533 MB / 416 MB, free: 19.37 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001578/0.2006, allocations: 0.7559 MB / 416.7 MB, free: 18.59 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.859e-05/0.2007, allocations: 21.94 kB / 416.7 MB, free: 18.57 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.199e-05/0.2007, allocations: 23.42 kB / 416.8 MB, free: 18.54 MB / 298.7 MB Notification: Performance of SimCode: time 2.71e-07/0.2007, allocations: 4 kB / 416.8 MB, free: 18.54 MB / 298.7 MB Notification: Performance of Templates: time 0.003773/0.2045, allocations: 1.873 MB / 418.6 MB, free: 16.68 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Oscillator/Oscillator.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches