Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_3_2_3_cpp_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.002274/0.002274, allocations: 182.2 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.034/2.034, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001092/0.001092, allocations: 86.66 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.944e-05/3.964e-05, allocations: 11.92 kB / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09176/0.09184, allocations: 47.57 MB / 369.2 MB, free: 2.121 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.007/1.099, allocations: 321.1 MB / 0.6741 GB, free: 3.637 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002822/1.099, allocations: 73.91 kB / 0.6742 GB, free: 3.602 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.529/2.628, allocations: 269.6 MB / 0.9374 GB, free: 72.89 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.104e-06/2.628, allocations: 0 / 0.9374 GB, free: 72.89 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001834/2.628, allocations: 46.38 kB / 0.9375 GB, free: 72.88 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.008123/2.636, allocations: 1.814 MB / 0.9392 GB, free: 71.88 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.011e-05/2.636, allocations: 10.84 kB / 0.9393 GB, free: 71.88 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007129/2.637, allocations: 163.4 kB / 0.9394 GB, free: 71.84 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009793/2.638, allocations: 179.8 kB / 0.9396 GB, free: 71.75 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004689/2.643, allocations: 1.113 MB / 0.9407 GB, free: 71.41 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002761/2.643, allocations: 173.9 kB / 0.9408 GB, free: 71.32 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006859/2.644, allocations: 106.7 kB / 0.9409 GB, free: 71.32 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005087/2.649, allocations: 1.738 MB / 0.9426 GB, free: 71.14 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.802e-05/2.649, allocations: 2.156 kB / 0.9426 GB, free: 71.14 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002682/2.649, allocations: 45.84 kB / 0.9427 GB, free: 71.14 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002547/2.65, allocations: 115.9 kB / 0.9428 GB, free: 71.13 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005164/2.655, allocations: 1.738 MB / 0.9445 GB, free: 71.11 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02019/2.675, allocations: 6.371 MB / 0.9507 GB, free: 68.59 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002837/2.678, allocations: 1.152 MB / 0.9518 GB, free: 68.13 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001758/2.68, allocations: 0.7014 MB / 0.9525 GB, free: 67.85 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009033/2.689, allocations: 4.267 MB / 0.9567 GB, free: 64.55 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.048e-05/2.689, allocations: 47.97 kB / 0.9567 GB, free: 64.5 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001819/2.691, allocations: 206.9 kB / 0.9569 GB, free: 64.4 MB / 426.7 MB Notification: Performance of pre-optimization done (n=97): time 5.37e-06/2.691, allocations: 0 / 0.9569 GB, free: 64.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=112): time 0.01442/2.705, allocations: 3.779 MB / 0.9606 GB, free: 62.42 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.561e-05/2.705, allocations: 140 kB / 0.9608 GB, free: 62.27 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002237/2.708, allocations: 1.09 MB / 0.9618 GB, free: 61.72 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004235/2.708, allocations: 52.89 kB / 0.9619 GB, free: 61.67 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004364/2.709, allocations: 0.5741 MB / 0.9624 GB, free: 61.14 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004867/2.709, allocations: 386.8 kB / 0.9628 GB, free: 60.81 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001528/2.709, allocations: 27.56 kB / 0.9628 GB, free: 60.79 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001197/2.709, allocations: 372.3 kB / 0.9632 GB, free: 60.43 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001661/2.711, allocations: 0.618 MB / 0.9638 GB, free: 60.14 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002025/2.713, allocations: 0.9605 MB / 0.9647 GB, free: 59.21 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002145/2.715, allocations: 0.7453 MB / 0.9654 GB, free: 58.48 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.167e-05/2.715, allocations: 3.125 kB / 0.9655 GB, free: 58.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.005748/2.721, allocations: 1.996 MB / 0.9674 GB, free: 56.48 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008455/2.722, allocations: 3.485 MB / 0.9708 GB, free: 52.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.446e-05/2.722, allocations: 8 kB / 0.9708 GB, free: 52.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01279/2.735, allocations: 1.223 MB / 0.972 GB, free: 51.57 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002546/2.737, allocations: 287.6 kB / 0.9723 GB, free: 51.29 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003641/2.741, allocations: 1.527 MB / 0.9738 GB, free: 49.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002592/2.744, allocations: 87.02 kB / 0.9739 GB, free: 49.65 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002412/2.744, allocations: 67.95 kB / 0.9739 GB, free: 49.58 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/2.744, allocations: 4 kB / 0.9739 GB, free: 49.58 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004967/2.749, allocations: 1.853 MB / 0.9757 GB, free: 47.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.186e-05/2.749, allocations: 8 kB / 0.9757 GB, free: 47.72 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01112/2.76, allocations: 1.049 MB / 0.9768 GB, free: 46.71 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002392/2.763, allocations: 295.6 kB / 0.977 GB, free: 46.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002943/2.766, allocations: 1.352 MB / 0.9784 GB, free: 45.05 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001913/2.768, allocations: 86.14 kB / 0.9784 GB, free: 44.97 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002054/2.768, allocations: 71.95 kB / 0.9785 GB, free: 44.9 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.0005066/2.768, allocations: 183.6 kB / 0.9787 GB, free: 44.71 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004694/2.769, allocations: 146.3 kB / 0.9788 GB, free: 44.57 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006496/2.775, allocations: 1.996 MB / 0.9808 GB, free: 42.59 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.812e-05/2.775, allocations: 15.95 kB / 0.9808 GB, free: 42.57 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/2.775, allocations: 1.75 kB / 0.9808 GB, free: 42.57 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.127e-05/2.775, allocations: 10.53 kB / 0.9808 GB, free: 42.56 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008625/2.784, allocations: 3.405 MB / 0.9841 GB, free: 39.13 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.154e-05/2.784, allocations: 6.641 kB / 0.9841 GB, free: 39.12 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001746/2.786, allocations: 191.7 kB / 0.9843 GB, free: 38.94 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006249/2.792, allocations: 0.941 MB / 0.9852 GB, free: 38.02 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003367/2.793, allocations: 34 kB / 0.9853 GB, free: 37.99 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003234/2.796, allocations: 1.555 MB / 0.9868 GB, free: 36.41 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/2.796, allocations: 0 / 0.9868 GB, free: 36.41 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006455/2.802, allocations: 2.708 MB / 0.9894 GB, free: 33.68 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001454/2.804, allocations: 405.8 kB / 0.9898 GB, free: 33.27 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000504/2.804, allocations: 24 kB / 0.9898 GB, free: 33.25 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002306/2.807, allocations: 90.97 kB / 0.9899 GB, free: 33.16 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004504/2.807, allocations: 97.16 kB / 0.99 GB, free: 33.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002466/2.808, allocations: 50.81 kB / 0.9901 GB, free: 33.02 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001692/2.809, allocations: 0.8263 MB / 0.9909 GB, free: 32.19 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.71e-07/2.809, allocations: 0 / 0.9909 GB, free: 32.19 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005449/2.815, allocations: 1.251 MB / 0.9921 GB, free: 30.94 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.009684/2.824, allocations: 4.242 MB / 0.9962 GB, free: 26.77 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009451/2.834, allocations: 2.553 MB / 0.9987 GB, free: 24.21 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.097e-05/2.834, allocations: 0 / 0.9987 GB, free: 24.21 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003222/2.837, allocations: 0.8169 MB / 0.9995 GB, free: 23.41 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005217/2.843, allocations: 0.5844 MB / 1 GB, free: 22.83 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01144/2.854, allocations: 3.154 MB / 1.003 GB, free: 19.67 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008908/2.855, allocations: 1.307 MB / 1.004 GB, free: 18.34 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001472/2.856, allocations: 0.5656 MB / 1.005 GB, free: 17.77 MB / 426.7 MB Notification: Performance of SimCode: time 2.194e-06/2.856, allocations: 0 / 1.005 GB, free: 17.77 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.962/6.818, allocations: 41.84 MB / 1.046 GB, free: 61.11 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_ThreeTanks_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_ThreeTanks.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat does not exist to compare? outputFormat=mat