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.00102/0.00102, allocations: 181.6 kB / 17.01 MB, free: 5.125 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.464/1.464, allocations: 205.4 MB / 223.1 MB, free: 9.125 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.0008626/0.0008625, allocations: 96.09 kB / 271.5 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002954/0.0002954, allocations: 8 kB / 328.3 MB, free: 15.46 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2988/0.2991, allocations: 47.58 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8576/1.157, allocations: 321.2 MB / 0.6807 GB, free: 107.4 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002896/1.157, allocations: 84.94 kB / 0.6808 GB, free: 107.4 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8889/2.046, allocations: 270.4 MB / 0.9449 GB, free: 28.67 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.154e-06/2.046, allocations: 0 / 0.9449 GB, free: 28.67 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001806/2.046, allocations: 43.92 kB / 0.945 GB, free: 28.62 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.008573/2.055, allocations: 1.997 MB / 0.9469 GB, free: 26.57 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.784e-05/2.055, allocations: 12.03 kB / 0.9469 GB, free: 26.56 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001103/2.056, allocations: 164.4 kB / 0.9471 GB, free: 26.39 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001382/2.058, allocations: 182.1 kB / 0.9473 GB, free: 26.21 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003552/2.061, allocations: 1.12 MB / 0.9484 GB, free: 25.05 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001763/2.061, allocations: 175.1 kB / 0.9485 GB, free: 24.86 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004859/2.062, allocations: 95.97 kB / 0.9486 GB, free: 24.77 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00352/2.065, allocations: 1.76 MB / 0.9503 GB, free: 22.95 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.635e-05/2.065, allocations: 11.86 kB / 0.9503 GB, free: 22.93 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001937/2.066, allocations: 43.97 kB / 0.9504 GB, free: 22.89 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001521/2.066, allocations: 117.9 kB / 0.9505 GB, free: 22.77 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002893/2.069, allocations: 1.772 MB / 0.9522 GB, free: 20.99 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01192/2.081, allocations: 6.373 MB / 0.9584 GB, free: 14.34 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001667/2.082, allocations: 1.172 MB / 0.9596 GB, free: 13.16 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00551/2.088, allocations: 4.154 MB / 0.9637 GB, free: 8.586 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.971e-05/2.088, allocations: 47.56 kB / 0.9637 GB, free: 8.531 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001167/2.089, allocations: 210.6 kB / 0.9639 GB, free: 8.324 MB / 426.7 MB Notification: Performance of pre-optimization done (n=97): time 5.59e-06/2.089, allocations: 0 / 0.9639 GB, free: 8.324 MB / 426.7 MB Notification: Performance of matching and sorting (n=112): time 0.01734/2.106, allocations: 5.365 MB / 0.9691 GB, free: 2.902 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.735e-05/2.107, allocations: 141.5 kB / 0.9693 GB, free: 2.73 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002026/2.109, allocations: 1.114 MB / 0.9704 GB, free: 1.609 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001568/2.109, allocations: 45.7 kB / 0.9704 GB, free: 1.559 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004424/2.109, allocations: 0.6015 MB / 0.971 GB, free: 0.9492 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003341/2.11, allocations: 386.4 kB / 0.9714 GB, free: 0.5664 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001239/2.11, allocations: 24 kB / 0.9714 GB, free: 0.543 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001303/2.11, allocations: 369.8 kB / 0.9717 GB, free: 180 kB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2887/2.399, allocations: 0.6317 MB / 0.9724 GB, free: 59.75 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001307/2.4, allocations: 0.9704 MB / 0.9733 GB, free: 59.4 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001068/2.401, allocations: 0.7525 MB / 0.974 GB, free: 59.39 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.573e-06/2.401, allocations: 3.625 kB / 0.974 GB, free: 59.39 MB / 426.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.00354/2.405, allocations: 2.104 MB / 0.9761 GB, free: 59.32 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000707/2.405, allocations: 3.512 MB / 0.9795 GB, free: 55.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.755e-05/2.405, allocations: 14.08 kB / 0.9795 GB, free: 55.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007036/2.412, allocations: 1.227 MB / 0.9807 GB, free: 55.69 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00128/2.414, allocations: 293.5 kB / 0.981 GB, free: 55.69 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002216/2.416, allocations: 1.523 MB / 0.9825 GB, free: 55.17 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001624/2.418, allocations: 88.36 kB / 0.9826 GB, free: 55.17 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001668/2.418, allocations: 75.28 kB / 0.9827 GB, free: 55.17 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.136e-05/2.418, allocations: 9.672 kB / 0.9827 GB, free: 55.16 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003079/2.421, allocations: 1.886 MB / 0.9845 GB, free: 55.12 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/2.421, allocations: 10.09 kB / 0.9845 GB, free: 55.12 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006314/2.427, allocations: 1.057 MB / 0.9855 GB, free: 55.12 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001489/2.429, allocations: 301.5 kB / 0.9858 GB, free: 55.12 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001835/2.431, allocations: 1.368 MB / 0.9872 GB, free: 54.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001529/2.432, allocations: 87.42 kB / 0.9873 GB, free: 54.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001343/2.432, allocations: 69.34 kB / 0.9873 GB, free: 54.6 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 () * Number of clocked 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.0009601/2.433, allocations: 464.2 kB / 0.9878 GB, free: 54.41 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002593/2.433, allocations: 144.2 kB / 0.9879 GB, free: 54.41 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004191/2.438, allocations: 2.023 MB / 0.9899 GB, free: 54.31 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.915e-05/2.438, allocations: 12.88 kB / 0.9899 GB, free: 54.31 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/2.438, allocations: 3.969 kB / 0.9899 GB, free: 54.31 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.41e-05/2.438, allocations: 10.17 kB / 0.9899 GB, free: 54.31 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006537/2.444, allocations: 3.43 MB / 0.9933 GB, free: 53.96 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/2.444, allocations: 1.281 kB / 0.9933 GB, free: 53.96 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001021/2.445, allocations: 195.7 kB / 0.9934 GB, free: 53.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004011/2.449, allocations: 0.9613 MB / 0.9944 GB, free: 53.95 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001288/2.45, allocations: 32.42 kB / 0.9944 GB, free: 53.95 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002404/2.452, allocations: 1.562 MB / 0.9959 GB, free: 53.42 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/2.452, allocations: 2.281 kB / 0.9959 GB, free: 53.42 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004304/2.456, allocations: 2.758 MB / 0.9986 GB, free: 53.16 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001027/2.457, allocations: 401.4 kB / 0.999 GB, free: 52.98 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001949/2.457, allocations: 27.81 kB / 0.999 GB, free: 52.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001083/2.459, allocations: 92.02 kB / 0.9991 GB, free: 52.98 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000185/2.459, allocations: 97.95 kB / 0.9992 GB, free: 52.98 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001039/2.459, allocations: 52.17 kB / 0.9993 GB, free: 52.98 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001182/2.46, allocations: 0.8319 MB / 1 GB, free: 52.87 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.41e-07/2.46, allocations: 0 / 1 GB, free: 52.87 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003433/2.464, allocations: 1.249 MB / 1.001 GB, free: 52.87 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 () * Number of clocked 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.006318/2.47, allocations: 4.266 MB / 1.005 GB, free: 52.08 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005325/2.475, allocations: 2.615 MB / 1.008 GB, free: 52.03 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/2.475, allocations: 3.719 kB / 1.008 GB, free: 52.03 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001613/2.477, allocations: 0.8434 MB / 1.009 GB, free: 52.02 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002634/2.479, allocations: 0.6004 MB / 1.009 GB, free: 52 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008923/2.488, allocations: 10.8 MB / 1.02 GB, free: 44.14 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006935/2.489, allocations: 1.321 MB / 1.021 GB, free: 43.43 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001996/2.491, allocations: 0.5538 MB / 1.022 GB, free: 43.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006919/2.492, allocations: 0.5529 MB / 1.022 GB, free: 43.39 MB / 426.7 MB Notification: Performance of SimCode: time 7.01e-07/2.492, allocations: 0 / 1.022 GB, free: 43.39 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08432/2.576, allocations: 54.27 MB / 1.075 GB, free: 38.06 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001582/2.576, allocations: 201.9 kB / 1.076 GB, free: 37.82 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.921/6.497, allocations: 3.938 kB / 1.076 GB, free: 37.81 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