Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.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.TanksWithOverflow,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",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.002075/0.002075, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.01/2.01, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001385/0.001385, allocations: 90.48 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.066e-05/2.067e-05, allocations: 0 / 314.9 MB, free: 9.078 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3267/0.3267, allocations: 47.56 MB / 362.4 MB, free: 45.72 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.053/1.379, allocations: 409.2 MB / 0.7535 GB, free: 70.55 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002736/1.38, allocations: 81.58 kB / 0.7536 GB, free: 70.52 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.019/2.399, allocations: 211.1 MB / 0.9598 GB, free: 40.73 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.944e-06/2.399, allocations: 4 kB / 0.9598 GB, free: 40.73 MB / 427.1 MB Notification: Performance of Transformations before backend: time 0.0001219/2.399, allocations: 39.84 kB / 0.9598 GB, free: 40.69 MB / 427.1 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.007036/2.406, allocations: 1.8 MB / 0.9616 GB, free: 38.85 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/2.406, allocations: 12.03 kB / 0.9616 GB, free: 38.84 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001088/2.407, allocations: 162.3 kB / 0.9617 GB, free: 38.68 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003388/2.411, allocations: 0.9832 MB / 0.9627 GB, free: 37.67 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001973/2.411, allocations: 202.5 kB / 0.9629 GB, free: 37.45 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003283/2.411, allocations: 59.91 kB / 0.963 GB, free: 37.39 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003848/2.415, allocations: 1.597 MB / 0.9645 GB, free: 35.79 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003764/2.419, allocations: 1.646 MB / 0.9661 GB, free: 34.07 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.199e-05/2.419, allocations: 4 kB / 0.9661 GB, free: 34.07 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002118/2.419, allocations: 0 / 0.9661 GB, free: 34.07 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001873/2.42, allocations: 102 kB / 0.9662 GB, free: 33.96 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0179/2.437, allocations: 6.508 MB / 0.9726 GB, free: 27.28 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003544/2.441, allocations: 1.391 MB / 0.9739 GB, free: 25.88 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001815/2.443, allocations: 0.8016 MB / 0.9747 GB, free: 25.07 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008693/2.452, allocations: 3.852 MB / 0.9785 GB, free: 20.98 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.312e-05/2.452, allocations: 47.88 kB / 0.9785 GB, free: 20.93 MB / 427.1 MB Notification: Performance of pre-optimization done (n=110): time 3.977e-06/2.452, allocations: 0 / 0.9785 GB, free: 20.93 MB / 427.1 MB Notification: Performance of matching and sorting (n=122): time 0.03112/2.483, allocations: 6.429 MB / 0.9848 GB, free: 14.44 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.933e-05/2.483, allocations: 167.5 kB / 0.985 GB, free: 14.24 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001169/2.484, allocations: 0.6565 MB / 0.9856 GB, free: 13.57 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003039/2.484, allocations: 29.7 kB / 0.9856 GB, free: 13.54 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004024/2.485, allocations: 0.5449 MB / 0.9862 GB, free: 12.98 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004563/2.485, allocations: 398.1 kB / 0.9865 GB, free: 12.59 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001429/2.485, allocations: 4 kB / 0.9865 GB, free: 12.59 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0001067/2.486, allocations: 362.8 kB / 0.9869 GB, free: 12.22 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001651/2.487, allocations: 0.7184 MB / 0.9876 GB, free: 11.5 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00175/2.489, allocations: 0.9627 MB / 0.9885 GB, free: 10.46 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01625/2.505, allocations: 2.359 MB / 0.9908 GB, free: 8.102 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.621e-05/2.505, allocations: 0 / 0.9908 GB, free: 8.102 MB / 427.1 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.02089/2.526, allocations: 3.778 MB / 0.9945 GB, free: 4.301 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004332/2.527, allocations: 2.187 MB / 0.9967 GB, free: 1.953 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.758e-05/2.527, allocations: 12 kB / 0.9967 GB, free: 1.941 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003525/2.53, allocations: 0.9876 MB / 0.9976 GB, free: 0.9375 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001954/2.532, allocations: 215.6 kB / 0.9978 GB, free: 0.7266 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2971/2.829, allocations: 6.569 MB / 1.004 GB, free: 70.17 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002455/2.832, allocations: 73.02 kB / 1.004 GB, free: 70.17 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002364/2.832, allocations: 60.81 kB / 1.004 GB, free: 70.17 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.215e-05/2.832, allocations: 3.906 kB / 1.004 GB, free: 70.17 MB / 427.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02016/2.852, allocations: 3.582 MB / 1.008 GB, free: 70.11 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.189e-05/2.852, allocations: 7.281 kB / 1.008 GB, free: 70.11 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003085/2.856, allocations: 0.9108 MB / 1.009 GB, free: 70.07 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002016/2.858, allocations: 226.7 kB / 1.009 GB, free: 70.07 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01087/2.868, allocations: 6.362 MB / 1.015 GB, free: 66 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002103/2.871, allocations: 66.73 kB / 1.015 GB, free: 66 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002468/2.871, allocations: 60.08 kB / 1.015 GB, free: 66 MB / 427.1 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.0005239/2.871, allocations: 141.7 kB / 1.015 GB, free: 65.9 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01176/2.883, allocations: 2.652 MB / 1.018 GB, free: 65.79 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006624/2.884, allocations: 113.8 kB / 1.018 GB, free: 65.74 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01317/2.897, allocations: 3.067 MB / 1.021 GB, free: 65.61 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.269e-05/2.897, allocations: 21.56 kB / 1.021 GB, free: 65.6 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/2.897, allocations: 10.42 kB / 1.021 GB, free: 65.6 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.572e-05/2.897, allocations: 6.516 kB / 1.021 GB, free: 65.6 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01628/2.914, allocations: 4.538 MB / 1.026 GB, free: 65.25 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.315e-05/2.914, allocations: 1.219 kB / 1.026 GB, free: 65.25 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001608/2.915, allocations: 149.8 kB / 1.026 GB, free: 65.25 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004001/2.919, allocations: 1.008 MB / 1.027 GB, free: 65.21 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003668/2.92, allocations: 19.97 kB / 1.027 GB, free: 65.21 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01224/2.932, allocations: 6.6 MB / 1.033 GB, free: 61.07 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/2.932, allocations: 0 / 1.033 GB, free: 61.07 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01418/2.946, allocations: 4.047 MB / 1.037 GB, free: 60.8 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00133/2.947, allocations: 404.5 kB / 1.038 GB, free: 60.64 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003122/2.948, allocations: 3.375 kB / 1.038 GB, free: 60.64 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001952/2.95, allocations: 74.45 kB / 1.038 GB, free: 60.64 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004852/2.95, allocations: 141.5 kB / 1.038 GB, free: 60.64 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002028/2.951, allocations: 56.83 kB / 1.038 GB, free: 60.64 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.000857/2.951, allocations: 492.6 kB / 1.038 GB, free: 60.55 MB / 427.1 MB Notification: Performance of sort global known variables: time 6.61e-07/2.951, allocations: 3.188 kB / 1.038 GB, free: 60.55 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.004794/2.956, allocations: 1.047 MB / 1.039 GB, free: 60.55 MB / 427.1 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.01666/2.973, allocations: 5.299 MB / 1.044 GB, free: 59.73 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.0104/2.983, allocations: 3.397 MB / 1.048 GB, free: 59.26 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 8.797e-06/2.983, allocations: 0 / 1.048 GB, free: 59.26 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004267/2.988, allocations: 1.255 MB / 1.049 GB, free: 59.04 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00429/2.992, allocations: 490.3 kB / 1.05 GB, free: 59.03 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01225/3.004, allocations: 2.996 MB / 1.052 GB, free: 58.5 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009248/3.005, allocations: 1.29 MB / 1.054 GB, free: 57.78 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001324/3.007, allocations: 0.5054 MB / 1.054 GB, free: 57.77 MB / 427.1 MB Notification: Performance of SimCode: time 1.012e-06/3.007, allocations: 0 / 1.054 GB, free: 57.77 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.885/6.891, allocations: 55.49 MB / 1.108 GB, free: 43.44 MB / 427.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_TanksWithOverflow_fmu --startTime=0 --stopTime=25000 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_TanksWithOverflow.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat does not exist to compare? outputFormat=mat