Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/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_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_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001429/0.001429, allocations: 200.9 kB / 17.06 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.241/1.241, allocations: 226.6 MB / 244.3 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007236/0.0007237, allocations: 97.02 kB / 296.4 MB, free: 7.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001868/0.0001868, allocations: 4 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1757/0.1759, allocations: 51.3 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.001758/0.1777, allocations: 2.348 MB / 409.8 MB, free: 25.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007693/0.1785, allocations: 0.7412 MB / 410.6 MB, free: 24.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001032/0.1786, allocations: 4 kB / 410.6 MB, free: 24.74 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001628/0.1788, allocations: 48.45 kB / 410.6 MB, free: 24.7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001887/0.179, allocations: 125 kB / 410.8 MB, free: 24.57 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001296/0.1791, allocations: 66.94 kB / 410.8 MB, free: 24.51 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002492/0.1794, allocations: 382.5 kB / 411.2 MB, free: 24.14 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.1795, allocations: 78.19 kB / 411.3 MB, free: 24.05 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001006/0.1796, allocations: 142.9 kB / 411.4 MB, free: 23.92 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000146/0.1798, allocations: 175.2 kB / 411.6 MB, free: 23.75 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.99e-05/0.1798, allocations: 20 kB / 411.6 MB, free: 23.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.015e-05/0.1799, allocations: 24 kB / 411.6 MB, free: 23.7 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.809e-05/0.1799, allocations: 55.77 kB / 411.7 MB, free: 23.65 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.89e-05/0.18, allocations: 89.52 kB / 411.8 MB, free: 23.55 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001853/0.1802, allocations: 324 kB / 412.1 MB, free: 23.24 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.309e-06/0.1802, allocations: 0 / 412.1 MB, free: 23.24 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1802, allocations: 4 kB / 412.1 MB, free: 23.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.1802, allocations: 1.781 kB / 412.1 MB, free: 23.23 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.0007323/0.181, allocations: 0.621 MB / 412.7 MB, free: 22.56 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.817e-05/0.181, allocations: 8.031 kB / 412.7 MB, free: 22.55 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.763e-05/0.1811, allocations: 39.62 kB / 412.8 MB, free: 22.51 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002503/0.1813, allocations: 286.3 kB / 413 MB, free: 22.2 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.457e-05/0.1814, allocations: 54.08 kB / 413.1 MB, free: 22.13 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.453e-05/0.1814, allocations: 28 kB / 413.1 MB, free: 22.11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003953/0.1818, allocations: 321.1 kB / 413.4 MB, free: 21.75 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.267e-05/0.1819, allocations: 0 / 413.4 MB, free: 21.75 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.674e-05/0.1819, allocations: 19.92 kB / 413.4 MB, free: 21.73 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.1819, allocations: 8 kB / 413.5 MB, free: 21.73 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003436/0.1823, allocations: 209.6 kB / 413.7 MB, free: 21.52 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001037/0.1833, allocations: 0.8143 MB / 414.5 MB, free: 20.66 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004497/0.1838, allocations: 278.9 kB / 414.7 MB, free: 20.38 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001791/0.184, allocations: 124.8 kB / 414.9 MB, free: 20.25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.06e-05/0.184, allocations: 7.984 kB / 414.9 MB, free: 20.25 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.798e-05/0.184, allocations: 42.59 kB / 414.9 MB, free: 20.2 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.342e-06/0.184, allocations: 0 / 414.9 MB, free: 20.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.0008383/0.1849, allocations: 492.1 kB / 415.4 MB, free: 19.69 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.805e-05/0.1849, allocations: 320.4 kB / 415.7 MB, free: 19.3 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001867/0.1851, allocations: 279 kB / 416 MB, free: 19.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.377e-05/0.1852, allocations: 37.64 kB / 416 MB, free: 18.97 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.887e-05/0.1852, allocations: 168.8 kB / 416.2 MB, free: 18.8 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.67e-05/0.1853, allocations: 102.4 kB / 416.3 MB, free: 18.7 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.384e-05/0.1853, allocations: 8 kB / 416.3 MB, free: 18.69 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.944e-05/0.1854, allocations: 342.8 kB / 416.6 MB, free: 18.35 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000173/0.1855, allocations: 103.6 kB / 416.7 MB, free: 18.25 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002185/0.1858, allocations: 212.2 kB / 416.9 MB, free: 17.99 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001945/0.186, allocations: 143.9 kB / 417.1 MB, free: 17.85 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.186, allocations: 0 / 417.1 MB, free: 17.85 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004863/0.1865, allocations: 370.7 kB / 417.4 MB, free: 17.47 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.1865, allocations: 33.7 kB / 417.5 MB, free: 17.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.1865, allocations: 4.094 kB / 417.5 MB, free: 17.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001265/0.1867, allocations: 44.83 kB / 417.5 MB, free: 17.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000957/0.1876, allocations: 199.8 kB / 417.7 MB, free: 17.19 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002568/0.1902, allocations: 3.067 MB / 420.8 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002489/0.1905, allocations: 39.72 kB / 420.8 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.197e-05/0.1905, allocations: 15.95 kB / 420.8 MB, free: 13.8 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 (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.0001209/0.1906, allocations: 153.8 kB / 421 MB, free: 13.64 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.211e-05/0.1907, allocations: 39.62 kB / 421 MB, free: 13.61 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.832e-05/0.1907, allocations: 35.08 kB / 421.1 MB, free: 13.57 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.1907, allocations: 4 kB / 421.1 MB, free: 13.57 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.325e-06/0.1908, allocations: 0 / 421.1 MB, free: 13.57 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004526/0.1912, allocations: 0.6628 MB / 421.7 MB, free: 12.8 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002872/0.1915, allocations: 385.2 kB / 422.1 MB, free: 12.37 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1915, allocations: 4 kB / 422.1 MB, free: 12.37 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001219/0.1927, allocations: 247.8 kB / 422.3 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.302e-05/0.1928, allocations: 28.84 kB / 422.4 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.636e-05/0.1928, allocations: 0 / 422.4 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002097/0.1949, allocations: 2.906 MB / 425.3 MB, free: 8.918 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1949, allocations: 3.938 kB / 425.3 MB, free: 8.914 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006147/0.1956, allocations: 0.5155 MB / 425.8 MB, free: 8.379 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.32e-05/0.1957, allocations: 136.7 kB / 425.9 MB, free: 8.227 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.851e-05/0.1957, allocations: 8 kB / 425.9 MB, free: 8.219 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002476/0.196, allocations: 23.98 kB / 426 MB, free: 8.195 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.745e-05/0.196, allocations: 27.91 kB / 426 MB, free: 8.168 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.512e-05/0.1961, allocations: 8 kB / 426 MB, free: 8.16 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001281/0.1962, allocations: 201.9 kB / 426.2 MB, free: 7.965 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1962, allocations: 0 / 426.2 MB, free: 7.965 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003222/0.1965, allocations: 103.8 kB / 426.3 MB, free: 7.863 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 (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.0001141/0.1966, allocations: 119.1 kB / 426.4 MB, free: 7.738 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001314/0.198, allocations: 0.5683 MB / 427 MB, free: 7.145 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.198, allocations: 4 kB / 427 MB, free: 7.141 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001267/0.1993, allocations: 454.3 kB / 427.4 MB, free: 6.684 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004633/0.1997, allocations: 85.91 kB / 427.5 MB, free: 6.605 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001301/0.201, allocations: 1.05 MB / 428.6 MB, free: 5.523 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001356/0.2012, allocations: 0.7762 MB / 429.3 MB, free: 4.719 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.725e-05/0.2013, allocations: 27.44 kB / 429.4 MB, free: 4.691 MB / 298.7 MB Notification: Performance of SimCode: time 2.51e-07/0.2013, allocations: 0 / 429.4 MB, free: 4.691 MB / 298.7 MB Notification: Performance of Templates: time 0.00646/0.2077, allocations: 6.759 MB / 436.1 MB, free: 13.97 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches