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.002257/0.002257, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.125/2.125, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.00112/0.00112, allocations: 86.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.008e-05/4.022e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1066, allocations: 47.58 MB / 369.2 MB, free: 2.102 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4124/0.519, allocations: 79.92 MB / 449.1 MB, free: 13.25 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000278/0.5194, allocations: 69.97 kB / 449.2 MB, free: 13.21 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02725/0.5467, allocations: 6.145 MB / 455.3 MB, free: 8.051 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.605e-06/0.5467, allocations: 0.7656 kB / 455.3 MB, free: 8.051 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.381e-05/0.5468, allocations: 8 kB / 455.3 MB, free: 8.043 MB / 330.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.001291/0.5481, allocations: 0.5716 MB / 455.9 MB, free: 7.441 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.525e-05/0.5481, allocations: 12.03 kB / 455.9 MB, free: 7.43 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001244/0.5483, allocations: 64.62 kB / 456 MB, free: 7.371 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001187/0.5484, allocations: 41.72 kB / 456 MB, free: 7.332 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005489/0.549, allocations: 299.7 kB / 456.3 MB, free: 7.023 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001469/0.5491, allocations: 59.14 kB / 456.4 MB, free: 6.969 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.689e-05/0.5492, allocations: 21.69 kB / 456.4 MB, free: 6.953 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007029/0.5499, allocations: 317.2 kB / 456.7 MB, free: 6.684 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.792e-05/0.5499, allocations: 0 / 456.7 MB, free: 6.684 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.252e-05/0.55, allocations: 10.75 kB / 456.7 MB, free: 6.68 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.1e-05/0.55, allocations: 4 kB / 456.7 MB, free: 6.676 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005322/0.5506, allocations: 185.2 kB / 456.9 MB, free: 6.551 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002342/0.5529, allocations: 0.8338 MB / 457.7 MB, free: 5.863 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008671/0.5539, allocations: 262.4 kB / 458 MB, free: 5.676 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002962/0.5542, allocations: 104.9 kB / 458.1 MB, free: 5.613 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.618e-05/0.5542, allocations: 11.94 kB / 458.1 MB, free: 5.602 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.321e-05/0.5543, allocations: 45.61 kB / 458.1 MB, free: 5.551 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 3.677e-06/0.5543, allocations: 0 / 458.1 MB, free: 5.551 MB / 330.7 MB Notification: Performance of matching and sorting (n=29): time 0.0009703/0.5553, allocations: 286.2 kB / 458.4 MB, free: 5.332 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001827/0.5555, allocations: 315.6 kB / 458.7 MB, free: 4.953 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000416/0.5559, allocations: 243.5 kB / 459 MB, free: 4.754 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.146e-05/0.556, allocations: 40.52 kB / 459 MB, free: 4.715 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002131/0.5562, allocations: 229.3 kB / 459.2 MB, free: 4.52 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001244/0.5564, allocations: 103 kB / 459.3 MB, free: 4.43 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.278e-05/0.5564, allocations: 3.562 kB / 459.3 MB, free: 4.43 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.5566, allocations: 325.5 kB / 459.6 MB, free: 4.109 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002455/0.5568, allocations: 77.62 kB / 459.7 MB, free: 4.062 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003896/0.5572, allocations: 204.2 kB / 459.9 MB, free: 3.863 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003227/0.5576, allocations: 125 kB / 460 MB, free: 3.77 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.5576, allocations: 4 kB / 460 MB, free: 3.766 MB / 330.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001003/0.5586, allocations: 335.9 kB / 460.4 MB, free: 3.504 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.254e-05/0.5587, allocations: 32.83 kB / 460.4 MB, free: 3.469 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.5587, allocations: 4 kB / 460.4 MB, free: 3.465 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003288/0.559, allocations: 42.95 kB / 460.5 MB, free: 3.43 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001899/0.5609, allocations: 199.9 kB / 460.6 MB, free: 3.234 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004909/0.5659, allocations: 2.96 MB / 463.6 MB, free: 20 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005735/0.5665, allocations: 43.84 kB / 463.7 MB, free: 15.97 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.443e-05/0.5666, allocations: 15.94 kB / 463.7 MB, free: 15.96 MB / 346.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 () * 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.0001892/0.5668, allocations: 120.9 kB / 463.8 MB, free: 15.83 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001062/0.5669, allocations: 35.72 kB / 463.8 MB, free: 15.8 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00013/0.567, allocations: 35.2 kB / 463.9 MB, free: 15.76 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.567, allocations: 4 kB / 463.9 MB, free: 15.76 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.5671, allocations: 0 / 463.9 MB, free: 15.76 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009629/0.568, allocations: 0.6425 MB / 464.5 MB, free: 15.01 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007862/0.5688, allocations: 401 kB / 464.9 MB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.359e-06/0.5689, allocations: 0 / 464.9 MB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002583/0.5715, allocations: 251.7 kB / 465.1 MB, free: 14.32 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001757/0.5717, allocations: 24.84 kB / 465.2 MB, free: 14.3 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.455e-05/0.5717, allocations: 8 kB / 465.2 MB, free: 14.29 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004163/0.5759, allocations: 2.778 MB / 467.9 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.576, allocations: 0 / 467.9 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001226/0.5772, allocations: 499.8 kB / 468.4 MB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002403/0.5775, allocations: 140.7 kB / 468.6 MB, free: 10.58 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.119e-05/0.5776, allocations: 8 kB / 468.6 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000379/0.5779, allocations: 19.98 kB / 468.6 MB, free: 10.55 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001547/0.5781, allocations: 19.97 kB / 468.6 MB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.781e-05/0.5782, allocations: 15.98 kB / 468.6 MB, free: 10.52 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000326/0.5785, allocations: 191.1 kB / 468.8 MB, free: 10.33 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.665e-06/0.5785, allocations: 0 / 468.8 MB, free: 10.33 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006262/0.5792, allocations: 119.8 kB / 468.9 MB, free: 10.21 MB / 346.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 () * 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.001642/0.5808, allocations: 1.053 MB / 470 MB, free: 9.129 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002359/0.5832, allocations: 0.5253 MB / 470.5 MB, free: 8.578 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.621e-06/0.5833, allocations: 4 kB / 470.5 MB, free: 8.574 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002289/0.5856, allocations: 402.4 kB / 470.9 MB, free: 8.168 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007813/0.5864, allocations: 77.53 kB / 471 MB, free: 8.094 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002945/0.5893, allocations: 0.7863 MB / 471.8 MB, free: 7.262 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005192/0.5899, allocations: 0.784 MB / 472.6 MB, free: 6.449 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003104/0.5902, allocations: 107.4 kB / 472.7 MB, free: 6.344 MB / 346.7 MB Notification: Performance of SimCode: time 1.322e-06/0.5902, allocations: 0 / 472.7 MB, free: 6.344 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.989/3.579, allocations: 7.986 MB / 480.7 MB, free: 14.35 MB / 362.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) 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