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.001577/0.001577, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.407/1.407, allocations: 221.5 MB / 230.3 MB, free: 7.559 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008498/0.00085, allocations: 100.7 kB / 281.2 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.693e-05/1.706e-05, allocations: 0 / 337.1 MB, free: 9.934 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1284, allocations: 50.41 MB / 387.6 MB, free: 7.473 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3619/0.4904, allocations: 78.58 MB / 466.1 MB, free: 208 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002142/0.4907, allocations: 71.95 kB / 466.2 MB, free: 136 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01547/0.5061, allocations: 6.006 MB / 472.2 MB, free: 10.11 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.5062, allocations: 0 / 472.2 MB, free: 10.11 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.781e-05/0.5062, allocations: 7.984 kB / 472.2 MB, free: 10.1 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.0009028/0.5071, allocations: 0.5747 MB / 472.8 MB, free: 9.473 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.811e-05/0.5072, allocations: 12.03 kB / 472.8 MB, free: 9.461 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.26e-05/0.5073, allocations: 39.53 kB / 472.8 MB, free: 9.422 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004144/0.5077, allocations: 282.3 kB / 473.1 MB, free: 9.102 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000109/0.5078, allocations: 42.14 kB / 473.2 MB, free: 9.055 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.056e-05/0.5079, allocations: 15.98 kB / 473.2 MB, free: 9.039 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003251/0.5082, allocations: 173.5 kB / 473.3 MB, free: 8.871 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004226/0.5087, allocations: 268.6 kB / 473.6 MB, free: 8.57 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.825e-05/0.5087, allocations: 3.953 kB / 473.6 MB, free: 8.566 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.824e-05/0.5087, allocations: 8 kB / 473.6 MB, free: 8.559 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.5088, allocations: 4 kB / 473.6 MB, free: 8.555 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001337/0.5101, allocations: 0.7554 MB / 474.4 MB, free: 7.758 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004819/0.5106, allocations: 247 kB / 474.6 MB, free: 7.508 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001484/0.5108, allocations: 104.9 kB / 474.7 MB, free: 7.402 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.562e-05/0.5108, allocations: 4 kB / 474.7 MB, free: 7.398 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.776e-05/0.5108, allocations: 35.06 kB / 474.8 MB, free: 7.355 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 3.296e-06/0.5108, allocations: 96 / 474.8 MB, free: 7.355 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.000555/0.5114, allocations: 278.5 kB / 475 MB, free: 7.074 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001268/0.5115, allocations: 320.4 kB / 475.3 MB, free: 6.688 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002255/0.5118, allocations: 226.4 kB / 475.6 MB, free: 6.465 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.293e-05/0.5118, allocations: 29.7 kB / 475.6 MB, free: 6.43 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/0.5119, allocations: 168.4 kB / 475.8 MB, free: 6.258 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.091e-05/0.512, allocations: 98.5 kB / 475.9 MB, free: 6.16 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.37e-05/0.512, allocations: 0 / 475.9 MB, free: 6.16 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.5122, allocations: 342.8 kB / 476.2 MB, free: 5.816 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001231/0.5123, allocations: 76 kB / 476.3 MB, free: 5.742 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002111/0.5125, allocations: 184.6 kB / 476.4 MB, free: 5.516 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001611/0.5127, allocations: 93.31 kB / 476.5 MB, free: 5.426 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.5127, allocations: 3.953 kB / 476.5 MB, free: 5.422 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005078/0.5132, allocations: 308.2 kB / 476.8 MB, free: 5.113 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.875e-05/0.5133, allocations: 37.69 kB / 476.9 MB, free: 5.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.5133, allocations: 0 / 476.9 MB, free: 5.07 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002027/0.5135, allocations: 44.94 kB / 476.9 MB, free: 5.023 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009897/0.5145, allocations: 199.8 kB / 477.1 MB, free: 4.828 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002894/0.5174, allocations: 2.855 MB / 480 MB, free: 1.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002532/0.5176, allocations: 27.78 kB / 480 MB, free: 1.723 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.946e-05/0.5177, allocations: 12 kB / 480 MB, free: 1.711 MB / 346.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.0002185/0.5179, allocations: 119 kB / 480.1 MB, free: 1.59 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004953/0.5184, allocations: 282.7 kB / 480.4 MB, free: 1.305 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.215e-05/0.5185, allocations: 35.62 kB / 480.4 MB, free: 1.27 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.251e-05/0.5186, allocations: 35.52 kB / 480.5 MB, free: 1.234 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.5186, allocations: 0 / 480.5 MB, free: 1.234 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.312e-06/0.5186, allocations: 4 kB / 480.5 MB, free: 1.23 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005438/0.5192, allocations: 0.6266 MB / 481.1 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004053/0.5196, allocations: 337.8 kB / 481.4 MB, free: 132 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.5196, allocations: 0 / 481.4 MB, free: 132 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001315/0.5209, allocations: 247.9 kB / 481.7 MB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.448e-05/0.521, allocations: 24.78 kB / 481.7 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.603e-05/0.521, allocations: 8 kB / 481.7 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002541/0.5236, allocations: 2.683 MB / 484.4 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.5236, allocations: 0 / 484.4 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006712/0.5243, allocations: 480.5 kB / 484.9 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001508/0.5244, allocations: 132.8 kB / 485 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.924e-05/0.5245, allocations: 0 / 485 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002055/0.5247, allocations: 16.06 kB / 485 MB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.488e-05/0.5248, allocations: 28.14 kB / 485 MB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.5248, allocations: 8 kB / 485 MB, free: 12.25 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002046/0.525, allocations: 182 kB / 485.2 MB, free: 12.07 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.525, allocations: 3.938 kB / 485.2 MB, free: 12.07 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004414/0.5255, allocations: 103.8 kB / 485.3 MB, free: 11.96 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 () * 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.0009991/0.5265, allocations: 1.014 MB / 486.3 MB, free: 10.92 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001316/0.5278, allocations: 0.5165 MB / 486.9 MB, free: 10.38 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.5278, allocations: 0 / 486.9 MB, free: 10.38 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001238/0.5291, allocations: 401.6 kB / 487.2 MB, free: 9.977 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004454/0.5296, allocations: 74.03 kB / 487.3 MB, free: 9.906 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001691/0.5313, allocations: 0.7114 MB / 488 MB, free: 9.152 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004311/0.5317, allocations: 0.7879 MB / 488.8 MB, free: 8.34 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001652/0.5319, allocations: 35.27 kB / 488.9 MB, free: 8.309 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001637/0.532, allocations: 99.41 kB / 488.9 MB, free: 8.211 MB / 362.7 MB Notification: Performance of SimCode: time 6.31e-07/0.5321, allocations: 0 / 488.9 MB, free: 8.211 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03071/0.5628, allocations: 7.663 MB / 496.6 MB, free: 0.6562 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002793/0.5632, allocations: 131.9 kB / 496.7 MB, free: 480 kB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.169/2.732, allocations: 0 / 496.7 MB, free: 480 kB / 362.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