Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_ThreeTanks",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.0009848/0.0009848, allocations: 172.6 kB / 14.1 MB, free: 1.223 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.252/1.252, allocations: 205.2 MB / 219.8 MB, free: 14.26 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.0007633/0.0007633, allocations: 86.64 kB / 268 MB, free: 14.09 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.506e-05/2.508e-05, allocations: 0 / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0769/0.07695, allocations: 47.57 MB / 370.1 MB, free: 1.629 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.614/0.691, allocations: 321.1 MB / 0.675 GB, free: 3.539 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002022/0.6912, allocations: 77.12 kB / 0.6751 GB, free: 3.504 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9223/1.614, allocations: 269.6 MB / 0.9383 GB, free: 72.86 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.222e-06/1.614, allocations: 0 / 0.9383 GB, free: 72.86 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001673/1.614, allocations: 39.78 kB / 0.9384 GB, free: 72.85 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.006282/1.62, allocations: 1.819 MB / 0.9401 GB, free: 71.84 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/1.62, allocations: 10.66 kB / 0.9402 GB, free: 71.84 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006028/1.621, allocations: 164 kB / 0.9403 GB, free: 71.8 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00102/1.622, allocations: 182.1 kB / 0.9405 GB, free: 71.71 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003194/1.625, allocations: 1.115 MB / 0.9416 GB, free: 71.38 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001718/1.625, allocations: 176.7 kB / 0.9417 GB, free: 71.29 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003459/1.626, allocations: 98.06 kB / 0.9418 GB, free: 71.29 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002861/1.628, allocations: 1.745 MB / 0.9435 GB, free: 71.11 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.783e-05/1.628, allocations: 0 / 0.9435 GB, free: 71.11 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001782/1.629, allocations: 50.75 kB / 0.9436 GB, free: 71.11 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001313/1.629, allocations: 111.9 kB / 0.9437 GB, free: 71.1 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002485/1.631, allocations: 1.739 MB / 0.9454 GB, free: 71.08 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01046/1.642, allocations: 6.372 MB / 0.9516 GB, free: 68.41 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001432/1.643, allocations: 1.151 MB / 0.9527 GB, free: 67.94 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008406/1.644, allocations: 0.7082 MB / 0.9534 GB, free: 67.65 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004865/1.649, allocations: 4.27 MB / 0.9576 GB, free: 64.4 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.546e-05/1.649, allocations: 46.78 kB / 0.9576 GB, free: 64.36 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001001/1.65, allocations: 204.3 kB / 0.9578 GB, free: 64.26 MB / 426.7 MB Notification: Performance of pre-optimization done (n=97): time 5.219e-06/1.65, allocations: 0 / 0.9578 GB, free: 64.26 MB / 426.7 MB Notification: Performance of matching and sorting (n=112): time 0.007565/1.658, allocations: 3.782 MB / 0.9615 GB, free: 62.27 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.882e-05/1.658, allocations: 147.5 kB / 0.9617 GB, free: 62.11 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001487/1.659, allocations: 1.088 MB / 0.9627 GB, free: 61.56 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001172/1.659, allocations: 48.64 kB / 0.9628 GB, free: 61.52 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003592/1.66, allocations: 0.5963 MB / 0.9634 GB, free: 60.99 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002671/1.66, allocations: 388 kB / 0.9637 GB, free: 60.66 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.957e-05/1.66, allocations: 27.56 kB / 0.9638 GB, free: 60.64 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.127e-05/1.66, allocations: 367.5 kB / 0.9641 GB, free: 60.29 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008988/1.661, allocations: 0.6199 MB / 0.9647 GB, free: 60 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001013/1.662, allocations: 0.9563 MB / 0.9657 GB, free: 58.91 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001058/1.663, allocations: 0.7471 MB / 0.9664 GB, free: 58.18 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.746e-06/1.663, allocations: 0 / 0.9664 GB, free: 58.18 MB / 426.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003475/1.667, allocations: 2.074 MB / 0.9684 GB, free: 56.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009056/1.668, allocations: 3.519 MB / 0.9718 GB, free: 52.37 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.512e-05/1.668, allocations: 8 kB / 0.9719 GB, free: 52.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006287/1.674, allocations: 1.219 MB / 0.973 GB, free: 51.19 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001343/1.675, allocations: 295.5 kB / 0.9733 GB, free: 50.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002117/1.677, allocations: 1.511 MB / 0.9748 GB, free: 49.36 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00181/1.679, allocations: 93.11 kB / 0.9749 GB, free: 49.27 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003207/1.68, allocations: 71.95 kB / 0.975 GB, free: 49.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/1.68, allocations: 4 kB / 0.975 GB, free: 49.2 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003232/1.683, allocations: 1.853 MB / 0.9768 GB, free: 47.35 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.388e-05/1.683, allocations: 8 kB / 0.9768 GB, free: 47.34 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005465/1.688, allocations: 1.069 MB / 0.9778 GB, free: 46.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001291/1.69, allocations: 303.3 kB / 0.9781 GB, free: 46.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001699/1.691, allocations: 1.368 MB / 0.9795 GB, free: 44.63 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001542/1.693, allocations: 82.77 kB / 0.9795 GB, free: 44.55 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002479/1.693, allocations: 71.72 kB / 0.9796 GB, free: 44.48 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.0004407/1.694, allocations: 195.4 kB / 0.9798 GB, free: 44.29 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003724/1.694, allocations: 142.3 kB / 0.9799 GB, free: 44.15 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003867/1.698, allocations: 2 MB / 0.9819 GB, free: 42.16 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.016e-05/1.698, allocations: 15.95 kB / 0.9819 GB, free: 42.14 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/1.698, allocations: 0 / 0.9819 GB, free: 42.14 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.219e-05/1.698, allocations: 7.969 kB / 0.9819 GB, free: 42.13 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004789/1.703, allocations: 3.401 MB / 0.9852 GB, free: 38.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/1.703, allocations: 0 / 0.9852 GB, free: 38.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008659/1.704, allocations: 193.6 kB / 0.9854 GB, free: 38.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003313/1.707, allocations: 0.9408 MB / 0.9863 GB, free: 37.6 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001211/1.707, allocations: 31.98 kB / 0.9864 GB, free: 37.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001723/1.709, allocations: 1.565 MB / 0.9879 GB, free: 35.98 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/1.709, allocations: 0 / 0.9879 GB, free: 35.98 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00356/1.712, allocations: 2.71 MB / 0.9905 GB, free: 33.26 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008903/1.713, allocations: 399.1 kB / 0.9909 GB, free: 32.85 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003493/1.714, allocations: 20 kB / 0.9909 GB, free: 32.83 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00123/1.715, allocations: 94.97 kB / 0.991 GB, free: 32.75 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001962/1.715, allocations: 97.16 kB / 0.9911 GB, free: 32.65 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001255/1.715, allocations: 47.97 kB / 0.9912 GB, free: 32.61 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00119/1.717, allocations: 0.8263 MB / 0.992 GB, free: 31.77 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.51e-07/1.717, allocations: 0 / 0.992 GB, free: 31.77 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00393/1.72, allocations: 1.253 MB / 0.9932 GB, free: 30.52 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.006638/1.727, allocations: 4.244 MB / 0.9973 GB, free: 26.36 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005402/1.733, allocations: 2.624 MB / 0.9999 GB, free: 23.74 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.778e-06/1.733, allocations: 0 / 0.9999 GB, free: 23.74 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001748/1.734, allocations: 0.8194 MB / 1.001 GB, free: 22.92 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003316/1.738, allocations: 0.5793 MB / 1.001 GB, free: 22.36 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007402/1.745, allocations: 3.104 MB / 1.004 GB, free: 19.25 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006658/1.746, allocations: 1.321 MB / 1.006 GB, free: 17.9 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002574/1.748, allocations: 0.673 MB / 1.006 GB, free: 17.25 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006667/1.749, allocations: 0.5266 MB / 1.007 GB, free: 16.73 MB / 426.7 MB Notification: Performance of SimCode: time 9.72e-07/1.749, allocations: 0 / 1.007 GB, free: 16.73 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3326/2.082, allocations: 56.76 MB / 1.062 GB, free: 64.48 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001524/2.082, allocations: 168.7 kB / 1.062 GB, free: 64.26 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.122/6.204, allocations: 1.312 kB / 1.062 GB, free: 64.26 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_ThreeTanks_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_ThreeTanks.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat does not exist to compare? outputFormat=mat