Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002752/0.002757, allocations: 188.4 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.618/3.618, allocations: 205.4 MB / 222.5 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001814/0.001814, allocations: 102.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006201/0.0006206, allocations: 12 kB / 327 MB, free: 15.1 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1612/0.1619, allocations: 47.59 MB / 374.5 MB, free: 15.43 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.005151/0.1671, allocations: 2.181 MB / 376.7 MB, free: 13.23 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002615/0.1698, allocations: 0.7728 MB / 377.5 MB, free: 12.45 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000344/0.1702, allocations: 4 kB / 377.5 MB, free: 12.45 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003489/0.1706, allocations: 55.66 kB / 377.6 MB, free: 12.39 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007208/0.1713, allocations: 147.6 kB / 377.7 MB, free: 12.25 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004087/0.1718, allocations: 79.78 kB / 377.8 MB, free: 12.17 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001031/0.1728, allocations: 295.8 kB / 378.1 MB, free: 11.88 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000339/0.1732, allocations: 82.19 kB / 378.1 MB, free: 11.8 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003593/0.1736, allocations: 131.6 kB / 378.3 MB, free: 11.67 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004405/0.1741, allocations: 151.4 kB / 378.4 MB, free: 11.52 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001077/0.1742, allocations: 20 kB / 378.4 MB, free: 11.5 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001221/0.1743, allocations: 20 kB / 378.5 MB, free: 11.48 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001199/0.1745, allocations: 71.69 kB / 378.5 MB, free: 11.41 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001746/0.1747, allocations: 93.52 kB / 378.6 MB, free: 11.32 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006216/0.1753, allocations: 291.4 kB / 378.9 MB, free: 11.03 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.1753, allocations: 0 / 378.9 MB, free: 11.03 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.427e-06/0.1754, allocations: 0 / 378.9 MB, free: 11.03 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.426e-05/0.1754, allocations: 0 / 378.9 MB, free: 11.03 MB / 282.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.001921/0.1773, allocations: 0.621 MB / 379.5 MB, free: 10.36 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.309e-05/0.1774, allocations: 8.031 kB / 379.5 MB, free: 10.35 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002279/0.1776, allocations: 39.62 kB / 379.6 MB, free: 10.31 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007927/0.1784, allocations: 270.3 kB / 379.8 MB, free: 10 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002169/0.1787, allocations: 54.12 kB / 379.9 MB, free: 9.945 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.791e-05/0.1788, allocations: 28 kB / 379.9 MB, free: 9.918 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001135/0.18, allocations: 317.4 kB / 380.2 MB, free: 9.566 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.338e-05/0.1801, allocations: 0 / 380.2 MB, free: 9.566 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.169e-05/0.1801, allocations: 15.94 kB / 380.2 MB, free: 9.551 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.385e-05/0.1802, allocations: 4 kB / 380.2 MB, free: 9.547 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001051/0.1812, allocations: 213.6 kB / 380.5 MB, free: 9.34 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003936/0.1852, allocations: 0.7947 MB / 381.3 MB, free: 8.492 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002026/0.1873, allocations: 307.9 kB / 381.6 MB, free: 8.184 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.164e-05/0.1875, allocations: 4 kB / 381.6 MB, free: 8.18 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.25e-05/0.1876, allocations: 38.56 kB / 381.6 MB, free: 8.133 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 4.579e-06/0.1876, allocations: 0 / 381.6 MB, free: 8.133 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.002858/0.1904, allocations: 488.9 kB / 382.1 MB, free: 7.629 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000275/0.1908, allocations: 316.4 kB / 382.4 MB, free: 7.246 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006488/0.1915, allocations: 263 kB / 382.6 MB, free: 6.973 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001234/0.1916, allocations: 37.64 kB / 382.7 MB, free: 6.93 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002623/0.1919, allocations: 215.2 kB / 382.9 MB, free: 6.715 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002203/0.1921, allocations: 110.4 kB / 383 MB, free: 6.605 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.431e-05/0.1922, allocations: 8 kB / 383 MB, free: 6.598 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002285/0.1924, allocations: 326.8 kB / 383.3 MB, free: 6.27 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006119/0.1931, allocations: 95.95 kB / 383.4 MB, free: 6.176 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008586/0.194, allocations: 215.7 kB / 383.6 MB, free: 5.922 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006775/0.1947, allocations: 139 kB / 383.8 MB, free: 5.781 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/0.1947, allocations: 0 / 383.8 MB, free: 5.781 MB / 282.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001799/0.1965, allocations: 357.3 kB / 384.1 MB, free: 5.418 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.701e-05/0.1967, allocations: 29.7 kB / 384.1 MB, free: 5.383 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.661e-05/0.1967, allocations: 4 kB / 384.1 MB, free: 5.379 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003138/0.197, allocations: 36.78 kB / 384.2 MB, free: 5.34 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00276/0.1998, allocations: 207.9 kB / 384.4 MB, free: 5.137 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009485/0.2094, allocations: 3.106 MB / 387.5 MB, free: 1.773 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009282/0.2104, allocations: 43.86 kB / 387.5 MB, free: 1.73 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.627e-05/0.2105, allocations: 11.94 kB / 387.5 MB, free: 1.719 MB / 282.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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 2} Notification: Performance of prepare postOptimizeDAE: time 0.0004959/0.211, allocations: 157.8 kB / 387.7 MB, free: 1.555 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002213/0.2113, allocations: 35.62 kB / 387.7 MB, free: 1.52 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000199/0.2115, allocations: 35.08 kB / 387.8 MB, free: 1.484 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-05/0.2115, allocations: 8 kB / 387.8 MB, free: 1.477 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.17e-05/0.2115, allocations: 0 / 387.8 MB, free: 1.477 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001838/0.2134, allocations: 0.6659 MB / 388.4 MB, free: 0.7031 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001195/0.2147, allocations: 373.2 kB / 388.8 MB, free: 296 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.2147, allocations: 0 / 388.8 MB, free: 296 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003493/0.2182, allocations: 259.7 kB / 389.1 MB, free: 36 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002029/0.2185, allocations: 20.84 kB / 389.1 MB, free: 12 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.081e-05/0.2186, allocations: 8 kB / 389.1 MB, free: 4 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.399/0.6176, allocations: 2.918 MB / 392 MB, free: 18.28 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.6176, allocations: 1.906 kB / 392 MB, free: 18.28 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002213/0.6199, allocations: 0.5202 MB / 392.5 MB, free: 18.14 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003441/0.6203, allocations: 138.7 kB / 392.7 MB, free: 18.05 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001117/0.6204, allocations: 8.859 kB / 392.7 MB, free: 18.05 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007705/0.6212, allocations: 19.47 kB / 392.7 MB, free: 18.05 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002141/0.6215, allocations: 21.95 kB / 392.7 MB, free: 18.05 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.91e-05/0.6215, allocations: 9.797 kB / 392.7 MB, free: 18.05 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005054/0.6221, allocations: 183.1 kB / 392.9 MB, free: 17.97 MB / 282.7 MB Notification: Performance of sort global known variables: time 9.72e-07/0.6221, allocations: 3.906 kB / 392.9 MB, free: 17.97 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001191/0.6233, allocations: 108.8 kB / 393 MB, free: 17.96 MB / 282.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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002858/0.6237, allocations: 108.8 kB / 393.1 MB, free: 17.88 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.004139/0.6278, allocations: 0.5789 MB / 393.7 MB, free: 17.7 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.228e-05/0.6279, allocations: 1.375 kB / 393.7 MB, free: 17.7 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003859/0.6318, allocations: 446.1 kB / 394.1 MB, free: 17.59 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00119/0.6331, allocations: 82.23 kB / 394.2 MB, free: 17.58 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004487/0.6376, allocations: 1.053 MB / 395.3 MB, free: 17 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005019/0.6382, allocations: 0.78 MB / 396 MB, free: 16.3 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002207/0.6384, allocations: 32.36 kB / 396.1 MB, free: 16.29 MB / 282.7 MB Notification: Performance of SimCode: time 2.074e-06/0.6385, allocations: 0 / 396.1 MB, free: 16.29 MB / 282.7 MB Notification: Performance of Templates: time 0.02569/0.6642, allocations: 6.292 MB / 402.4 MB, free: 14.84 MB / 282.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches