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.001072/0.001072, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 225.4 MB / 240.1 MB, free: 15.13 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009649/0.0009649, allocations: 90.12 kB / 292.1 MB, free: 5.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.734e-05/3.741e-05, allocations: 4 kB / 350.6 MB, free: 2.453 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1203, allocations: 51.48 MB / 402.1 MB, free: 14.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.31/1.43, allocations: 412.8 MB / 0.7959 GB, free: 143.5 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003078/1.43, allocations: 88.16 kB / 0.7959 GB, free: 143.4 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8569/2.287, allocations: 216.4 MB / 1.007 GB, free: 80.03 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.263e-06/2.287, allocations: 0 / 1.007 GB, free: 80.03 MB / 458.7 MB Notification: Performance of Transformations before backend: time 9.253e-05/2.287, allocations: 35.34 kB / 1.007 GB, free: 80.02 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.005038/2.292, allocations: 1.81 MB / 1.009 GB, free: 79.05 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.303e-05/2.292, allocations: 10.47 kB / 1.009 GB, free: 79.05 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002416/2.293, allocations: 160.2 kB / 1.009 GB, free: 79 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005114/2.293, allocations: 171 kB / 1.009 GB, free: 78.93 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001987/2.295, allocations: 0.987 MB / 1.01 GB, free: 78.58 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001712/2.295, allocations: 241.1 kB / 1.011 GB, free: 78.43 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002037/2.296, allocations: 94.59 kB / 1.011 GB, free: 78.43 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002763/2.298, allocations: 1.786 MB / 1.012 GB, free: 78 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.944e-05/2.298, allocations: 3.906 kB / 1.012 GB, free: 77.99 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001624/2.299, allocations: 43.44 kB / 1.012 GB, free: 77.96 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000131/2.299, allocations: 108.8 kB / 1.013 GB, free: 77.95 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002527/2.301, allocations: 1.719 MB / 1.014 GB, free: 77.36 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01119/2.312, allocations: 6.802 MB / 1.021 GB, free: 73.65 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002251/2.315, allocations: 1.419 MB / 1.022 GB, free: 73.11 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001142/2.316, allocations: 0.8262 MB / 1.023 GB, free: 72.78 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005785/2.322, allocations: 3.956 MB / 1.027 GB, free: 70.3 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.718e-05/2.322, allocations: 43.41 kB / 1.027 GB, free: 70.25 MB / 458.7 MB Notification: Performance of pre-optimization done (n=110): time 3.146e-06/2.322, allocations: 6.875 kB / 1.027 GB, free: 70.25 MB / 458.7 MB Notification: Performance of matching and sorting (n=122): time 0.009814/2.332, allocations: 4.607 MB / 1.031 GB, free: 68.42 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.7e-05/2.332, allocations: 166.6 kB / 1.032 GB, free: 68.23 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001462/2.333, allocations: 0.9764 MB / 1.033 GB, free: 67.83 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001317/2.333, allocations: 52.66 kB / 1.033 GB, free: 67.78 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004192/2.334, allocations: 0.5245 MB / 1.033 GB, free: 67.36 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003712/2.334, allocations: 413.2 kB / 1.034 GB, free: 67.05 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.497e-05/2.334, allocations: 26.91 kB / 1.034 GB, free: 67.03 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001645/2.334, allocations: 355.6 kB / 1.034 GB, free: 66.71 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001129/2.336, allocations: 0.7432 MB / 1.035 GB, free: 66.43 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001246/2.337, allocations: 0.9997 MB / 1.036 GB, free: 65.88 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001212/2.338, allocations: 0.8059 MB / 1.036 GB, free: 65.59 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/2.338, allocations: 0 / 1.036 GB, free: 65.59 MB / 458.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.004263/2.342, allocations: 2.394 MB / 1.039 GB, free: 64.68 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005586/2.343, allocations: 2.18 MB / 1.041 GB, free: 62.38 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.742e-05/2.343, allocations: 14.7 kB / 1.041 GB, free: 62.37 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003644/2.347, allocations: 1.187 MB / 1.042 GB, free: 62.13 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001064/2.348, allocations: 222.1 kB / 1.042 GB, free: 62.11 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005468/2.353, allocations: 6.165 MB / 1.048 GB, free: 57.02 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001885/2.355, allocations: 99.34 kB / 1.048 GB, free: 56.99 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001854/2.355, allocations: 62.86 kB / 1.048 GB, free: 56.98 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/2.355, allocations: 13.06 kB / 1.048 GB, free: 56.97 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003975/2.359, allocations: 2.193 MB / 1.051 GB, free: 56.17 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.31e-05/2.359, allocations: 7.781 kB / 1.051 GB, free: 56.17 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002571/2.362, allocations: 1.005 MB / 1.052 GB, free: 55.95 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009726/2.363, allocations: 231.8 kB / 1.052 GB, free: 55.89 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005119/2.368, allocations: 6.03 MB / 1.058 GB, free: 50.51 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00172/2.37, allocations: 94.62 kB / 1.058 GB, free: 50.46 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001571/2.37, allocations: 54.94 kB / 1.058 GB, free: 50.45 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 () * 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.0005148/2.37, allocations: 192.4 kB / 1.058 GB, free: 50.27 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002863/2.371, allocations: 133.1 kB / 1.058 GB, free: 50.21 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00483/2.376, allocations: 2.573 MB / 1.061 GB, free: 48.79 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.96e-05/2.376, allocations: 14 kB / 1.061 GB, free: 48.79 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.785e-06/2.376, allocations: 7.031 kB / 1.061 GB, free: 48.79 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.508e-05/2.376, allocations: 7.969 kB / 1.061 GB, free: 48.78 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006739/2.382, allocations: 4.142 MB / 1.065 GB, free: 46.29 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/2.382, allocations: 3.938 kB / 1.065 GB, free: 46.29 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007825/2.383, allocations: 151 kB / 1.065 GB, free: 46.25 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00333/2.387, allocations: 1.203 MB / 1.066 GB, free: 45.72 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001346/2.387, allocations: 35.78 kB / 1.066 GB, free: 45.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005373/2.392, allocations: 6.192 MB / 1.072 GB, free: 39.32 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/2.392, allocations: 0 / 1.072 GB, free: 39.32 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005379/2.397, allocations: 3.548 MB / 1.076 GB, free: 35.75 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001126/2.399, allocations: 435.2 kB / 1.076 GB, free: 35.3 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003931/2.399, allocations: 27.98 kB / 1.076 GB, free: 35.27 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001347/2.4, allocations: 99.78 kB / 1.076 GB, free: 35.18 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000336/2.401, allocations: 149 kB / 1.076 GB, free: 35.03 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001536/2.401, allocations: 51.97 kB / 1.076 GB, free: 34.98 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001361/2.402, allocations: 0.7392 MB / 1.077 GB, free: 34.23 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.2e-07/2.402, allocations: 3.938 kB / 1.077 GB, free: 34.23 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00511/2.407, allocations: 1.133 MB / 1.078 GB, free: 33.09 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) * 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.008823/2.416, allocations: 4.832 MB / 1.083 GB, free: 28.29 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006929/2.423, allocations: 3.532 MB / 1.086 GB, free: 24.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.408e-06/2.423, allocations: 4.125 kB / 1.086 GB, free: 24.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002514/2.426, allocations: 1.316 MB / 1.088 GB, free: 23.36 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003106/2.429, allocations: 0.557 MB / 1.088 GB, free: 22.82 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009005/2.438, allocations: 3.129 MB / 1.091 GB, free: 19.67 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008644/2.439, allocations: 1.293 MB / 1.092 GB, free: 18.34 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002486/2.441, allocations: 0.6929 MB / 1.093 GB, free: 17.68 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007109/2.442, allocations: 0.4992 MB / 1.094 GB, free: 17.18 MB / 458.7 MB Notification: Performance of SimCode: time 9.22e-07/2.442, allocations: 0 / 1.094 GB, free: 17.18 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4327/2.875, allocations: 55.22 MB / 1.148 GB, free: 69.39 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002404/2.875, allocations: 210.5 kB / 1.148 GB, free: 69.18 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.646/7.521, allocations: 2.906 kB / 1.148 GB, free: 69.18 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