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: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0008996/0.0008995, allocations: 176.6 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.204/1.204, allocations: 205.4 MB / 222.9 MB, free: 9.02 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.0007259/0.0007258, allocations: 86.36 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002603/0.0002603, allocations: 12 kB / 327.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1731/0.1734, allocations: 47.58 MB / 375.2 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.001947/0.1754, allocations: 2.342 MB / 377.5 MB, free: 43.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000842/0.1763, allocations: 0.7546 MB / 378.3 MB, free: 42.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001129/0.1764, allocations: 7.406 kB / 378.3 MB, free: 42.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001642/0.1766, allocations: 54.08 kB / 378.3 MB, free: 42.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002012/0.1768, allocations: 123.4 kB / 378.5 MB, free: 42.79 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001351/0.1769, allocations: 66.3 kB / 378.5 MB, free: 42.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003101/0.1772, allocations: 399.4 kB / 378.9 MB, free: 42.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001442/0.1774, allocations: 97.95 kB / 379 MB, free: 42.45 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001238/0.1775, allocations: 136.1 kB / 379.1 MB, free: 42.38 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001546/0.1777, allocations: 162.5 kB / 379.3 MB, free: 42.27 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.774e-05/0.1777, allocations: 22.44 kB / 379.3 MB, free: 42.27 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.596e-05/0.1778, allocations: 22.03 kB / 379.3 MB, free: 42.27 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.571e-05/0.1778, allocations: 64.39 kB / 379.4 MB, free: 42.22 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001391/0.178, allocations: 194.4 kB / 379.6 MB, free: 42.09 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002072/0.1782, allocations: 325.6 kB / 379.9 MB, free: 41.85 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.1782, allocations: 0 / 379.9 MB, free: 41.85 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1782, allocations: 0 / 379.9 MB, free: 41.85 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.1782, allocations: 0 / 379.9 MB, free: 41.85 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.0007376/0.179, allocations: 0.618 MB / 380.5 MB, free: 41.29 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.179, allocations: 10.03 kB / 380.5 MB, free: 41.29 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.35e-05/0.1791, allocations: 76 kB / 380.6 MB, free: 41.21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.7e-05/0.1792, allocations: 40.22 kB / 380.7 MB, free: 41.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002548/0.1794, allocations: 307.8 kB / 381 MB, free: 40.9 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.873e-05/0.1795, allocations: 51.2 kB / 381 MB, free: 40.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.893e-05/0.1796, allocations: 19.94 kB / 381 MB, free: 40.86 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004398/0.18, allocations: 344.3 kB / 381.4 MB, free: 40.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.18, allocations: 5.203 kB / 381.4 MB, free: 40.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.576e-05/0.1801, allocations: 14.72 kB / 381.4 MB, free: 40.57 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.645e-06/0.1801, allocations: 6.562 kB / 381.4 MB, free: 40.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003765/0.1805, allocations: 212.8 kB / 381.6 MB, free: 40.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001146/0.1816, allocations: 0.8342 MB / 382.4 MB, free: 39.81 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004865/0.1821, allocations: 286.2 kB / 382.7 MB, free: 39.67 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001888/0.1823, allocations: 122.2 kB / 382.8 MB, free: 39.61 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.982e-05/0.1824, allocations: 4.219 kB / 382.8 MB, free: 39.61 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.929e-05/0.1824, allocations: 46.66 kB / 382.9 MB, free: 39.55 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.433e-06/0.1824, allocations: 0 / 382.9 MB, free: 39.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.0009006/0.1833, allocations: 494.1 kB / 383.4 MB, free: 39.25 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.832e-05/0.1834, allocations: 320.4 kB / 383.7 MB, free: 38.87 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002118/0.1836, allocations: 272.3 kB / 383.9 MB, free: 38.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.1836, allocations: 32.86 kB / 384 MB, free: 38.65 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.28e-05/0.1837, allocations: 176.8 kB / 384.1 MB, free: 38.48 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.371e-05/0.1837, allocations: 103.9 kB / 384.3 MB, free: 38.39 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.585e-05/0.1838, allocations: 5.062 kB / 384.3 MB, free: 38.39 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.986e-05/0.1838, allocations: 349.8 kB / 384.6 MB, free: 38.05 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001878/0.184, allocations: 94.61 kB / 384.7 MB, free: 38 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002411/0.1843, allocations: 216.4 kB / 384.9 MB, free: 37.82 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003891/0.1847, allocations: 275.2 kB / 385.2 MB, free: 37.65 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1847, allocations: 0 / 385.2 MB, free: 37.65 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005535/0.1852, allocations: 373.7 kB / 385.5 MB, free: 37.44 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.383e-05/0.1853, allocations: 30.64 kB / 385.6 MB, free: 37.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.1853, allocations: 1.25 kB / 385.6 MB, free: 37.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001234/0.1854, allocations: 43.52 kB / 385.6 MB, free: 37.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009753/0.1864, allocations: 201.7 kB / 385.8 MB, free: 37.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002554/0.1889, allocations: 3.073 MB / 388.9 MB, free: 34.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002815/0.1892, allocations: 39.91 kB / 388.9 MB, free: 34.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.267e-05/0.1893, allocations: 19.98 kB / 388.9 MB, free: 34.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.0001312/0.1894, allocations: 157.7 kB / 389.1 MB, free: 34.06 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.985e-05/0.1895, allocations: 35.62 kB / 389.1 MB, free: 34.03 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.121e-05/0.1896, allocations: 35.08 kB / 389.2 MB, free: 33.99 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.1896, allocations: 4 kB / 389.2 MB, free: 33.99 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.1896, allocations: 96 / 389.2 MB, free: 33.99 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004638/0.19, allocations: 0.6659 MB / 389.8 MB, free: 33.21 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002979/0.1903, allocations: 389.2 kB / 390.2 MB, free: 32.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.1904, allocations: 0 / 390.2 MB, free: 32.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001172/0.1915, allocations: 263.6 kB / 390.5 MB, free: 32.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-05/0.1916, allocations: 16.86 kB / 390.5 MB, free: 32.51 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.952e-05/0.1916, allocations: 11.98 kB / 390.5 MB, free: 32.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002077/0.1937, allocations: 2.906 MB / 393.4 MB, free: 29.32 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.1937, allocations: 0 / 393.4 MB, free: 29.32 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006286/0.1944, allocations: 0.5197 MB / 393.9 MB, free: 28.78 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.323e-05/0.1945, allocations: 128.7 kB / 394 MB, free: 28.64 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.124e-05/0.1945, allocations: 15.98 kB / 394.1 MB, free: 28.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002487/0.1948, allocations: 31.92 kB / 394.1 MB, free: 28.59 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.264e-05/0.1948, allocations: 23.91 kB / 394.1 MB, free: 28.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.677e-05/0.1949, allocations: 8 kB / 394.1 MB, free: 28.56 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001288/0.195, allocations: 198 kB / 394.3 MB, free: 28.37 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.195, allocations: 0 / 394.3 MB, free: 28.37 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003606/0.1954, allocations: 107.8 kB / 394.4 MB, free: 28.26 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.0007919/0.1962, allocations: 1.073 MB / 395.5 MB, free: 27.16 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001283/0.1975, allocations: 0.5684 MB / 396.1 MB, free: 26.56 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1975, allocations: 7.938 kB / 396.1 MB, free: 26.55 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001198/0.1987, allocations: 442.3 kB / 396.5 MB, free: 26.11 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004856/0.1992, allocations: 92.73 kB / 396.6 MB, free: 26.02 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002709/0.2019, allocations: 2.267 MB / 398.9 MB, free: 23.69 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001398/0.2021, allocations: 0.7723 MB / 399.6 MB, free: 22.89 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001257/0.2022, allocations: 111.4 kB / 399.7 MB, free: 22.79 MB / 298.7 MB Notification: Performance of SimCode: time 3.9e-07/0.2022, allocations: 0 / 399.7 MB, free: 22.79 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.258/3.46, allocations: 7.57 MB / 407.3 MB, free: 15.2 MB / 298.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > 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