Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001242/0.001242, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.287/1.287, allocations: 227.2 MB / 245 MB, free: 7.582 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009246/0.0009248, allocations: 106.9 kB / 297.3 MB, free: 6.195 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002592/0.0002593, allocations: 8 kB / 358 MB, free: 9.453 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.261/0.2613, allocations: 51.48 MB / 409.5 MB, free: 26.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8398/1.101, allocations: 412.9 MB / 0.8031 GB, free: 56.5 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002823/1.101, allocations: 87.95 kB / 0.8032 GB, free: 56.41 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7029/1.804, allocations: 217.1 MB / 1.015 GB, free: 22.64 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.783e-06/1.804, allocations: 4 kB / 1.015 GB, free: 22.64 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.00015/1.805, allocations: 32 kB / 1.015 GB, free: 22.61 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.007021/1.812, allocations: 1.954 MB / 1.017 GB, free: 20.6 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/1.812, allocations: 12.03 kB / 1.017 GB, free: 20.59 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008037/1.813, allocations: 172.7 kB / 1.017 GB, free: 20.41 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00105/1.814, allocations: 166.3 kB / 1.017 GB, free: 20.24 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003024/1.817, allocations: 0.9918 MB / 1.018 GB, free: 19.21 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001993/1.817, allocations: 238.5 kB / 1.019 GB, free: 18.95 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000411/1.817, allocations: 95.98 kB / 1.019 GB, free: 18.85 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003422/1.821, allocations: 1.806 MB / 1.021 GB, free: 16.97 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.776e-05/1.821, allocations: 4 kB / 1.021 GB, free: 16.97 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000215/1.821, allocations: 43.97 kB / 1.021 GB, free: 16.93 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001289/1.821, allocations: 102 kB / 1.021 GB, free: 16.82 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002983/1.824, allocations: 1.757 MB / 1.022 GB, free: 15.06 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01083/1.835, allocations: 6.805 MB / 1.029 GB, free: 7.988 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002074/1.837, allocations: 1.436 MB / 1.03 GB, free: 6.531 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004935/1.842, allocations: 3.918 MB / 1.034 GB, free: 2.344 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.261e-05/1.842, allocations: 47.56 kB / 1.034 GB, free: 2.289 MB / 458.7 MB Notification: Performance of pre-optimization done (n=110): time 1.993e-06/1.842, allocations: 0 / 1.034 GB, free: 2.289 MB / 458.7 MB Notification: Performance of matching and sorting (n=122): time 0.2783/2.12, allocations: 5.875 MB / 1.04 GB, free: 82.6 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.881e-05/2.12, allocations: 174.8 kB / 1.04 GB, free: 82.41 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001282/2.122, allocations: 0.9928 MB / 1.041 GB, free: 82.27 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001294/2.122, allocations: 50.95 kB / 1.041 GB, free: 82.23 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003484/2.122, allocations: 0.5133 MB / 1.042 GB, free: 82.06 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002982/2.123, allocations: 414.3 kB / 1.042 GB, free: 81.86 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.127e-05/2.123, allocations: 25.97 kB / 1.042 GB, free: 81.86 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.678e-05/2.123, allocations: 362.5 kB / 1.042 GB, free: 81.55 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001198/2.124, allocations: 0.7599 MB / 1.043 GB, free: 81.55 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001392/2.125, allocations: 1.012 MB / 1.044 GB, free: 81.3 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001176/2.127, allocations: 0.8238 MB / 1.045 GB, free: 81.29 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.668e-06/2.127, allocations: 7.656 kB / 1.045 GB, free: 81.29 MB / 458.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.004119/2.131, allocations: 2.431 MB / 1.047 GB, free: 81.11 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004543/2.131, allocations: 2.182 MB / 1.05 GB, free: 78.84 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.608e-05/2.131, allocations: 7.375 kB / 1.05 GB, free: 78.84 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003639/2.135, allocations: 1.204 MB / 1.051 GB, free: 78.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009591/2.136, allocations: 221.2 kB / 1.051 GB, free: 78.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005593/2.141, allocations: 6.238 MB / 1.057 GB, free: 74.56 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001922/2.143, allocations: 96.73 kB / 1.057 GB, free: 74.56 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002357/2.144, allocations: 62.23 kB / 1.057 GB, free: 74.56 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/2.144, allocations: 2.156 kB / 1.057 GB, free: 74.56 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004173/2.148, allocations: 2.236 MB / 1.059 GB, free: 74.48 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.497e-05/2.148, allocations: 11.19 kB / 1.059 GB, free: 74.48 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002462/2.15, allocations: 1.004 MB / 1.06 GB, free: 74.45 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009886/2.151, allocations: 229.2 kB / 1.061 GB, free: 74.45 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004794/2.156, allocations: 6.091 MB / 1.067 GB, free: 70.21 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001475/2.158, allocations: 98.2 kB / 1.067 GB, free: 70.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001359/2.158, allocations: 63.17 kB / 1.067 GB, free: 70.2 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.0009296/2.159, allocations: 458 kB / 1.067 GB, free: 70.01 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002525/2.159, allocations: 137.9 kB / 1.067 GB, free: 69.94 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004114/2.163, allocations: 2.599 MB / 1.07 GB, free: 69.8 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-05/2.163, allocations: 21.41 kB / 1.07 GB, free: 69.8 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.401e-06/2.163, allocations: 2.969 kB / 1.07 GB, free: 69.8 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.106e-05/2.163, allocations: 3.75 kB / 1.07 GB, free: 69.8 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005754/2.169, allocations: 4.19 MB / 1.074 GB, free: 69.41 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/2.169, allocations: 0 / 1.074 GB, free: 69.41 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007189/2.17, allocations: 157.9 kB / 1.074 GB, free: 69.41 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003108/2.173, allocations: 1.221 MB / 1.075 GB, free: 69.37 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001505/2.173, allocations: 36.83 kB / 1.075 GB, free: 69.37 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005025/2.178, allocations: 6.255 MB / 1.081 GB, free: 65.12 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/2.178, allocations: 2.875 kB / 1.081 GB, free: 65.12 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005027/2.183, allocations: 3.604 MB / 1.085 GB, free: 64.83 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009739/2.184, allocations: 435.5 kB / 1.085 GB, free: 64.67 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001942/2.184, allocations: 24.5 kB / 1.085 GB, free: 64.67 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001035/2.185, allocations: 95.19 kB / 1.085 GB, free: 64.66 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002872/2.186, allocations: 142.8 kB / 1.086 GB, free: 64.66 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001229/2.186, allocations: 52.66 kB / 1.086 GB, free: 64.66 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0009756/2.187, allocations: 0.7549 MB / 1.086 GB, free: 64.55 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.81e-07/2.187, allocations: 0 / 1.086 GB, free: 64.55 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00348/2.19, allocations: 1.135 MB / 1.087 GB, free: 64.55 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.007183/2.197, allocations: 4.875 MB / 1.092 GB, free: 63.73 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006298/2.204, allocations: 3.578 MB / 1.096 GB, free: 63.21 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.111e-06/2.204, allocations: 6.25 kB / 1.096 GB, free: 63.21 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002622/2.206, allocations: 1.352 MB / 1.097 GB, free: 62.96 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002465/2.209, allocations: 0.5492 MB / 1.098 GB, free: 62.96 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009516/2.218, allocations: 8.486 MB / 1.106 GB, free: 57.45 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007317/2.219, allocations: 1.292 MB / 1.107 GB, free: 56.74 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001979/2.221, allocations: 0.5754 MB / 1.108 GB, free: 56.72 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006961/2.222, allocations: 0.5025 MB / 1.108 GB, free: 56.71 MB / 458.7 MB Notification: Performance of SimCode: time 1.022e-06/2.222, allocations: 0 / 1.108 GB, free: 56.71 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07839/2.3, allocations: 53.29 MB / 1.16 GB, free: 40.55 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002105/2.3, allocations: 248 kB / 1.16 GB, free: 40.28 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.617/5.917, allocations: 0 / 1.16 GB, free: 40.28 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_Tanks_TanksWithOverflow_fmu --startTime=0 --stopTime=25000 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_Tanks_TanksWithOverflow.fmu > Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat does not exist to compare? outputFormat=mat