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.002348/0.002348, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.003/2.003, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001068/0.001067, allocations: 94.62 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.996e-05/3.001e-05, allocations: 8 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09278/0.09283, allocations: 47.57 MB / 369.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.342/1.435, allocations: 409.8 MB / 0.7608 GB, free: 95.07 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002781/1.435, allocations: 91.06 kB / 0.7609 GB, free: 95.02 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.069/2.504, allocations: 212.7 MB / 0.9686 GB, free: 55.78 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.924e-06/2.504, allocations: 0 / 0.9686 GB, free: 55.78 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001204/2.504, allocations: 36.09 kB / 0.9686 GB, free: 55.74 MB / 426.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.006881/2.511, allocations: 1.796 MB / 0.9704 GB, free: 53.89 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.455e-05/2.511, allocations: 8.031 kB / 0.9704 GB, free: 53.89 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006256/2.512, allocations: 172.7 kB / 0.9705 GB, free: 53.71 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008507/2.513, allocations: 166.2 kB / 0.9707 GB, free: 53.54 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003557/2.516, allocations: 0.9842 MB / 0.9717 GB, free: 52.52 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002401/2.517, allocations: 238.5 kB / 0.9719 GB, free: 52.25 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003806/2.517, allocations: 99.89 kB / 0.972 GB, free: 52.16 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004438/2.521, allocations: 1.787 MB / 0.9737 GB, free: 50.3 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.896e-05/2.522, allocations: 0 / 0.9737 GB, free: 50.3 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002282/2.522, allocations: 43.97 kB / 0.9738 GB, free: 50.25 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002292/2.522, allocations: 102 kB / 0.9739 GB, free: 50.15 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004385/2.526, allocations: 1.718 MB / 0.9756 GB, free: 48.43 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01883/2.545, allocations: 6.79 MB / 0.9822 GB, free: 41.38 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00398/2.549, allocations: 1.429 MB / 0.9836 GB, free: 39.93 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002108/2.551, allocations: 0.8319 MB / 0.9844 GB, free: 39.1 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008494/2.56, allocations: 3.949 MB / 0.9882 GB, free: 34.88 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.49e-05/2.56, allocations: 51.52 kB / 0.9883 GB, free: 34.82 MB / 426.7 MB Notification: Performance of pre-optimization done (n=110): time 3.537e-06/2.56, allocations: 0 / 0.9883 GB, free: 34.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=122): time 0.01651/2.577, allocations: 4.597 MB / 0.9928 GB, free: 30.16 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.149e-05/2.577, allocations: 179.2 kB / 0.993 GB, free: 29.95 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00196/2.579, allocations: 0.9826 MB / 0.9939 GB, free: 28.95 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003847/2.579, allocations: 45.7 kB / 0.994 GB, free: 28.9 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003976/2.58, allocations: 0.5065 MB / 0.9945 GB, free: 28.39 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004905/2.58, allocations: 410.1 kB / 0.9948 GB, free: 27.98 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000159/2.58, allocations: 24 kB / 0.9949 GB, free: 27.96 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001164/2.58, allocations: 366.8 kB / 0.9952 GB, free: 27.59 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001872/2.582, allocations: 0.7341 MB / 0.9959 GB, free: 26.86 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001991/2.584, allocations: 1.002 MB / 0.9969 GB, free: 25.77 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001964/2.586, allocations: 0.8086 MB / 0.9977 GB, free: 24.96 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.534e-06/2.586, allocations: 4 kB / 0.9977 GB, free: 24.95 MB / 426.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.006513/2.593, allocations: 2.316 MB / 1 GB, free: 22.61 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004541/2.593, allocations: 2.182 MB / 1.002 GB, free: 20.26 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.756e-05/2.593, allocations: 8 kB / 1.002 GB, free: 20.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005827/2.599, allocations: 1.206 MB / 1.003 GB, free: 19.03 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001961/2.601, allocations: 219.6 kB / 1.003 GB, free: 18.82 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008125/2.609, allocations: 6.164 MB / 1.01 GB, free: 12.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002677/2.612, allocations: 99.84 kB / 1.01 GB, free: 12.21 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002629/2.612, allocations: 60.16 kB / 1.01 GB, free: 12.15 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/2.612, allocations: 7.938 kB / 1.01 GB, free: 12.14 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006257/2.619, allocations: 2.205 MB / 1.012 GB, free: 9.918 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.087e-05/2.619, allocations: 4 kB / 1.012 GB, free: 9.914 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003968/2.623, allocations: 0.9645 MB / 1.013 GB, free: 8.934 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002025/2.625, allocations: 227.7 kB / 1.013 GB, free: 8.711 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007641/2.632, allocations: 6.02 MB / 1.019 GB, free: 2.348 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002201/2.635, allocations: 99.84 kB / 1.019 GB, free: 2.25 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002259/2.635, allocations: 55.97 kB / 1.019 GB, free: 2.195 MB / 426.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.0005668/2.635, allocations: 192.6 kB / 1.019 GB, free: 2 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004935/2.636, allocations: 134.4 kB / 1.019 GB, free: 1.867 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.312/2.948, allocations: 2.556 MB / 1.022 GB, free: 72.6 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.774e-05/2.948, allocations: 15.08 kB / 1.022 GB, free: 72.6 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/2.948, allocations: 2.797 kB / 1.022 GB, free: 72.6 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.195e-05/2.948, allocations: 12.62 kB / 1.022 GB, free: 72.6 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0134/2.961, allocations: 4.156 MB / 1.026 GB, free: 72.25 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.841e-05/2.961, allocations: 0 / 1.026 GB, free: 72.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001683/2.963, allocations: 150 kB / 1.026 GB, free: 72.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006083/2.969, allocations: 1.198 MB / 1.027 GB, free: 72.21 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004316/2.97, allocations: 38.2 kB / 1.027 GB, free: 72.21 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008771/2.979, allocations: 6.198 MB / 1.033 GB, free: 68.02 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.748e-06/2.979, allocations: 4.438 kB / 1.033 GB, free: 68.02 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01072/2.989, allocations: 3.542 MB / 1.037 GB, free: 67.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001665/2.991, allocations: 448.7 kB / 1.037 GB, free: 67.71 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004035/2.991, allocations: 24.66 kB / 1.037 GB, free: 67.71 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00204/2.994, allocations: 92.66 kB / 1.037 GB, free: 67.71 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005844/2.994, allocations: 143 kB / 1.037 GB, free: 67.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002245/2.994, allocations: 52.36 kB / 1.038 GB, free: 67.71 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001715/2.996, allocations: 0.742 MB / 1.038 GB, free: 67.59 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.814e-06/2.996, allocations: 0 / 1.038 GB, free: 67.59 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005818/3.002, allocations: 1.125 MB / 1.039 GB, free: 67.59 MB / 426.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.01286/3.015, allocations: 4.817 MB / 1.044 GB, free: 66.79 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01112/3.026, allocations: 3.516 MB / 1.047 GB, free: 66.28 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.108e-05/3.026, allocations: 0 / 1.047 GB, free: 66.28 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004414/3.031, allocations: 1.323 MB / 1.049 GB, free: 66.04 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004681/3.035, allocations: 0.5432 MB / 1.049 GB, free: 66.03 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01298/3.048, allocations: 3.144 MB / 1.052 GB, free: 65.5 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009216/3.049, allocations: 1.284 MB / 1.054 GB, free: 64.79 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001413/3.051, allocations: 0.5317 MB / 1.054 GB, free: 64.78 MB / 426.7 MB Notification: Performance of SimCode: time 1.503e-06/3.051, allocations: 0 / 1.054 GB, free: 64.78 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.717/6.768, allocations: 56.85 MB / 1.11 GB, free: 58.73 MB / 426.7 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