Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_3_2_3_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.001004/0.001004, allocations: 180.6 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.475/1.475, allocations: 205.4 MB / 223.1 MB, free: 9.117 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.0009212/0.0009213, allocations: 92.16 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002921/0.0002921, allocations: 12 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2879/0.2882, allocations: 47.56 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8959/1.184, allocations: 409.9 MB / 0.7674 GB, free: 39.6 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000404/1.185, allocations: 94.58 kB / 0.7675 GB, free: 39.55 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6932/1.878, allocations: 213.4 MB / 0.9759 GB, free: 3.773 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.403e-06/1.878, allocations: 0 / 0.9759 GB, free: 3.773 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001628/1.878, allocations: 39.92 kB / 0.976 GB, free: 3.734 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.007259/1.885, allocations: 1.94 MB / 0.9778 GB, free: 1.742 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/1.885, allocations: 16.02 kB / 0.9779 GB, free: 1.727 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008168/1.886, allocations: 172.7 kB / 0.978 GB, free: 1.547 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001022/1.887, allocations: 170.2 kB / 0.9782 GB, free: 1.379 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002704/1.89, allocations: 0.9958 MB / 0.9792 GB, free: 348 kB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002103/1.89, allocations: 238.4 kB / 0.9794 GB, free: 76 kB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.2455/2.136, allocations: 93.94 kB / 0.9795 GB, free: 69.27 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00356/2.139, allocations: 1.801 MB / 0.9812 GB, free: 69.07 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.91e-05/2.139, allocations: 0 / 0.9812 GB, free: 69.07 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001498/2.14, allocations: 44.16 kB / 0.9813 GB, free: 69.07 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.948e-05/2.14, allocations: 100.5 kB / 0.9814 GB, free: 69.06 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002461/2.142, allocations: 1.758 MB / 0.9831 GB, free: 69.05 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009984/2.152, allocations: 6.794 MB / 0.9897 GB, free: 67.1 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002102/2.154, allocations: 1.441 MB / 0.9911 GB, free: 67.07 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005092/2.159, allocations: 3.914 MB / 0.995 GB, free: 65.5 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.009e-05/2.159, allocations: 44.94 kB / 0.995 GB, free: 65.46 MB / 426.7 MB Notification: Performance of pre-optimization done (n=110): time 2.424e-06/2.159, allocations: 0 / 0.995 GB, free: 65.46 MB / 426.7 MB Notification: Performance of matching and sorting (n=122): time 0.01272/2.172, allocations: 5.903 MB / 1.001 GB, free: 64.61 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.222e-05/2.172, allocations: 175.8 kB / 1.001 GB, free: 64.41 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00118/2.173, allocations: 0.9893 MB / 1.002 GB, free: 64.27 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001243/2.174, allocations: 47.05 kB / 1.002 GB, free: 64.24 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003678/2.174, allocations: 0.5135 MB / 1.002 GB, free: 64.07 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003709/2.174, allocations: 415.7 kB / 1.003 GB, free: 63.86 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001077/2.174, allocations: 26.88 kB / 1.003 GB, free: 63.86 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001114/2.175, allocations: 358.7 kB / 1.003 GB, free: 63.56 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001319/2.176, allocations: 0.759 MB / 1.004 GB, free: 63.55 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001561/2.177, allocations: 1.007 MB / 1.005 GB, free: 63.31 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001506/2.179, allocations: 0.8189 MB / 1.006 GB, free: 63.3 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.069e-06/2.179, allocations: 1.656 kB / 1.006 GB, free: 63.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.004706/2.184, allocations: 2.432 MB / 1.008 GB, free: 63.12 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005784/2.184, allocations: 2.184 MB / 1.01 GB, free: 60.86 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.838e-05/2.184, allocations: 9.828 kB / 1.01 GB, free: 60.85 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003823/2.188, allocations: 1.213 MB / 1.011 GB, free: 60.81 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009379/2.189, allocations: 214 kB / 1.012 GB, free: 60.81 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00536/2.195, allocations: 6.243 MB / 1.018 GB, free: 56.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001543/2.196, allocations: 94.25 kB / 1.018 GB, free: 56.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001823/2.196, allocations: 61.36 kB / 1.018 GB, free: 56.57 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.716e-06/2.196, allocations: 6.438 kB / 1.018 GB, free: 56.57 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004043/2.2, allocations: 2.23 MB / 1.02 GB, free: 56.49 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.247e-05/2.2, allocations: 7.781 kB / 1.02 GB, free: 56.49 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002709/2.203, allocations: 1.019 MB / 1.021 GB, free: 56.45 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009897/2.204, allocations: 234.8 kB / 1.021 GB, free: 56.45 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005929/2.21, allocations: 6.076 MB / 1.027 GB, free: 52.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001568/2.212, allocations: 95.55 kB / 1.027 GB, free: 52.21 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001759/2.212, allocations: 61.03 kB / 1.027 GB, free: 52.21 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 () * 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.0008874/2.213, allocations: 460 kB / 1.028 GB, free: 52.02 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003583/2.213, allocations: 132.8 kB / 1.028 GB, free: 51.95 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004606/2.218, allocations: 2.612 MB / 1.03 GB, free: 51.81 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.807e-05/2.218, allocations: 20.33 kB / 1.031 GB, free: 51.81 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/2.218, allocations: 3.875 kB / 1.031 GB, free: 51.81 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.447e-05/2.218, allocations: 6.797 kB / 1.031 GB, free: 51.81 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00638/2.224, allocations: 4.188 MB / 1.035 GB, free: 51.41 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-06/2.224, allocations: 0 / 1.035 GB, free: 51.41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007286/2.225, allocations: 145.7 kB / 1.035 GB, free: 51.41 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003214/2.228, allocations: 1.223 MB / 1.036 GB, free: 51.37 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001331/2.228, allocations: 33.89 kB / 1.036 GB, free: 51.37 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005151/2.233, allocations: 6.265 MB / 1.042 GB, free: 47.13 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/2.233, allocations: 0 / 1.042 GB, free: 47.13 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005185/2.239, allocations: 3.587 MB / 1.046 GB, free: 46.83 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009975/2.24, allocations: 439.2 kB / 1.046 GB, free: 46.67 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003378/2.24, allocations: 28.72 kB / 1.046 GB, free: 46.67 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001272/2.241, allocations: 96.45 kB / 1.046 GB, free: 46.66 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002832/2.242, allocations: 140.5 kB / 1.046 GB, free: 46.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001533/2.242, allocations: 59.56 kB / 1.046 GB, free: 46.66 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001083/2.243, allocations: 0.7556 MB / 1.047 GB, free: 46.55 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.1e-07/2.243, allocations: 0 / 1.047 GB, free: 46.55 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003974/2.247, allocations: 1.13 MB / 1.048 GB, free: 46.55 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) * 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.008082/2.255, allocations: 4.861 MB / 1.053 GB, free: 45.25 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006984/2.262, allocations: 3.573 MB / 1.056 GB, free: 43.75 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/2.262, allocations: 0 / 1.056 GB, free: 43.75 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002618/2.265, allocations: 1.36 MB / 1.058 GB, free: 43.14 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002953/2.268, allocations: 0.5578 MB / 1.058 GB, free: 43.02 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01213/2.28, allocations: 8.472 MB / 1.067 GB, free: 37.01 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001251/2.281, allocations: 1.285 MB / 1.068 GB, free: 36.25 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002374/2.283, allocations: 0.5754 MB / 1.068 GB, free: 36.23 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008218/2.284, allocations: 0.5074 MB / 1.069 GB, free: 35.87 MB / 426.7 MB Notification: Performance of SimCode: time 1.242e-06/2.284, allocations: 0 / 1.069 GB, free: 35.87 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08722/2.371, allocations: 53.29 MB / 1.121 GB, free: 10.47 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001493/2.372, allocations: 251.5 kB / 1.121 GB, free: 10.15 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.844/6.216, allocations: 0 / 1.121 GB, free: 10.15 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_TanksWithOverflow_fmu --startTime=0 --stopTime=25000 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_TanksWithOverflow.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat does not exist to compare? outputFormat=mat