Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.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.Thermal.HeatTransfer.Examples.TwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass1.T|mass2.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") translateModel(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass1.T|mass2.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008377/0.0008376, allocations: 183.2 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.25/1.25, allocations: 225.7 MB / 243.2 MB, free: 8.484 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.0007545/0.0007546, allocations: 94.66 kB / 294.4 MB, free: 9.492 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002723/0.0002723, allocations: 4 kB / 354.2 MB, free: 13.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.186/0.1863, allocations: 50.4 MB / 404.6 MB, free: 31.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.001172/0.1875, allocations: 1.325 MB / 405.9 MB, free: 30 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006061/0.1881, allocations: 0.5598 MB / 406.4 MB, free: 29.41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.585e-05/0.1881, allocations: 6.125 kB / 406.5 MB, free: 29.41 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.753e-05/0.1882, allocations: 3.984 kB / 406.5 MB, free: 29.41 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.987e-05/0.1882, allocations: 27.77 kB / 406.5 MB, free: 29.38 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001497/0.1884, allocations: 19.98 kB / 406.5 MB, free: 29.36 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.108e-05/0.1885, allocations: 100.4 kB / 406.6 MB, free: 29.26 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001087/0.1886, allocations: 32.88 kB / 406.6 MB, free: 29.23 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.079e-05/0.1886, allocations: 31.86 kB / 406.7 MB, free: 29.2 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.771e-05/0.1887, allocations: 32.95 kB / 406.7 MB, free: 29.17 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.388e-05/0.1887, allocations: 8 kB / 406.7 MB, free: 29.16 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.205e-05/0.1888, allocations: 7.5 kB / 406.7 MB, free: 29.16 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.597e-05/0.1888, allocations: 23.91 kB / 406.7 MB, free: 29.13 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.292e-05/0.1889, allocations: 65.5 kB / 406.8 MB, free: 29.06 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000107/0.189, allocations: 97.2 kB / 406.9 MB, free: 28.97 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.189, allocations: 0 / 406.9 MB, free: 28.97 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.189, allocations: 0 / 406.9 MB, free: 28.97 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.517e-06/0.189, allocations: 0 / 406.9 MB, free: 28.97 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.000316/0.1893, allocations: 364.6 kB / 407.2 MB, free: 28.57 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.928e-05/0.1894, allocations: 11.62 kB / 407.3 MB, free: 28.56 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001015/0.1895, allocations: 12.83 kB / 407.3 MB, free: 28.55 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.749e-05/0.1896, allocations: 168.3 kB / 407.4 MB, free: 28.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.372e-05/0.1896, allocations: 8.375 kB / 407.4 MB, free: 28.34 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.524e-05/0.1896, allocations: 12.28 kB / 407.5 MB, free: 28.32 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000136/0.1898, allocations: 93.92 kB / 407.5 MB, free: 28.23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.1898, allocations: 0 / 407.5 MB, free: 28.23 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.014e-05/0.1898, allocations: 4 kB / 407.6 MB, free: 28.22 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.1898, allocations: 5.531 kB / 407.6 MB, free: 28.22 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.004e-05/0.1899, allocations: 55.91 kB / 407.6 MB, free: 28.16 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004918/0.1904, allocations: 397.4 kB / 408 MB, free: 27.73 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.937e-05/0.1905, allocations: 70.5 kB / 408.1 MB, free: 27.65 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.259e-05/0.1906, allocations: 36.84 kB / 408.1 MB, free: 27.61 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.998e-06/0.1906, allocations: 0 / 408.1 MB, free: 27.61 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.439e-05/0.1906, allocations: 34.55 kB / 408.1 MB, free: 27.57 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 8.62e-07/0.1906, allocations: 4 kB / 408.1 MB, free: 27.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001663/0.1908, allocations: 93.7 kB / 408.2 MB, free: 27.46 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.613e-05/0.1908, allocations: 51.41 kB / 408.3 MB, free: 27.4 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.959e-05/0.1908, allocations: 113.8 kB / 408.4 MB, free: 27.28 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.043e-06/0.1909, allocations: 25.7 kB / 408.4 MB, free: 27.25 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.987e-05/0.1909, allocations: 103.8 kB / 408.5 MB, free: 27.14 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.685e-05/0.1909, allocations: 27.64 kB / 408.6 MB, free: 27.12 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.737e-06/0.1909, allocations: 0 / 408.6 MB, free: 27.12 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.623e-05/0.191, allocations: 318.8 kB / 408.9 MB, free: 26.8 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.42e-05/0.191, allocations: 27.98 kB / 408.9 MB, free: 26.77 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.166e-05/0.1911, allocations: 42.56 kB / 408.9 MB, free: 26.72 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.029e-05/0.1911, allocations: 66.52 kB / 409 MB, free: 26.64 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.1911, allocations: 0 / 409 MB, free: 26.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001174/0.1913, allocations: 113.4 kB / 409.1 MB, free: 26.53 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.028e-05/0.1913, allocations: 12.06 kB / 409.1 MB, free: 26.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.217e-06/0.1913, allocations: 0 / 409.1 MB, free: 26.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.1913, allocations: 3.938 kB / 409.1 MB, free: 26.51 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001112/0.1914, allocations: 23.98 kB / 409.1 MB, free: 26.49 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.1914, allocations: 4 kB / 409.1 MB, free: 26.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.282e-05/0.1915, allocations: 11.84 kB / 409.2 MB, free: 26.47 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.542e-06/0.1915, allocations: 3.938 kB / 409.2 MB, free: 26.47 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (13): * Single equations (assignments): 13 * 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 4.982e-05/0.1916, allocations: 125.7 kB / 409.3 MB, free: 26.34 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.216e-05/0.1916, allocations: 8 kB / 409.3 MB, free: 26.33 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.449e-05/0.1916, allocations: 8.375 kB / 409.3 MB, free: 26.32 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.1916, allocations: 7.938 kB / 409.3 MB, free: 26.31 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.1916, allocations: 0 / 409.3 MB, free: 26.31 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.1916, allocations: 3.984 kB / 409.3 MB, free: 26.3 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001232/0.1918, allocations: 181.6 kB / 409.5 MB, free: 26.08 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.016e-05/0.1918, allocations: 0 / 409.5 MB, free: 26.08 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.608e-05/0.1919, allocations: 19.98 kB / 409.5 MB, free: 26.06 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.1919, allocations: 0 / 409.5 MB, free: 26.06 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.265e-06/0.1919, allocations: 8 kB / 409.5 MB, free: 26.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1919, allocations: 3.938 kB / 409.5 MB, free: 26.05 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.1919, allocations: 4 kB / 409.5 MB, free: 26.04 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001417/0.1921, allocations: 191.5 kB / 409.7 MB, free: 25.84 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.626e-05/0.1921, allocations: 84.95 kB / 409.8 MB, free: 25.74 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.38e-05/0.1921, allocations: 4.25 kB / 409.8 MB, free: 25.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.087e-05/0.1922, allocations: 11.97 kB / 409.8 MB, free: 25.72 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.276e-05/0.1922, allocations: 3.984 kB / 409.8 MB, free: 25.72 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.308e-06/0.1922, allocations: 4 kB / 409.8 MB, free: 25.71 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.065e-05/0.1922, allocations: 87.34 kB / 409.9 MB, free: 25.63 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.42e-07/0.1923, allocations: 0 / 409.9 MB, free: 25.63 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000208/0.1925, allocations: 23.94 kB / 409.9 MB, free: 25.61 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mass1.T,mass2.T) * 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 (8): * Single equations (assignments): 8 * 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.863e-05/0.1925, allocations: 107.2 kB / 410 MB, free: 25.49 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001036/0.1927, allocations: 52.31 kB / 410.1 MB, free: 25.44 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.1927, allocations: 0 / 410.1 MB, free: 25.44 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.716e-05/0.1927, allocations: 31.92 kB / 410.1 MB, free: 25.41 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002498/0.1929, allocations: 12.11 kB / 410.1 MB, free: 25.4 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004951/0.1935, allocations: 382.1 kB / 410.5 MB, free: 25 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001259/0.1936, allocations: 0.6965 MB / 411.2 MB, free: 24.27 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.48e-05/0.1936, allocations: 7.938 kB / 411.2 MB, free: 24.27 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.448e-05/0.1937, allocations: 11.44 kB / 411.2 MB, free: 24.25 MB / 298.7 MB Notification: Performance of SimCode: time 3.5e-07/0.1937, allocations: 0 / 411.2 MB, free: 24.25 MB / 298.7 MB Notification: Performance of Templates: time 0.002081/0.1958, allocations: 0.5846 MB / 411.8 MB, free: 23.67 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & ./Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/TwoMasses/TwoMasses.csv","../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches