Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009666/0.0009667, allocations: 195.9 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.311/1.311, allocations: 229.5 MB / 247.7 MB, free: 6.332 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008663/0.0008662, allocations: 99.42 kB / 299.9 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000231/0.0002311, allocations: 8 kB / 360.6 MB, free: 8.488 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.185/0.1853, allocations: 51.42 MB / 412 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.001939/0.1873, allocations: 2.352 MB / 414.4 MB, free: 23.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001113/0.1884, allocations: 0.9905 MB / 415.4 MB, free: 22.51 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001464/0.1886, allocations: 4 kB / 415.4 MB, free: 22.5 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002244/0.1888, allocations: 63.53 kB / 415.5 MB, free: 22.44 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002299/0.189, allocations: 123.1 kB / 415.6 MB, free: 22.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001608/0.1892, allocations: 71.92 kB / 415.6 MB, free: 22.25 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003007/0.1895, allocations: 422.3 kB / 416.1 MB, free: 21.84 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001388/0.1897, allocations: 99.34 kB / 416.2 MB, free: 21.74 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001124/0.1898, allocations: 143.5 kB / 416.3 MB, free: 21.6 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001644/0.1899, allocations: 163.2 kB / 416.5 MB, free: 21.44 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.419e-05/0.19, allocations: 20 kB / 416.5 MB, free: 21.42 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.329e-05/0.1901, allocations: 24 kB / 416.5 MB, free: 21.39 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.224e-05/0.1901, allocations: 67.67 kB / 416.6 MB, free: 21.33 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000143/0.1903, allocations: 196.9 kB / 416.8 MB, free: 21.13 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002624/0.1905, allocations: 419.9 kB / 417.2 MB, free: 20.72 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.1905, allocations: 0 / 417.2 MB, free: 20.72 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1906, allocations: 4 kB / 417.2 MB, free: 20.71 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.169e-05/0.1906, allocations: 0 / 417.2 MB, free: 20.71 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.0007778/0.1914, allocations: 0.6173 MB / 417.8 MB, free: 20.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.1914, allocations: 8.031 kB / 417.8 MB, free: 20.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.757e-05/0.1915, allocations: 40.56 kB / 417.8 MB, free: 20 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002718/0.1918, allocations: 303.3 kB / 418.1 MB, free: 19.66 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.822e-05/0.1919, allocations: 50.64 kB / 418.2 MB, free: 19.6 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.468e-05/0.1919, allocations: 20.38 kB / 418.2 MB, free: 19.58 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004109/0.1923, allocations: 321.6 kB / 418.5 MB, free: 19.23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.516e-05/0.1924, allocations: 3.984 kB / 418.5 MB, free: 19.22 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.673e-05/0.1924, allocations: 12 kB / 418.5 MB, free: 19.21 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.1924, allocations: 11.94 kB / 418.5 MB, free: 19.2 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003544/0.1928, allocations: 209.6 kB / 418.7 MB, free: 19 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001095/0.1939, allocations: 0.8103 MB / 419.6 MB, free: 18.14 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004735/0.1943, allocations: 283 kB / 419.8 MB, free: 17.85 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001865/0.1945, allocations: 120.8 kB / 419.9 MB, free: 17.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.574e-05/0.1946, allocations: 4 kB / 420 MB, free: 17.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.74e-05/0.1946, allocations: 38.56 kB / 420 MB, free: 17.68 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.302e-06/0.1946, allocations: 0 / 420 MB, free: 17.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.0008615/0.1955, allocations: 496.2 kB / 420.5 MB, free: 17.17 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.514e-05/0.1956, allocations: 320.4 kB / 420.8 MB, free: 16.78 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002085/0.1958, allocations: 279 kB / 421.1 MB, free: 16.5 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.221e-05/0.1958, allocations: 33.7 kB / 421.1 MB, free: 16.46 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.219e-05/0.1959, allocations: 168.7 kB / 421.3 MB, free: 16.29 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.865e-05/0.1959, allocations: 106.5 kB / 421.4 MB, free: 16.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.301e-05/0.196, allocations: 4 kB / 421.4 MB, free: 16.18 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.395e-05/0.196, allocations: 342.8 kB / 421.7 MB, free: 15.84 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001833/0.1962, allocations: 103.6 kB / 421.8 MB, free: 15.73 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002265/0.1964, allocations: 216.6 kB / 422 MB, free: 15.48 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003657/0.1968, allocations: 266.7 kB / 422.3 MB, free: 15.2 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.1968, allocations: 8 kB / 422.3 MB, free: 15.19 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005066/0.1973, allocations: 371.3 kB / 422.6 MB, free: 14.82 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.484e-05/0.1974, allocations: 33.7 kB / 422.7 MB, free: 14.78 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.1974, allocations: 0 / 422.7 MB, free: 14.78 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001348/0.1975, allocations: 40.94 kB / 422.7 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009837/0.1985, allocations: 203.8 kB / 422.9 MB, free: 14.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002653/0.2012, allocations: 3.078 MB / 426 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002407/0.2014, allocations: 35.81 kB / 426 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.302e-05/0.2015, allocations: 12 kB / 426 MB, free: 11.14 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 (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,2)} Notification: Performance of prepare postOptimizeDAE: time 0.000135/0.2016, allocations: 160.3 kB / 426.2 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.356e-05/0.2017, allocations: 35.56 kB / 426.2 MB, free: 10.95 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.394e-05/0.2017, allocations: 43.08 kB / 426.3 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.2018, allocations: 4 kB / 426.3 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.2018, allocations: 0 / 426.3 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004894/0.2023, allocations: 0.6569 MB / 426.9 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003397/0.2026, allocations: 389.1 kB / 427.3 MB, free: 9.707 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.2026, allocations: 0 / 427.3 MB, free: 9.707 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001254/0.2039, allocations: 263.7 kB / 427.6 MB, free: 9.449 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.219e-05/0.2039, allocations: 20.8 kB / 427.6 MB, free: 9.426 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.979e-05/0.204, allocations: 11.98 kB / 427.6 MB, free: 9.414 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002215/0.2062, allocations: 2.895 MB / 430.5 MB, free: 6.254 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2062, allocations: 4.031 kB / 430.5 MB, free: 6.25 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006786/0.2069, allocations: 0.5189 MB / 431 MB, free: 5.715 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001007/0.207, allocations: 132.8 kB / 431.2 MB, free: 5.566 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.348e-05/0.2071, allocations: 8 kB / 431.2 MB, free: 5.559 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002466/0.2073, allocations: 23.89 kB / 431.2 MB, free: 5.535 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.524e-05/0.2074, allocations: 27.91 kB / 431.2 MB, free: 5.508 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.771e-05/0.2074, allocations: 12 kB / 431.2 MB, free: 5.496 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001373/0.2076, allocations: 201.9 kB / 431.4 MB, free: 5.297 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2076, allocations: 0 / 431.4 MB, free: 5.297 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000333/0.2079, allocations: 103.9 kB / 431.5 MB, free: 5.195 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (openTank1.m,openTank1.H,openTank2.m,openTank2.H) * 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 (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 9.93e-05/0.208, allocations: 111.2 kB / 431.6 MB, free: 5.078 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001346/0.2094, allocations: 0.5876 MB / 432.2 MB, free: 4.465 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.2094, allocations: 0 / 432.2 MB, free: 4.465 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00135/0.2107, allocations: 450.4 kB / 432.7 MB, free: 4.012 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004896/0.2112, allocations: 85.83 kB / 432.7 MB, free: 3.93 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001357/0.2126, allocations: 1.05 MB / 433.8 MB, free: 2.848 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001629/0.2128, allocations: 0.7839 MB / 434.6 MB, free: 2.039 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001437/0.2129, allocations: 34.95 kB / 434.6 MB, free: 2.008 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.108e-05/0.213, allocations: 27.44 kB / 434.6 MB, free: 1.98 MB / 298.7 MB Notification: Performance of SimCode: time 4.01e-07/0.213, allocations: 4 kB / 434.6 MB, free: 1.977 MB / 298.7 MB Notification: Performance of Templates: time 0.008851/0.2219, allocations: 5.725 MB / 440.4 MB, free: 12.28 MB / 314.7 MB make -j1 -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches