Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.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.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",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.001154/0.001154, allocations: 179.7 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.432/1.432, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.0009054/0.0009055, allocations: 94.06 kB / 291.5 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002886/0.0002886, allocations: 8 kB / 351.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3162/0.3165, allocations: 50.39 MB / 401.6 MB, free: 32.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.083/1.399, allocations: 412.1 MB / 0.7946 GB, free: 57.05 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002507/1.4, allocations: 91.58 kB / 0.7947 GB, free: 57 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.758/2.158, allocations: 217.6 MB / 1.007 GB, free: 33.68 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.297e-06/2.158, allocations: 3.984 kB / 1.007 GB, free: 33.68 MB / 458.7 MB Notification: Performance of Transformations before backend: time 9.438e-05/2.158, allocations: 39.92 kB / 1.007 GB, free: 33.64 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.005348/2.163, allocations: 1.94 MB / 1.009 GB, free: 31.64 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.105e-05/2.163, allocations: 8.031 kB / 1.009 GB, free: 31.63 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002623/2.164, allocations: 173.2 kB / 1.009 GB, free: 31.45 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004495/2.164, allocations: 162.3 kB / 1.009 GB, free: 31.29 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001975/2.166, allocations: 1.007 MB / 1.01 GB, free: 30.24 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000163/2.166, allocations: 234.5 kB / 1.011 GB, free: 29.98 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000169/2.166, allocations: 104 kB / 1.011 GB, free: 29.88 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002543/2.169, allocations: 1.795 MB / 1.012 GB, free: 28.02 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.828e-05/2.169, allocations: 3.938 kB / 1.012 GB, free: 28.01 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001477/2.169, allocations: 39.98 kB / 1.013 GB, free: 27.97 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001162/2.169, allocations: 109.9 kB / 1.013 GB, free: 27.86 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002431/2.172, allocations: 1.757 MB / 1.014 GB, free: 26.1 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01047/2.182, allocations: 6.809 MB / 1.021 GB, free: 19.02 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002375/2.185, allocations: 1.432 MB / 1.022 GB, free: 17.57 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005754/2.19, allocations: 3.914 MB / 1.026 GB, free: 13.39 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.287e-05/2.19, allocations: 63.44 kB / 1.026 GB, free: 13.32 MB / 458.7 MB Notification: Performance of pre-optimization done (n=110): time 2.304e-06/2.191, allocations: 0 / 1.026 GB, free: 13.32 MB / 458.7 MB Notification: Performance of matching and sorting (n=122): time 0.01295/2.203, allocations: 5.876 MB / 1.032 GB, free: 7.332 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.639e-05/2.204, allocations: 171.2 kB / 1.032 GB, free: 7.125 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001241/2.205, allocations: 0.9933 MB / 1.033 GB, free: 6.117 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001157/2.205, allocations: 49.7 kB / 1.033 GB, free: 6.062 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000337/2.205, allocations: 0.5236 MB / 1.034 GB, free: 5.531 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003135/2.206, allocations: 410.1 kB / 1.034 GB, free: 5.125 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.467e-05/2.206, allocations: 28 kB / 1.034 GB, free: 5.098 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001095/2.206, allocations: 361.9 kB / 1.034 GB, free: 4.738 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001043/2.207, allocations: 0.7573 MB / 1.035 GB, free: 3.98 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001166/2.208, allocations: 1.009 MB / 1.036 GB, free: 2.883 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001135/2.209, allocations: 0.8257 MB / 1.037 GB, free: 2.059 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/2.209, allocations: 0 / 1.037 GB, free: 2.059 MB / 458.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.3542/2.563, allocations: 2.425 MB / 1.039 GB, free: 86.99 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000734/2.564, allocations: 2.188 MB / 1.042 GB, free: 84.73 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.44e-05/2.564, allocations: 5.625 kB / 1.042 GB, free: 84.73 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004342/2.569, allocations: 1.217 MB / 1.043 GB, free: 84.69 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001261/2.57, allocations: 210.6 kB / 1.043 GB, free: 84.69 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005395/2.575, allocations: 6.239 MB / 1.049 GB, free: 80.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001847/2.577, allocations: 93.22 kB / 1.049 GB, free: 80.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001725/2.577, allocations: 59.38 kB / 1.049 GB, free: 80.5 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/2.577, allocations: 6.625 kB / 1.049 GB, free: 80.5 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003884/2.581, allocations: 2.236 MB / 1.051 GB, free: 80.43 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/2.581, allocations: 9.906 kB / 1.051 GB, free: 80.43 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002537/2.584, allocations: 1.021 MB / 1.052 GB, free: 80.39 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001017/2.585, allocations: 229.3 kB / 1.053 GB, free: 80.39 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005236/2.59, allocations: 6.086 MB / 1.059 GB, free: 76.19 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001814/2.592, allocations: 90.3 kB / 1.059 GB, free: 76.19 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001713/2.592, allocations: 59.25 kB / 1.059 GB, free: 76.19 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 12 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 123 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 9,2 3,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0009857/2.593, allocations: 467.2 kB / 1.059 GB, free: 76 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003115/2.593, allocations: 134.2 kB / 1.059 GB, free: 76 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005182/2.599, allocations: 2.604 MB / 1.062 GB, free: 75.88 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.329e-05/2.599, allocations: 15.62 kB / 1.062 GB, free: 75.88 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.867e-06/2.599, allocations: 1.875 kB / 1.062 GB, free: 75.88 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.831e-05/2.599, allocations: 10.38 kB / 1.062 GB, free: 75.87 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00723/2.606, allocations: 4.189 MB / 1.066 GB, free: 75.49 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.428e-06/2.606, allocations: 7.781 kB / 1.066 GB, free: 75.49 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007737/2.607, allocations: 145.3 kB / 1.066 GB, free: 75.49 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003346/2.61, allocations: 1.218 MB / 1.067 GB, free: 75.45 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001914/2.61, allocations: 39.22 kB / 1.067 GB, free: 75.45 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00673/2.617, allocations: 6.257 MB / 1.073 GB, free: 71.21 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/2.617, allocations: 0 / 1.073 GB, free: 71.21 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006094/2.623, allocations: 3.595 MB / 1.077 GB, free: 70.92 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001249/2.625, allocations: 445.4 kB / 1.077 GB, free: 70.75 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002073/2.625, allocations: 23.16 kB / 1.077 GB, free: 70.75 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0011/2.626, allocations: 93.05 kB / 1.077 GB, free: 70.75 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003327/2.626, allocations: 146.5 kB / 1.078 GB, free: 70.75 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001301/2.626, allocations: 53.28 kB / 1.078 GB, free: 70.75 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00103/2.627, allocations: 0.7552 MB / 1.078 GB, free: 70.64 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.7e-07/2.627, allocations: 0 / 1.078 GB, free: 70.64 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003635/2.631, allocations: 1.12 MB / 1.079 GB, free: 70.64 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.medium.T,upperTank.level,lowerTank.medium.T,lowerTank.level) * Number of discrete variables: 11 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {5 11,2 4,5 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.007323/2.638, allocations: 4.877 MB / 1.084 GB, free: 69.81 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006655/2.645, allocations: 3.571 MB / 1.088 GB, free: 69.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.592e-06/2.645, allocations: 3.875 kB / 1.088 GB, free: 69.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002691/2.648, allocations: 1.362 MB / 1.089 GB, free: 69.04 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002585/2.65, allocations: 0.5423 MB / 1.09 GB, free: 69.04 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01009/2.661, allocations: 8.477 MB / 1.098 GB, free: 63.54 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007122/2.661, allocations: 1.287 MB / 1.099 GB, free: 62.83 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002025/2.663, allocations: 0.5732 MB / 1.1 GB, free: 62.82 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006907/2.664, allocations: 0.5076 MB / 1.1 GB, free: 62.81 MB / 458.7 MB Notification: Performance of SimCode: time 1.192e-06/2.664, allocations: 0 / 1.1 GB, free: 62.81 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08669/2.751, allocations: 53.29 MB / 1.152 GB, free: 52.08 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002416/2.751, allocations: 254.5 kB / 1.152 GB, free: 51.74 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.922/6.674, allocations: 0 / 1.152 GB, free: 51.74 MB / 458.7 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_TanksWithOverflow_fmu --startTime=0 --stopTime=25000 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_TanksWithOverflow.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat does not exist to compare? outputFormat=mat