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.001084/0.001084, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.912/1.912, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001057/0.001056, allocations: 78.72 kB / 262.4 MB, free: 1.691 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.436e-05/2.414e-05, allocations: 4 kB / 315.6 MB, free: 22.63 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09854/0.09858, allocations: 47.59 MB / 363.2 MB, free: 6.984 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3541/0.4527, allocations: 79.51 MB / 442.7 MB, free: 15.84 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000233/0.453, allocations: 70.27 kB / 442.7 MB, free: 15.81 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01611/0.4692, allocations: 6.068 MB / 448.8 MB, free: 10.84 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.755e-06/0.4692, allocations: 0 / 448.8 MB, free: 10.84 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.116e-05/0.4692, allocations: 16.75 kB / 448.8 MB, free: 10.82 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.000799/0.47, allocations: 0.5692 MB / 449.4 MB, free: 10.22 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.4701, allocations: 8.031 kB / 449.4 MB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.47e-05/0.4702, allocations: 47.47 kB / 449.5 MB, free: 10.17 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003437/0.4705, allocations: 281.5 kB / 449.7 MB, free: 9.875 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.547e-05/0.4706, allocations: 48.2 kB / 449.8 MB, free: 9.824 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.251e-05/0.4707, allocations: 19.27 kB / 449.8 MB, free: 9.809 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002829/0.471, allocations: 167.3 kB / 450 MB, free: 9.703 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003686/0.4714, allocations: 273.7 kB / 450.2 MB, free: 9.449 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.4714, allocations: 0 / 450.2 MB, free: 9.449 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.437e-05/0.4714, allocations: 0 / 450.2 MB, free: 9.449 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.792e-06/0.4714, allocations: 4 kB / 450.2 MB, free: 9.445 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001226/0.4727, allocations: 0.7602 MB / 451 MB, free: 8.82 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004554/0.4731, allocations: 254.4 kB / 451.2 MB, free: 8.645 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001357/0.4733, allocations: 103.4 kB / 451.3 MB, free: 8.578 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.463e-05/0.4733, allocations: 4 kB / 451.3 MB, free: 8.574 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.109e-05/0.4733, allocations: 41.86 kB / 451.4 MB, free: 8.527 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 1.512e-06/0.4734, allocations: 3.938 kB / 451.4 MB, free: 8.523 MB / 330.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005749/0.4739, allocations: 268.2 kB / 451.7 MB, free: 8.316 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001406/0.4741, allocations: 314.9 kB / 452 MB, free: 7.938 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002218/0.4743, allocations: 242.9 kB / 452.2 MB, free: 7.742 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.681e-05/0.4744, allocations: 25.7 kB / 452.2 MB, free: 7.711 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.4745, allocations: 167.3 kB / 452.4 MB, free: 7.586 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.221e-05/0.4746, allocations: 100.9 kB / 452.5 MB, free: 7.496 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.544e-05/0.4746, allocations: 4 kB / 452.5 MB, free: 7.492 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.4747, allocations: 344.1 kB / 452.8 MB, free: 7.16 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000116/0.4748, allocations: 74.75 kB / 452.9 MB, free: 7.117 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002045/0.475, allocations: 187.1 kB / 453.1 MB, free: 6.934 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000152/0.4752, allocations: 92.3 kB / 453.2 MB, free: 6.875 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.4752, allocations: 3.938 kB / 453.2 MB, free: 6.871 MB / 330.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004917/0.4757, allocations: 301.7 kB / 453.5 MB, free: 6.641 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.617e-05/0.4758, allocations: 29.7 kB / 453.5 MB, free: 6.605 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.575e-06/0.4758, allocations: 3.984 kB / 453.5 MB, free: 6.602 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000203/0.476, allocations: 43.22 kB / 453.5 MB, free: 6.566 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009808/0.477, allocations: 207.5 kB / 453.7 MB, free: 6.367 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002851/0.4798, allocations: 2.841 MB / 456.6 MB, free: 3.465 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002249/0.4801, allocations: 31.78 kB / 456.6 MB, free: 3.434 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.475e-05/0.4801, allocations: 11 kB / 456.6 MB, free: 3.426 MB / 330.7 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.000177/0.4803, allocations: 120.9 kB / 456.7 MB, free: 3.301 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004552/0.4808, allocations: 266.8 kB / 457 MB, free: 3.094 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.492e-05/0.4808, allocations: 35.62 kB / 457 MB, free: 3.059 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.81e-05/0.4809, allocations: 32.83 kB / 457.1 MB, free: 3.047 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.4809, allocations: 4 kB / 457.1 MB, free: 3.043 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.886e-06/0.4809, allocations: 3.953 kB / 457.1 MB, free: 3.039 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005319/0.4815, allocations: 0.6217 MB / 457.7 MB, free: 2.367 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004133/0.4819, allocations: 339.8 kB / 458 MB, free: 2.062 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.4819, allocations: 0 / 458 MB, free: 2.062 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001307/0.4832, allocations: 254.8 kB / 458.3 MB, free: 1.816 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.491e-05/0.4833, allocations: 20.67 kB / 458.3 MB, free: 1.797 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.435e-05/0.4834, allocations: 7.234 kB / 458.3 MB, free: 1.793 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002457/0.4858, allocations: 2.682 MB / 461 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.4859, allocations: 4.188 kB / 461 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000655/0.4865, allocations: 486 kB / 461.5 MB, free: 14.6 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001615/0.4867, allocations: 134.6 kB / 461.6 MB, free: 14.46 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.524e-05/0.4868, allocations: 3.953 kB / 461.6 MB, free: 14.46 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002051/0.487, allocations: 15.89 kB / 461.6 MB, free: 14.45 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.148e-05/0.4871, allocations: 27.41 kB / 461.6 MB, free: 14.42 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.011e-05/0.4871, allocations: 7.25 kB / 461.7 MB, free: 14.42 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002082/0.4873, allocations: 186.9 kB / 461.8 MB, free: 14.27 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4873, allocations: 0 / 461.8 MB, free: 14.27 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004534/0.4878, allocations: 91.94 kB / 461.9 MB, free: 14.18 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.0009722/0.4887, allocations: 1.015 MB / 462.9 MB, free: 13.25 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001317/0.4901, allocations: 0.5121 MB / 463.5 MB, free: 12.79 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.4901, allocations: 0 / 463.5 MB, free: 12.79 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001227/0.4913, allocations: 400.3 kB / 463.8 MB, free: 12.43 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004481/0.4918, allocations: 74.25 kB / 463.9 MB, free: 12.37 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001672/0.4935, allocations: 0.7158 MB / 464.6 MB, free: 11.66 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004577/0.4939, allocations: 0.7801 MB / 465.4 MB, free: 10.85 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001645/0.4941, allocations: 35.27 kB / 465.4 MB, free: 10.82 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001716/0.4943, allocations: 104.5 kB / 465.6 MB, free: 10.79 MB / 346.7 MB Notification: Performance of SimCode: time 8.91e-07/0.4943, allocations: 0 / 465.6 MB, free: 10.79 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03738/0.5317, allocations: 7.654 MB / 473.2 MB, free: 3.129 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000198/0.5319, allocations: 140.2 kB / 473.3 MB, free: 2.934 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.192/2.724, allocations: 0 / 473.3 MB, free: 2.934 MB / 346.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