Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_3_2_3_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.001008/0.001008, allocations: 181.2 kB / 17.01 MB, free: 5.125 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.355/1.355, allocations: 205.4 MB / 223.1 MB, free: 9.121 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.0008921/0.0008921, allocations: 92.09 kB / 271.5 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002361/0.0002363, allocations: 4 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2491/0.2493, allocations: 47.57 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08917/0.3385, allocations: 80.02 MB / 455.9 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001798/0.3388, allocations: 71.97 kB / 456 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01578/0.3545, allocations: 6.155 MB / 462.1 MB, free: 10.38 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3546, allocations: 0 / 462.1 MB, free: 10.38 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.659e-05/0.3546, allocations: 12 kB / 462.2 MB, free: 10.36 MB / 346.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.0009101/0.3555, allocations: 0.6249 MB / 462.8 MB, free: 9.684 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.3556, allocations: 12.03 kB / 462.8 MB, free: 9.672 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.7e-05/0.3557, allocations: 70.94 kB / 462.9 MB, free: 9.594 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.115e-05/0.3558, allocations: 39.62 kB / 462.9 MB, free: 9.555 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000361/0.3561, allocations: 294.9 kB / 463.2 MB, free: 9.23 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.078e-05/0.3562, allocations: 54.2 kB / 463.2 MB, free: 9.172 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.886e-05/0.3563, allocations: 27.94 kB / 463.3 MB, free: 9.145 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005022/0.3568, allocations: 329.7 kB / 463.6 MB, free: 8.785 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.3568, allocations: 3.938 kB / 463.6 MB, free: 8.781 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.132e-05/0.3568, allocations: 15.98 kB / 463.6 MB, free: 8.766 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.3569, allocations: 12 kB / 463.6 MB, free: 8.754 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004182/0.3573, allocations: 214.1 kB / 463.8 MB, free: 8.543 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001347/0.3586, allocations: 0.827 MB / 464.7 MB, free: 7.668 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006719/0.3593, allocations: 312.7 kB / 465 MB, free: 7.355 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.123e-05/0.3594, allocations: 3.984 kB / 465 MB, free: 7.352 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.6e-05/0.3594, allocations: 38.56 kB / 465 MB, free: 7.305 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 2.896e-06/0.3594, allocations: 96 / 465 MB, free: 7.305 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.001001/0.3604, allocations: 492.8 kB / 465.5 MB, free: 6.797 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000154/0.3606, allocations: 316.4 kB / 465.8 MB, free: 6.414 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002526/0.3608, allocations: 250.2 kB / 466 MB, free: 6.16 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.557e-05/0.3609, allocations: 37.7 kB / 466.1 MB, free: 6.117 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001131/0.361, allocations: 176.5 kB / 466.2 MB, free: 5.941 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.85e-05/0.3611, allocations: 102.5 kB / 466.3 MB, free: 5.84 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.599e-05/0.3611, allocations: 8 kB / 466.4 MB, free: 5.832 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.3613, allocations: 342.8 kB / 466.7 MB, free: 5.488 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001875/0.3615, allocations: 91.95 kB / 466.8 MB, free: 5.398 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002686/0.3617, allocations: 220.3 kB / 467 MB, free: 5.137 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002371/0.362, allocations: 147 kB / 467.1 MB, free: 4.988 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.362, allocations: 0 / 467.1 MB, free: 4.988 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006008/0.3626, allocations: 373.9 kB / 467.5 MB, free: 4.609 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.455e-05/0.3626, allocations: 29.7 kB / 467.5 MB, free: 4.574 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.3626, allocations: 0 / 467.5 MB, free: 4.574 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001553/0.3628, allocations: 40.84 kB / 467.6 MB, free: 4.531 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001019/0.3638, allocations: 199.9 kB / 467.8 MB, free: 4.336 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003577/0.3674, allocations: 3.113 MB / 470.9 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002586/0.3677, allocations: 43.7 kB / 470.9 MB, free: 0.918 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.479e-05/0.3677, allocations: 12 kB / 470.9 MB, free: 0.9062 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 () * 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.0002176/0.368, allocations: 153.8 kB / 471.1 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.05e-05/0.368, allocations: 35.62 kB / 471.1 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.85e-05/0.3681, allocations: 43.16 kB / 471.2 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.3681, allocations: 4 kB / 471.2 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.3682, allocations: 0 / 471.2 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008007/0.369, allocations: 0.6659 MB / 471.8 MB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005342/0.3695, allocations: 389.2 kB / 472.2 MB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.3695, allocations: 0 / 472.2 MB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001304/0.3708, allocations: 247.8 kB / 472.5 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.156e-05/0.3709, allocations: 32.78 kB / 472.5 MB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.246e-05/0.371, allocations: 4 kB / 472.5 MB, free: 15.17 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003188/0.3742, allocations: 2.935 MB / 475.4 MB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.3742, allocations: 3.938 kB / 475.4 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008533/0.375, allocations: 0.5234 MB / 476 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001477/0.3752, allocations: 132.7 kB / 476.1 MB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.226e-05/0.3753, allocations: 15.98 kB / 476.1 MB, free: 11.26 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002107/0.3755, allocations: 16 kB / 476.1 MB, free: 11.24 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.526e-05/0.3756, allocations: 23.95 kB / 476.1 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.373e-05/0.3756, allocations: 15.95 kB / 476.2 MB, free: 11.2 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002533/0.3758, allocations: 194 kB / 476.3 MB, free: 11.02 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3759, allocations: 0 / 476.3 MB, free: 11.02 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004653/0.3763, allocations: 115.8 kB / 476.5 MB, free: 10.9 MB / 362.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.001169/0.3775, allocations: 1.1 MB / 477.6 MB, free: 9.773 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001439/0.379, allocations: 0.5566 MB / 478.1 MB, free: 9.191 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.379, allocations: 0 / 478.1 MB, free: 9.191 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001353/0.3803, allocations: 438.4 kB / 478.5 MB, free: 8.75 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004216/0.3808, allocations: 75.22 kB / 478.6 MB, free: 8.68 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002334/0.3831, allocations: 1.793 MB / 480.4 MB, free: 6.82 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003775/0.3835, allocations: 0.784 MB / 481.2 MB, free: 6.008 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001418/0.3837, allocations: 34.95 kB / 481.2 MB, free: 5.973 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000152/0.3838, allocations: 107.4 kB / 481.3 MB, free: 5.867 MB / 362.7 MB Notification: Performance of SimCode: time 5.31e-07/0.3838, allocations: 0 / 481.3 MB, free: 5.867 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02104/0.4049, allocations: 8.401 MB / 489.7 MB, free: 13.49 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001614/0.4051, allocations: 211.4 kB / 489.9 MB, free: 13.25 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.258/2.663, allocations: 0 / 489.9 MB, free: 13.25 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat does not exist to compare? outputFormat=mat