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.Sensors.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.Sensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass.s|mass.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors") translateModel(Modelica.Mechanics.Translational.Examples.Sensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass.s|mass.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008536/0.0008537, allocations: 180 kB / 16.71 MB, free: 5.074 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.182/1.182, allocations: 225.7 MB / 243.2 MB, free: 10.17 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.0007381/0.0007381, allocations: 93.69 kB / 294.4 MB, free: 9.727 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002216/0.0002216, allocations: 4 kB / 354.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1868/0.187, allocations: 50.42 MB / 404.6 MB, free: 31.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.001543/0.1886, allocations: 1.631 MB / 406.2 MB, free: 29.72 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005459/0.1892, allocations: 480.3 kB / 406.7 MB, free: 29.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.983e-05/0.1893, allocations: 4 kB / 406.7 MB, free: 29.24 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.704e-05/0.1894, allocations: 12.39 kB / 406.7 MB, free: 29.23 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.981e-05/0.1894, allocations: 28.67 kB / 406.7 MB, free: 29.2 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001658/0.1896, allocations: 41.2 kB / 406.8 MB, free: 29.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001912/0.1898, allocations: 135.5 kB / 406.9 MB, free: 29.03 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001771/0.19, allocations: 63.22 kB / 407 MB, free: 28.97 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.962e-05/0.1901, allocations: 55.27 kB / 407 MB, free: 28.92 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.438e-05/0.1902, allocations: 55.7 kB / 407.1 MB, free: 28.86 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.922e-05/0.1902, allocations: 8 kB / 407.1 MB, free: 28.86 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.996e-05/0.1902, allocations: 8 kB / 407.1 MB, free: 28.85 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.686e-05/0.1903, allocations: 27.91 kB / 407.1 MB, free: 28.82 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.34e-05/0.1903, allocations: 85.38 kB / 407.2 MB, free: 28.73 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001268/0.1905, allocations: 153 kB / 407.3 MB, free: 28.58 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.1905, allocations: 0 / 407.3 MB, free: 28.58 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1905, allocations: 0 / 407.3 MB, free: 28.58 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.1905, allocations: 1.594 kB / 407.3 MB, free: 28.58 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0004613/0.191, allocations: 425.3 kB / 407.8 MB, free: 28.12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.936e-05/0.191, allocations: 8.031 kB / 407.8 MB, free: 28.11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.291e-05/0.191, allocations: 20.75 kB / 407.8 MB, free: 28.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001319/0.1912, allocations: 196.2 kB / 408 MB, free: 27.86 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.542e-05/0.1912, allocations: 8.375 kB / 408 MB, free: 27.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.239e-05/0.1912, allocations: 32.2 kB / 408 MB, free: 27.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002737/0.1915, allocations: 137.9 kB / 408.2 MB, free: 27.68 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.1915, allocations: 0 / 408.2 MB, free: 27.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.512e-05/0.1916, allocations: 8 kB / 408.2 MB, free: 27.68 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.1916, allocations: 4 kB / 408.2 MB, free: 27.67 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001741/0.1918, allocations: 104.2 kB / 408.3 MB, free: 27.57 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005741/0.1923, allocations: 0.5328 MB / 408.8 MB, free: 26.98 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000124/0.1925, allocations: 74.55 kB / 408.9 MB, free: 26.9 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.662e-05/0.1925, allocations: 32.84 kB / 408.9 MB, free: 26.86 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.475e-05/0.1926, allocations: 4 kB / 408.9 MB, free: 26.86 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.565e-05/0.1926, allocations: 34.56 kB / 408.9 MB, free: 26.82 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.082e-06/0.1926, allocations: 0 / 408.9 MB, free: 26.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0007464/0.1933, allocations: 0.6032 MB / 409.5 MB, free: 26.12 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.941e-05/0.1934, allocations: 59.28 kB / 409.6 MB, free: 26.05 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.751e-05/0.1934, allocations: 133.7 kB / 409.7 MB, free: 25.91 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.895e-06/0.1935, allocations: 29.98 kB / 409.8 MB, free: 25.88 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.731e-05/0.1935, allocations: 132 kB / 409.9 MB, free: 25.74 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.877e-05/0.1935, allocations: 31.47 kB / 409.9 MB, free: 25.71 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.671e-06/0.1935, allocations: 7.938 kB / 409.9 MB, free: 25.7 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.646e-05/0.1936, allocations: 330.8 kB / 410.3 MB, free: 25.37 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.577e-05/0.1937, allocations: 31.98 kB / 410.3 MB, free: 25.34 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.992e-05/0.1937, allocations: 90.73 kB / 410.4 MB, free: 25.23 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001389/0.1939, allocations: 134.7 kB / 410.5 MB, free: 25.07 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.1939, allocations: 4 kB / 410.5 MB, free: 25.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000206/0.1941, allocations: 153.4 kB / 410.7 MB, free: 24.91 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.171e-05/0.1941, allocations: 4 kB / 410.7 MB, free: 24.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.588e-06/0.1941, allocations: 4 kB / 410.7 MB, free: 24.9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.1942, allocations: 0 / 410.7 MB, free: 24.9 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000139/0.1943, allocations: 44.17 kB / 410.7 MB, free: 24.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-06/0.1943, allocations: 11.86 kB / 410.7 MB, free: 24.85 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.446e-05/0.1944, allocations: 8 kB / 410.7 MB, free: 24.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.001e-05/0.1944, allocations: 12 kB / 410.7 MB, free: 24.83 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (19): * Single equations (assignments): 19 * 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 5.712e-05/0.1945, allocations: 125.8 kB / 410.9 MB, free: 24.7 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.479e-05/0.1945, allocations: 7.906 kB / 410.9 MB, free: 24.69 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.834e-05/0.1945, allocations: 12.38 kB / 410.9 MB, free: 24.67 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.1945, allocations: 8.031 kB / 410.9 MB, free: 24.66 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.1945, allocations: 7.938 kB / 410.9 MB, free: 24.66 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.796e-06/0.1945, allocations: 3.984 kB / 410.9 MB, free: 24.65 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000367/0.1949, allocations: 452 kB / 411.3 MB, free: 24.15 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.1949, allocations: 96 / 411.3 MB, free: 24.15 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001445/0.1951, allocations: 35.92 kB / 411.4 MB, free: 24.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.1951, allocations: 4 kB / 411.4 MB, free: 24.11 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.567e-06/0.1951, allocations: 0 / 411.4 MB, free: 24.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.1951, allocations: 0 / 411.4 MB, free: 24.11 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1951, allocations: 4 kB / 411.4 MB, free: 24.11 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002577/0.1954, allocations: 260.9 kB / 411.6 MB, free: 23.83 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.153e-05/0.1954, allocations: 93.03 kB / 411.7 MB, free: 23.72 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.715e-05/0.1954, allocations: 0 / 411.7 MB, free: 23.72 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.726e-05/0.1955, allocations: 4 kB / 411.7 MB, free: 23.71 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.801e-05/0.1956, allocations: 11.98 kB / 411.8 MB, free: 23.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.001e-06/0.1956, allocations: 4 kB / 411.8 MB, free: 23.7 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.362e-05/0.1956, allocations: 99.77 kB / 411.9 MB, free: 23.6 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1956, allocations: 4.062 kB / 411.9 MB, free: 23.6 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000337/0.196, allocations: 24 kB / 411.9 MB, free: 23.57 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (mass.s,mass.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 (11): * Single equations (assignments): 11 * 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 8.043e-05/0.1961, allocations: 107.2 kB / 412 MB, free: 23.46 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000188/0.1962, allocations: 91.83 kB / 412.1 MB, free: 23.37 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1963, allocations: 4.375 kB / 412.1 MB, free: 23.37 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.703e-05/0.1963, allocations: 39.92 kB / 412.1 MB, free: 23.33 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002831/0.1966, allocations: 20.09 kB / 412.1 MB, free: 23.31 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005397/0.1972, allocations: 0.5191 MB / 412.7 MB, free: 22.76 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001035/0.1973, allocations: 0.716 MB / 413.4 MB, free: 22.02 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.159e-05/0.1973, allocations: 8.875 kB / 413.4 MB, free: 22 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.562e-05/0.1974, allocations: 15.44 kB / 413.4 MB, free: 21.99 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.1974, allocations: 0 / 413.4 MB, free: 21.99 MB / 298.7 MB Notification: Performance of Templates: time 0.002478/0.1999, allocations: 0.7965 MB / 414.2 MB, free: 21.2 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Sensors/Sensors.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches