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.000868/0.0008681, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 221.5 MB / 230.3 MB, free: 7.59 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008864/0.0008866, allocations: 89.73 kB / 281.2 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.157e-05/2.159e-05, allocations: 4 kB / 337.1 MB, free: 9.938 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1095, allocations: 50.41 MB / 387.5 MB, free: 7.484 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.227/1.336, allocations: 411.4 MB / 0.7802 GB, free: 102.7 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002072/1.336, allocations: 82.58 kB / 0.7803 GB, free: 102.6 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7788/2.115, allocations: 215.3 MB / 0.9905 GB, free: 67.5 MB / 442.7 MB Notification: Performance of FrontEnd: time 4.117e-06/2.115, allocations: 7.938 kB / 0.9905 GB, free: 67.5 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001285/2.116, allocations: 38.73 kB / 0.9905 GB, free: 67.46 MB / 442.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.005339/2.121, allocations: 1.793 MB / 0.9923 GB, free: 65.63 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.949e-05/2.121, allocations: 12.03 kB / 0.9923 GB, free: 65.62 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005888/2.122, allocations: 171.1 kB / 0.9925 GB, free: 65.45 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001965/2.124, allocations: 0.9873 MB / 0.9934 GB, free: 64.44 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001763/2.124, allocations: 202.5 kB / 0.9936 GB, free: 64.21 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001659/2.124, allocations: 56 kB / 0.9937 GB, free: 64.16 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002262/2.126, allocations: 1.609 MB / 0.9953 GB, free: 62.55 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002376/2.129, allocations: 1.635 MB / 0.9969 GB, free: 60.84 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.139e-05/2.129, allocations: 3.938 kB / 0.9969 GB, free: 60.84 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001407/2.129, allocations: 0 / 0.9969 GB, free: 60.84 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001126/2.129, allocations: 102 kB / 0.997 GB, free: 60.73 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01038/2.139, allocations: 6.526 MB / 1.003 GB, free: 54.02 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002025/2.141, allocations: 1.387 MB / 1.005 GB, free: 52.63 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001046/2.142, allocations: 0.7977 MB / 1.005 GB, free: 51.83 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005107/2.148, allocations: 3.855 MB / 1.009 GB, free: 47.74 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.009e-05/2.148, allocations: 43.88 kB / 1.009 GB, free: 47.69 MB / 442.7 MB Notification: Performance of pre-optimization done (n=110): time 3.106e-06/2.148, allocations: 0 / 1.009 GB, free: 47.69 MB / 442.7 MB Notification: Performance of matching and sorting (n=122): time 0.01844/2.166, allocations: 6.434 MB / 1.016 GB, free: 41.2 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.811e-05/2.166, allocations: 167.5 kB / 1.016 GB, free: 41 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009943/2.167, allocations: 0.6527 MB / 1.016 GB, free: 40.34 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001328/2.167, allocations: 25.7 kB / 1.016 GB, free: 40.3 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003504/2.168, allocations: 0.5346 MB / 1.017 GB, free: 39.76 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003504/2.168, allocations: 410 kB / 1.017 GB, free: 39.36 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.244e-05/2.168, allocations: 0 / 1.017 GB, free: 39.36 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.626e-05/2.168, allocations: 361.9 kB / 1.018 GB, free: 39 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009923/2.169, allocations: 0.7184 MB / 1.018 GB, free: 38.28 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009985/2.17, allocations: 0.9631 MB / 1.019 GB, free: 37.23 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005189/2.175, allocations: 1.716 MB / 1.021 GB, free: 35.52 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-06/2.175, allocations: 4 kB / 1.021 GB, free: 35.51 MB / 442.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.007873/2.183, allocations: 3.193 MB / 1.024 GB, free: 32.29 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007234/2.184, allocations: 2.182 MB / 1.026 GB, free: 29.94 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.858e-05/2.184, allocations: 4 kB / 1.026 GB, free: 29.94 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002202/2.186, allocations: 0.9759 MB / 1.027 GB, free: 28.95 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00118/2.188, allocations: 219.6 kB / 1.027 GB, free: 28.73 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007575/2.195, allocations: 6.583 MB / 1.034 GB, free: 21.85 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001867/2.197, allocations: 71.83 kB / 1.034 GB, free: 21.78 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001622/2.197, allocations: 63.97 kB / 1.034 GB, free: 21.72 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.192e-05/2.197, allocations: 5.25 kB / 1.034 GB, free: 21.71 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007344/2.205, allocations: 2.947 MB / 1.037 GB, free: 18.75 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/2.205, allocations: 8 kB / 1.037 GB, free: 18.74 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001914/2.207, allocations: 0.9256 MB / 1.038 GB, free: 17.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009144/2.208, allocations: 219.7 kB / 1.038 GB, free: 17.59 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006511/2.214, allocations: 6.363 MB / 1.044 GB, free: 10.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001656/2.216, allocations: 71.91 kB / 1.044 GB, free: 10.86 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001538/2.216, allocations: 59.97 kB / 1.044 GB, free: 10.8 MB / 442.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 () * 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.0004427/2.216, allocations: 144.7 kB / 1.044 GB, free: 10.65 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00663/2.223, allocations: 2.65 MB / 1.047 GB, free: 7.973 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002836/2.223, allocations: 110.7 kB / 1.047 GB, free: 7.863 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007283/2.231, allocations: 3.068 MB / 1.05 GB, free: 4.777 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-05/2.231, allocations: 20 kB / 1.05 GB, free: 4.758 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/2.231, allocations: 4 kB / 1.05 GB, free: 4.754 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.417e-05/2.231, allocations: 7.969 kB / 1.05 GB, free: 4.746 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009182/2.24, allocations: 4.546 MB / 1.055 GB, free: 172 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.396e-06/2.24, allocations: 4 kB / 1.055 GB, free: 168 kB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007247/2.241, allocations: 147.8 kB / 1.055 GB, free: 20 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.3602/2.601, allocations: 1.005 MB / 1.056 GB, free: 77.92 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005458/2.602, allocations: 21.09 kB / 1.056 GB, free: 77.92 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009224/2.611, allocations: 6.595 MB / 1.062 GB, free: 73.88 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.427e-06/2.611, allocations: 1.406 kB / 1.062 GB, free: 73.88 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01087/2.622, allocations: 4.048 MB / 1.066 GB, free: 73.7 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001065/2.623, allocations: 403.5 kB / 1.066 GB, free: 73.6 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002362/2.623, allocations: 6.547 kB / 1.066 GB, free: 73.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001243/2.624, allocations: 74.86 kB / 1.067 GB, free: 73.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004155/2.625, allocations: 143.5 kB / 1.067 GB, free: 73.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001588/2.625, allocations: 52.64 kB / 1.067 GB, free: 73.6 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0009261/2.626, allocations: 495.9 kB / 1.067 GB, free: 73.5 MB / 442.7 MB Notification: Performance of sort global known variables: time 3e-07/2.626, allocations: 0 / 1.067 GB, free: 73.5 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005389/2.631, allocations: 1.047 MB / 1.068 GB, free: 73.5 MB / 442.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) * 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 {4 12,2 4,4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01382/2.645, allocations: 5.293 MB / 1.073 GB, free: 72.74 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007519/2.653, allocations: 3.402 MB / 1.077 GB, free: 72.27 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.183e-06/2.653, allocations: 1.219 kB / 1.077 GB, free: 72.27 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00325/2.656, allocations: 1.267 MB / 1.078 GB, free: 72.04 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003794/2.66, allocations: 495.2 kB / 1.078 GB, free: 72.04 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01007/2.67, allocations: 2.961 MB / 1.081 GB, free: 71.52 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009042/2.671, allocations: 1.298 MB / 1.083 GB, free: 70.8 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002623/2.674, allocations: 0.5745 MB / 1.083 GB, free: 70.79 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007041/2.674, allocations: 488.5 kB / 1.084 GB, free: 70.78 MB / 442.7 MB Notification: Performance of SimCode: time 9.52e-07/2.674, allocations: 3.281 kB / 1.084 GB, free: 70.78 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09902/2.773, allocations: 49.28 MB / 1.132 GB, free: 68.42 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002373/2.774, allocations: 172.8 kB / 1.132 GB, free: 68.22 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.247/7.021, allocations: 0 / 1.132 GB, free: 68.22 MB / 442.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