Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00135/0.00135, allocations: 179.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.496/1.496, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008842/0.0008841, allocations: 96.16 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002666/0.0002667, allocations: 8 kB / 351.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2927/0.293, allocations: 50.4 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1125/0.4056, allocations: 79.32 MB / 480.9 MB, free: 1.145 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002412/0.4059, allocations: 71.97 kB / 481 MB, free: 1.074 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0183/0.4242, allocations: 6.079 MB / 487 MB, free: 10.96 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4242, allocations: 0 / 487 MB, free: 10.96 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.293e-05/0.4243, allocations: 8 kB / 487.1 MB, free: 10.96 MB / 362.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.001397/0.4257, allocations: 0.6326 MB / 487.7 MB, free: 10.27 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.203e-05/0.4257, allocations: 12.03 kB / 487.7 MB, free: 10.26 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000162/0.4259, allocations: 70.94 kB / 487.8 MB, free: 10.18 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001246/0.4261, allocations: 39.62 kB / 487.8 MB, free: 10.14 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005051/0.4266, allocations: 294.3 kB / 488.1 MB, free: 9.812 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00021/0.4268, allocations: 50.27 kB / 488.1 MB, free: 9.758 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.855e-05/0.4269, allocations: 24.69 kB / 488.2 MB, free: 9.734 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006061/0.4275, allocations: 327.4 kB / 488.5 MB, free: 9.379 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.265e-05/0.4275, allocations: 3.953 kB / 488.5 MB, free: 9.375 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.626e-05/0.4276, allocations: 12 kB / 488.5 MB, free: 9.363 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.472e-05/0.4276, allocations: 8 kB / 488.5 MB, free: 9.355 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004977/0.4281, allocations: 214.1 kB / 488.7 MB, free: 9.145 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001748/0.4299, allocations: 0.8265 MB / 489.5 MB, free: 8.27 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007612/0.4306, allocations: 306.9 kB / 489.8 MB, free: 7.961 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.131e-05/0.4307, allocations: 12.08 kB / 489.9 MB, free: 7.949 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.249e-05/0.4308, allocations: 42.5 kB / 489.9 MB, free: 7.898 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 2.896e-06/0.4308, allocations: 0 / 489.9 MB, free: 7.898 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.001364/0.4321, allocations: 492.1 kB / 490.4 MB, free: 7.391 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002591/0.4324, allocations: 316.4 kB / 490.7 MB, free: 7.008 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003565/0.4328, allocations: 246.2 kB / 490.9 MB, free: 6.754 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.358e-05/0.4329, allocations: 33.7 kB / 491 MB, free: 6.715 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001785/0.4331, allocations: 180.5 kB / 491.1 MB, free: 6.535 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000114/0.4332, allocations: 110.4 kB / 491.2 MB, free: 6.426 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.857e-05/0.4332, allocations: 15.94 kB / 491.3 MB, free: 6.41 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002121/0.4334, allocations: 338.8 kB / 491.6 MB, free: 6.07 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002343/0.4337, allocations: 95.95 kB / 491.7 MB, free: 5.977 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003223/0.434, allocations: 204.2 kB / 491.9 MB, free: 5.73 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002858/0.4343, allocations: 146.7 kB / 492 MB, free: 5.586 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.4343, allocations: 0 / 492 MB, free: 5.586 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0008626/0.4352, allocations: 377.8 kB / 492.4 MB, free: 5.203 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.795e-05/0.4353, allocations: 33.8 kB / 492.4 MB, free: 5.164 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.429e-05/0.4353, allocations: 7.984 kB / 492.4 MB, free: 5.156 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001966/0.4355, allocations: 40.78 kB / 492.5 MB, free: 5.113 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001151/0.4366, allocations: 203.8 kB / 492.7 MB, free: 4.914 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005343/0.442, allocations: 3.098 MB / 495.8 MB, free: 1.555 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005999/0.4426, allocations: 44.09 kB / 495.8 MB, free: 1.512 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.028e-05/0.4427, allocations: 8 kB / 495.8 MB, free: 1.504 MB / 362.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.0003639/0.4431, allocations: 160.7 kB / 496 MB, free: 1.34 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001247/0.4432, allocations: 31.62 kB / 496 MB, free: 1.309 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001295/0.4433, allocations: 39.08 kB / 496 MB, free: 1.266 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.4434, allocations: 4 kB / 496.1 MB, free: 1.262 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-05/0.4434, allocations: 4 kB / 496.1 MB, free: 1.258 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008649/0.4442, allocations: 0.6671 MB / 496.7 MB, free: 496 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007193/0.445, allocations: 393.2 kB / 497.1 MB, free: 52 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.251e-05/0.4451, allocations: 0 / 497.1 MB, free: 52 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001459/0.4465, allocations: 259.7 kB / 497.4 MB, free: 15.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.375e-05/0.4466, allocations: 24.92 kB / 497.4 MB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.91e-05/0.4467, allocations: 8 kB / 497.4 MB, free: 15.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003656/0.4503, allocations: 2.926 MB / 0.4886 GB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.4504, allocations: 0 / 0.4886 GB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009727/0.4513, allocations: 0.524 MB / 0.4891 GB, free: 12.02 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002026/0.4516, allocations: 132.6 kB / 0.4892 GB, free: 11.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.193e-05/0.4516, allocations: 8 kB / 0.4892 GB, free: 11.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002226/0.4518, allocations: 24.08 kB / 0.4893 GB, free: 11.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.298e-05/0.4519, allocations: 27.89 kB / 0.4893 GB, free: 11.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.233e-05/0.452, allocations: 15.92 kB / 0.4893 GB, free: 11.8 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002355/0.4522, allocations: 198 kB / 0.4895 GB, free: 11.61 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4522, allocations: 0 / 0.4895 GB, free: 11.61 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007149/0.4529, allocations: 115.8 kB / 0.4896 GB, free: 11.5 MB / 378.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.001412/0.4543, allocations: 1.084 MB / 0.4907 GB, free: 10.38 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001645/0.456, allocations: 0.5688 MB / 0.4912 GB, free: 9.785 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.456, allocations: 3.938 kB / 0.4912 GB, free: 9.781 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001446/0.4575, allocations: 430.5 kB / 0.4916 GB, free: 9.348 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006394/0.4581, allocations: 87.19 kB / 0.4917 GB, free: 9.266 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002697/0.4608, allocations: 1.787 MB / 0.4935 GB, free: 7.414 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004008/0.4613, allocations: 0.784 MB / 0.4942 GB, free: 6.602 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001646/0.4614, allocations: 38.95 kB / 0.4943 GB, free: 6.562 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001532/0.4616, allocations: 99.41 kB / 0.4944 GB, free: 6.465 MB / 378.7 MB Notification: Performance of SimCode: time 6.51e-07/0.4616, allocations: 0 / 0.4944 GB, free: 6.465 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2419/0.7035, allocations: 8.404 MB / 0.5026 GB, free: 100.1 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001411/0.7037, allocations: 204 kB / 0.5028 GB, free: 99.91 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.214/2.917, allocations: 0 / 0.5028 GB, free: 99.91 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat does not exist to compare? outputFormat=mat