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: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_trunk_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_trunk_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000934/0.000934, allocations: 197.4 kB / 17.38 MB, free: 4.316 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.205/1.205, allocations: 226.5 MB / 244.7 MB, free: 6.512 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007408/0.0007408, allocations: 106 kB / 296.7 MB, free: 6.703 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001992/0.0001992, allocations: 4 kB / 356.8 MB, free: 10.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1725/0.1727, allocations: 51.3 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.001713/0.1745, allocations: 2.356 MB / 410.5 MB, free: 25.32 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007921/0.1753, allocations: 0.734 MB / 411.2 MB, free: 24.59 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001018/0.1754, allocations: 7.938 kB / 411.2 MB, free: 24.58 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001613/0.1756, allocations: 55.61 kB / 411.3 MB, free: 24.53 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001882/0.1758, allocations: 121.5 kB / 411.4 MB, free: 24.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001248/0.1759, allocations: 59.94 kB / 411.5 MB, free: 24.35 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002634/0.1762, allocations: 406.4 kB / 411.9 MB, free: 23.95 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001278/0.1763, allocations: 87.14 kB / 411.9 MB, free: 23.87 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.799e-05/0.1764, allocations: 139.5 kB / 412.1 MB, free: 23.73 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001336/0.1766, allocations: 159.4 kB / 412.2 MB, free: 23.58 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.973e-05/0.1766, allocations: 24 kB / 412.3 MB, free: 23.55 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.884e-05/0.1767, allocations: 23.94 kB / 412.3 MB, free: 23.53 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.11e-05/0.1767, allocations: 71.67 kB / 412.3 MB, free: 23.46 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001138/0.1768, allocations: 195.6 kB / 412.5 MB, free: 23.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001766/0.177, allocations: 320.3 kB / 412.8 MB, free: 22.95 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.177, allocations: 0 / 412.8 MB, free: 22.95 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.177, allocations: 0 / 412.8 MB, free: 22.95 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.177, allocations: 0 / 412.8 MB, free: 22.95 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.0007008/0.1778, allocations: 0.6212 MB / 413.5 MB, free: 22.28 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.092e-05/0.1778, allocations: 8.031 kB / 413.5 MB, free: 22.27 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.107e-05/0.1779, allocations: 71.12 kB / 413.5 MB, free: 22.19 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.703e-05/0.1779, allocations: 44.47 kB / 413.6 MB, free: 22.15 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002459/0.1782, allocations: 307.4 kB / 413.9 MB, free: 21.81 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.48e-05/0.1783, allocations: 50.83 kB / 413.9 MB, free: 21.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.226e-05/0.1783, allocations: 24.38 kB / 414 MB, free: 21.73 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004225/0.1787, allocations: 343.2 kB / 414.3 MB, free: 21.36 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.1788, allocations: 0 / 414.3 MB, free: 21.36 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.547e-05/0.1788, allocations: 12 kB / 414.3 MB, free: 21.34 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.551e-06/0.1788, allocations: 4 kB / 414.3 MB, free: 21.34 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003507/0.1792, allocations: 218.1 kB / 414.5 MB, free: 21.12 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001057/0.1802, allocations: 0.8304 MB / 415.4 MB, free: 20.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004465/0.1807, allocations: 278.9 kB / 415.6 MB, free: 19.96 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001747/0.1809, allocations: 128.8 kB / 415.8 MB, free: 19.84 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.008e-05/0.1809, allocations: 7.984 kB / 415.8 MB, free: 19.83 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.426e-05/0.1809, allocations: 42.56 kB / 415.8 MB, free: 19.78 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.262e-06/0.1809, allocations: 0 / 415.8 MB, free: 19.78 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.000829/0.1818, allocations: 492.2 kB / 416.3 MB, free: 19.27 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.087e-05/0.1818, allocations: 320.4 kB / 416.6 MB, free: 18.88 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001816/0.182, allocations: 275 kB / 416.9 MB, free: 18.6 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.586e-05/0.182, allocations: 33.7 kB / 416.9 MB, free: 18.56 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.89e-05/0.1821, allocations: 180.5 kB / 417.1 MB, free: 18.38 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.777e-05/0.1822, allocations: 106.4 kB / 417.2 MB, free: 18.27 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.471e-05/0.1822, allocations: 4 kB / 417.2 MB, free: 18.27 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.138e-05/0.1822, allocations: 350.7 kB / 417.5 MB, free: 17.92 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001724/0.1824, allocations: 95.7 kB / 417.6 MB, free: 17.82 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00023/0.1827, allocations: 216.8 kB / 417.8 MB, free: 17.57 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003617/0.183, allocations: 268.1 kB / 418.1 MB, free: 17.29 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.183, allocations: 4 kB / 418.1 MB, free: 17.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005/0.1836, allocations: 373.6 kB / 418.5 MB, free: 16.91 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.1836, allocations: 33.7 kB / 418.5 MB, free: 16.87 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.1836, allocations: 3.984 kB / 418.5 MB, free: 16.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001263/0.1837, allocations: 36.84 kB / 418.5 MB, free: 16.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009118/0.1846, allocations: 200 kB / 418.7 MB, free: 16.63 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002504/0.1872, allocations: 3.074 MB / 421.8 MB, free: 13.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002782/0.1875, allocations: 51.77 kB / 421.9 MB, free: 13.24 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.207e-05/0.1875, allocations: 12 kB / 421.9 MB, free: 13.23 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.0001325/0.1876, allocations: 157.7 kB / 422 MB, free: 13.06 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.116e-05/0.1877, allocations: 31.62 kB / 422.1 MB, free: 13.03 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.049e-05/0.1878, allocations: 39.08 kB / 422.1 MB, free: 12.99 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.1878, allocations: 4 kB / 422.1 MB, free: 12.99 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.023e-06/0.1878, allocations: 0 / 422.1 MB, free: 12.99 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004538/0.1882, allocations: 0.655 MB / 422.8 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002972/0.1885, allocations: 397.2 kB / 423.1 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.1885, allocations: 0 / 423.1 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001159/0.1897, allocations: 255.7 kB / 423.4 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.887e-05/0.1898, allocations: 20.86 kB / 423.4 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.932e-05/0.1898, allocations: 7.984 kB / 423.4 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002099/0.1919, allocations: 2.898 MB / 426.3 MB, free: 8.34 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1919, allocations: 0 / 426.3 MB, free: 8.34 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006555/0.1926, allocations: 0.5195 MB / 426.8 MB, free: 7.801 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001081/0.1927, allocations: 136.7 kB / 427 MB, free: 7.648 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.858e-05/0.1928, allocations: 8 kB / 427 MB, free: 7.641 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002451/0.193, allocations: 27.92 kB / 427 MB, free: 7.613 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.922e-05/0.1931, allocations: 23.91 kB / 427 MB, free: 7.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.682e-05/0.1931, allocations: 15.94 kB / 427 MB, free: 7.574 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001352/0.1933, allocations: 198 kB / 427.2 MB, free: 7.383 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1933, allocations: 0 / 427.2 MB, free: 7.383 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003589/0.1936, allocations: 107.8 kB / 427.3 MB, free: 7.277 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.000786/0.1944, allocations: 1.073 MB / 428.4 MB, free: 6.176 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001292/0.1957, allocations: 0.5841 MB / 429 MB, free: 5.566 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1957, allocations: 4 kB / 429 MB, free: 5.562 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001197/0.1969, allocations: 438.4 kB / 429.4 MB, free: 5.121 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004557/0.1974, allocations: 93.89 kB / 429.5 MB, free: 5.035 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002643/0.2001, allocations: 2.276 MB / 431.8 MB, free: 2.691 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00014/0.2002, allocations: 0.7762 MB / 432.6 MB, free: 1.887 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001227/0.2003, allocations: 103.4 kB / 432.7 MB, free: 1.785 MB / 298.7 MB Notification: Performance of SimCode: time 3.11e-07/0.2003, allocations: 0 / 432.7 MB, free: 1.785 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.489/3.689, allocations: 7.571 MB / 440.2 MB, free: 10.2 MB / 314.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins1/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