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.001479/0.001478, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.976/1.976, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001161/0.001161, allocations: 102.5 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.487e-05/2.483e-05, allocations: 4 kB / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3484/0.3485, allocations: 47.56 MB / 362.4 MB, free: 45.88 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1332/0.4817, allocations: 79.28 MB / 441.7 MB, free: 7.02 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002691/0.4821, allocations: 64.72 kB / 441.8 MB, free: 6.957 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02711/0.5092, allocations: 6.065 MB / 447.8 MB, free: 0.9062 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.5092, allocations: 0 / 447.8 MB, free: 0.9062 MB / 331.1 MB Notification: Performance of Transformations before backend: time 3.355e-05/0.5093, allocations: 12 kB / 447.8 MB, free: 0.8945 MB / 331.1 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.00121/0.5105, allocations: 0.5789 MB / 448.4 MB, free: 276 kB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.134e-05/0.5106, allocations: 8.031 kB / 448.4 MB, free: 268 kB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001265/0.5107, allocations: 43.53 kB / 448.5 MB, free: 224 kB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005508/0.5113, allocations: 286.7 kB / 448.7 MB, free: 15.9 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001335/0.5114, allocations: 50.12 kB / 448.8 MB, free: 15.84 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.434e-05/0.5115, allocations: 15.95 kB / 448.8 MB, free: 15.83 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005159/0.512, allocations: 172.8 kB / 449 MB, free: 15.66 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000614/0.5127, allocations: 270.3 kB / 449.2 MB, free: 15.36 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.918e-05/0.5127, allocations: 0 / 449.2 MB, free: 15.36 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.591e-05/0.5127, allocations: 0 / 449.2 MB, free: 15.36 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.183e-05/0.5128, allocations: 10.34 kB / 449.3 MB, free: 15.35 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002172/0.5149, allocations: 0.7516 MB / 450 MB, free: 14.55 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008228/0.5158, allocations: 251 kB / 450.3 MB, free: 14.3 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002826/0.5161, allocations: 96.86 kB / 450.3 MB, free: 14.2 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.363e-05/0.5162, allocations: 7.984 kB / 450.4 MB, free: 14.2 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.233e-05/0.5162, allocations: 42.59 kB / 450.4 MB, free: 14.14 MB / 347.1 MB Notification: Performance of pre-optimization done (n=29): time 7.033e-06/0.5163, allocations: 4 kB / 450.4 MB, free: 14.14 MB / 347.1 MB Notification: Performance of matching and sorting (n=29): time 0.0009256/0.5172, allocations: 269.2 kB / 450.7 MB, free: 13.87 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001657/0.5174, allocations: 312.4 kB / 451 MB, free: 13.49 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003964/0.5178, allocations: 238.3 kB / 451.2 MB, free: 13.26 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 6.288e-05/0.5179, allocations: 25.7 kB / 451.2 MB, free: 13.23 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000169/0.518, allocations: 222.9 kB / 451.4 MB, free: 13.01 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001337/0.5182, allocations: 102.4 kB / 451.5 MB, free: 12.91 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.042e-05/0.5182, allocations: 0 / 451.5 MB, free: 12.91 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.5184, allocations: 332.9 kB / 451.9 MB, free: 12.57 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002249/0.5186, allocations: 72 kB / 451.9 MB, free: 12.5 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003507/0.519, allocations: 180.3 kB / 452.1 MB, free: 12.28 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002793/0.5193, allocations: 97.31 kB / 452.2 MB, free: 12.19 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.5193, allocations: 0 / 452.2 MB, free: 12.19 MB / 347.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009187/0.5202, allocations: 284.4 kB / 452.5 MB, free: 11.9 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.798e-05/0.5203, allocations: 41.7 kB / 452.5 MB, free: 11.86 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.5203, allocations: 0 / 452.5 MB, free: 11.86 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003177/0.5206, allocations: 40.83 kB / 452.6 MB, free: 11.81 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001921/0.5226, allocations: 203.8 kB / 452.8 MB, free: 11.61 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004652/0.5273, allocations: 2.841 MB / 455.6 MB, free: 8.547 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004814/0.5278, allocations: 27.75 kB / 455.6 MB, free: 8.52 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.459e-05/0.5279, allocations: 16.22 kB / 455.7 MB, free: 8.504 MB / 347.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTank1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real openTank2.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real 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 () * 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.0002862/0.5282, allocations: 116.9 kB / 455.8 MB, free: 8.383 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008342/0.529, allocations: 274.3 kB / 456 MB, free: 8.105 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.408e-05/0.5291, allocations: 31.8 kB / 456.1 MB, free: 8.074 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001263/0.5293, allocations: 35.52 kB / 456.1 MB, free: 8.043 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.645e-06/0.5293, allocations: 8 kB / 456.1 MB, free: 8.035 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.5293, allocations: 3.953 kB / 456.1 MB, free: 8.031 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008655/0.5302, allocations: 0.6149 MB / 456.7 MB, free: 7.309 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006891/0.5309, allocations: 345.7 kB / 457.1 MB, free: 6.934 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.5309, allocations: 0 / 457.1 MB, free: 6.934 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002565/0.5335, allocations: 251.8 kB / 457.3 MB, free: 6.688 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001649/0.5337, allocations: 24.84 kB / 457.3 MB, free: 6.66 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.186e-05/0.5337, allocations: 4 kB / 457.3 MB, free: 6.656 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004093/0.5379, allocations: 2.688 MB / 460 MB, free: 3.734 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.472e-06/0.5379, allocations: 0 / 460 MB, free: 3.734 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001206/0.5391, allocations: 472.4 kB / 460.5 MB, free: 3.254 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003109/0.5395, allocations: 136.6 kB / 460.6 MB, free: 3.102 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.639e-05/0.5396, allocations: 12.02 kB / 460.6 MB, free: 3.09 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003998/0.54, allocations: 11.98 kB / 460.6 MB, free: 3.078 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001372/0.5402, allocations: 23.91 kB / 460.7 MB, free: 3.055 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.518e-05/0.5402, allocations: 12 kB / 460.7 MB, free: 3.043 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0003447/0.5406, allocations: 186 kB / 460.9 MB, free: 2.863 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5406, allocations: 2.062 kB / 460.9 MB, free: 2.863 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0007528/0.5413, allocations: 95.84 kB / 461 MB, free: 2.77 MB / 347.1 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 () * 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.001795/0.5432, allocations: 1.013 MB / 462 MB, free: 1.73 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.00242/0.5456, allocations: 0.5134 MB / 462.5 MB, free: 1.195 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 8.195e-06/0.5457, allocations: 0 / 462.5 MB, free: 1.195 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002253/0.548, allocations: 401.4 kB / 462.9 MB, free: 0.793 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007587/0.5488, allocations: 69.97 kB / 462.9 MB, free: 0.7266 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002712/0.5515, allocations: 0.7515 MB / 463.7 MB, free: 15.93 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004302/0.552, allocations: 0.7786 MB / 464.5 MB, free: 15.13 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002578/0.5522, allocations: 107.4 kB / 464.6 MB, free: 15.02 MB / 363.1 MB Notification: Performance of SimCode: time 9.22e-07/0.5522, allocations: 0 / 464.6 MB, free: 15.02 MB / 363.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.984/3.537, allocations: 7.821 MB / 472.4 MB, free: 7.242 MB / 363.1 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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat does not exist to compare? outputFormat=mat