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.001149/0.001149, allocations: 172.9 kB / 14.1 MB, free: 1.223 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.313/1.313, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0009242/0.0009244, allocations: 90.58 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.803e-05/2.814e-05, allocations: 4 kB / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09001/0.09005, allocations: 47.57 MB / 370.1 MB, free: 1.633 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.024/1.115, allocations: 409.8 MB / 0.7617 GB, free: 109.2 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002445/1.115, allocations: 83.95 kB / 0.7618 GB, free: 109.1 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6951/1.81, allocations: 212.7 MB / 0.9695 GB, free: 64.79 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.713e-06/1.81, allocations: 0 / 0.9695 GB, free: 64.79 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.913e-05/1.81, allocations: 35.06 kB / 0.9695 GB, free: 64.76 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.00493/1.815, allocations: 1.805 MB / 0.9713 GB, free: 62.92 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/1.815, allocations: 8.031 kB / 0.9713 GB, free: 62.91 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002549/1.815, allocations: 168.5 kB / 0.9715 GB, free: 62.74 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005318/1.816, allocations: 174.2 kB / 0.9716 GB, free: 62.57 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001906/1.818, allocations: 0.9835 MB / 0.9726 GB, free: 61.56 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00014/1.818, allocations: 238.2 kB / 0.9728 GB, free: 61.3 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001818/1.818, allocations: 95.83 kB / 0.9729 GB, free: 61.21 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002499/1.821, allocations: 1.782 MB / 0.9746 GB, free: 59.38 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.773e-05/1.821, allocations: 4 kB / 0.9746 GB, free: 59.37 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001486/1.821, allocations: 43.42 kB / 0.9747 GB, free: 59.34 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001109/1.821, allocations: 105.9 kB / 0.9748 GB, free: 59.23 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002354/1.823, allocations: 1.726 MB / 0.9765 GB, free: 57.5 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01039/1.834, allocations: 6.793 MB / 0.9831 GB, free: 50.5 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002053/1.836, allocations: 1.425 MB / 0.9845 GB, free: 49.06 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001012/1.837, allocations: 0.8319 MB / 0.9853 GB, free: 48.23 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004947/1.842, allocations: 3.952 MB / 0.9892 GB, free: 44.04 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.415e-05/1.842, allocations: 47.56 kB / 0.9892 GB, free: 43.98 MB / 426.7 MB Notification: Performance of pre-optimization done (n=110): time 2.715e-06/1.842, allocations: 0 / 0.9892 GB, free: 43.98 MB / 426.7 MB Notification: Performance of matching and sorting (n=122): time 0.008796/1.851, allocations: 4.599 MB / 0.9937 GB, free: 39.33 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.21e-05/1.851, allocations: 171.2 kB / 0.9939 GB, free: 39.13 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001352/1.852, allocations: 0.9826 MB / 0.9948 GB, free: 38.13 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001381/1.852, allocations: 49.7 kB / 0.9949 GB, free: 38.07 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000308/1.853, allocations: 0.512 MB / 0.9954 GB, free: 37.55 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003017/1.853, allocations: 418.9 kB / 0.9958 GB, free: 37.15 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.116e-05/1.853, allocations: 24 kB / 0.9958 GB, free: 37.13 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.21e-05/1.853, allocations: 357.9 kB / 0.9961 GB, free: 36.77 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001011/1.854, allocations: 0.738 MB / 0.9969 GB, free: 36.04 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001062/1.855, allocations: 0.9939 MB / 0.9978 GB, free: 34.95 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001047/1.856, allocations: 0.8013 MB / 0.9986 GB, free: 34.15 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/1.856, allocations: 4 kB / 0.9986 GB, free: 34.14 MB / 426.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.00372/1.86, allocations: 2.393 MB / 1.001 GB, free: 31.73 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000416/1.861, allocations: 2.18 MB / 1.003 GB, free: 29.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.465e-05/1.861, allocations: 11.95 kB / 1.003 GB, free: 29.37 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003327/1.864, allocations: 1.205 MB / 1.004 GB, free: 28.15 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009745/1.865, allocations: 215.7 kB / 1.004 GB, free: 27.94 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005136/1.87, allocations: 6.165 MB / 1.011 GB, free: 21.44 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001668/1.872, allocations: 103.8 kB / 1.011 GB, free: 21.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002538/1.872, allocations: 64.09 kB / 1.011 GB, free: 21.28 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.768e-06/1.872, allocations: 0 / 1.011 GB, free: 21.28 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003893/1.876, allocations: 2.204 MB / 1.013 GB, free: 19.06 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.979e-05/1.876, allocations: 4 kB / 1.013 GB, free: 19.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002493/1.878, allocations: 1.011 MB / 1.014 GB, free: 18.03 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001022/1.879, allocations: 227.6 kB / 1.014 GB, free: 17.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004823/1.884, allocations: 6.018 MB / 1.02 GB, free: 11.45 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001598/1.886, allocations: 103.8 kB / 1.02 GB, free: 11.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000227/1.886, allocations: 55.97 kB / 1.02 GB, free: 11.29 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.0004975/1.887, allocations: 188.6 kB / 1.02 GB, free: 11.1 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004043/1.887, allocations: 134.4 kB / 1.02 GB, free: 10.96 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00464/1.892, allocations: 2.574 MB / 1.023 GB, free: 8.367 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-05/1.892, allocations: 15.94 kB / 1.023 GB, free: 8.352 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.264e-05/1.892, allocations: 4 kB / 1.023 GB, free: 8.348 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.5e-05/1.892, allocations: 7.969 kB / 1.023 GB, free: 8.34 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007338/1.899, allocations: 4.165 MB / 1.027 GB, free: 4.129 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-05/1.899, allocations: 0 / 1.027 GB, free: 4.129 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008107/1.9, allocations: 143.8 kB / 1.027 GB, free: 3.988 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003421/1.904, allocations: 1.205 MB / 1.028 GB, free: 2.773 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001434/1.904, allocations: 35.97 kB / 1.028 GB, free: 2.738 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.271/2.175, allocations: 6.202 MB / 1.034 GB, free: 71.45 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/2.175, allocations: 0.6094 kB / 1.034 GB, free: 71.45 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008118/2.183, allocations: 3.536 MB / 1.038 GB, free: 71.26 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001364/2.184, allocations: 441.6 kB / 1.038 GB, free: 71.16 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000524/2.185, allocations: 26.25 kB / 1.038 GB, free: 71.16 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001578/2.186, allocations: 94.06 kB / 1.038 GB, free: 71.16 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004595/2.187, allocations: 143.3 kB / 1.038 GB, free: 71.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002096/2.187, allocations: 52.89 kB / 1.039 GB, free: 71.16 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001619/2.189, allocations: 0.7443 MB / 1.039 GB, free: 71.04 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.71e-07/2.189, allocations: 0 / 1.039 GB, free: 71.04 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004548/2.193, allocations: 1.126 MB / 1.04 GB, free: 71.04 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.008356/2.202, allocations: 4.806 MB / 1.045 GB, free: 70.29 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007636/2.209, allocations: 3.551 MB / 1.049 GB, free: 69.77 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.243e-06/2.209, allocations: 0 / 1.049 GB, free: 69.77 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002924/2.212, allocations: 1.315 MB / 1.05 GB, free: 69.52 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003503/2.216, allocations: 0.5418 MB / 1.05 GB, free: 69.52 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01073/2.227, allocations: 3.124 MB / 1.053 GB, free: 69 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009083/2.228, allocations: 1.293 MB / 1.055 GB, free: 68.29 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002808/2.23, allocations: 0.6924 MB / 1.055 GB, free: 68.27 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007159/2.231, allocations: 0.4972 MB / 1.056 GB, free: 68.27 MB / 426.7 MB Notification: Performance of SimCode: time 1.392e-06/2.231, allocations: 0 / 1.056 GB, free: 68.27 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09344/2.325, allocations: 55.23 MB / 1.11 GB, free: 65.18 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001707/2.325, allocations: 229.5 kB / 1.11 GB, free: 64.95 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.155/6.48, allocations: 0 / 1.11 GB, free: 64.95 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