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.001519/0.001519, allocations: 186.3 kB / 16.4 MB, free: 5.75 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.927/1.927, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.0011/0.0011, allocations: 92.36 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006023/0.0006024, allocations: 8 kB / 327.1 MB, free: 100 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4306/0.4313, allocations: 47.56 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.13/1.561, allocations: 409.9 MB / 0.7662 GB, free: 39.62 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002946/1.562, allocations: 86.28 kB / 0.7663 GB, free: 39.58 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.078/2.64, allocations: 213.4 MB / 0.9747 GB, free: 3.816 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.965e-06/2.64, allocations: 0 / 0.9747 GB, free: 3.816 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001738/2.64, allocations: 31.98 kB / 0.9747 GB, free: 3.785 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.009205/2.649, allocations: 1.959 MB / 0.9766 GB, free: 1.773 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/2.649, allocations: 8.031 kB / 0.9766 GB, free: 1.766 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009223/2.65, allocations: 172.7 kB / 0.9768 GB, free: 1.586 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009455/2.651, allocations: 166.2 kB / 0.977 GB, free: 1.422 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003773/2.655, allocations: 0.9919 MB / 0.9779 GB, free: 396 kB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002599/2.655, allocations: 230.5 kB / 0.9781 GB, free: 132 kB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005509/2.656, allocations: 99.97 kB / 0.9782 GB, free: 32 kB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3113/2.967, allocations: 1.801 MB / 0.98 GB, free: 68.95 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.459e-05/2.967, allocations: 3.328 kB / 0.98 GB, free: 68.95 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002709/2.968, allocations: 44.39 kB / 0.98 GB, free: 68.95 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002203/2.968, allocations: 106.8 kB / 0.9801 GB, free: 68.95 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005328/2.973, allocations: 1.758 MB / 0.9819 GB, free: 68.93 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02066/2.994, allocations: 6.788 MB / 0.9885 GB, free: 66.99 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004472/2.999, allocations: 1.445 MB / 0.9899 GB, free: 66.95 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009805/3.008, allocations: 3.901 MB / 0.9937 GB, free: 65.39 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.17e-05/3.009, allocations: 50.36 kB / 0.9938 GB, free: 65.35 MB / 426.7 MB Notification: Performance of pre-optimization done (n=110): time 4.809e-06/3.009, allocations: 2.625 kB / 0.9938 GB, free: 65.35 MB / 426.7 MB Notification: Performance of matching and sorting (n=122): time 0.02646/3.035, allocations: 5.895 MB / 0.9995 GB, free: 64.49 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.449e-05/3.035, allocations: 167 kB / 0.9997 GB, free: 64.3 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002184/3.037, allocations: 0.9944 MB / 1.001 GB, free: 64.16 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004767/3.038, allocations: 50.73 kB / 1.001 GB, free: 64.12 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004342/3.038, allocations: 0.4989 MB / 1.001 GB, free: 63.89 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006351/3.039, allocations: 415.4 kB / 1.002 GB, free: 63.68 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002017/3.039, allocations: 28.88 kB / 1.002 GB, free: 63.68 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001229/3.039, allocations: 369.5 kB / 1.002 GB, free: 63.37 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002313/3.042, allocations: 0.7527 MB / 1.003 GB, free: 63.37 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002573/3.044, allocations: 1.013 MB / 1.004 GB, free: 63.12 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002617/3.047, allocations: 0.8151 MB / 1.004 GB, free: 63.11 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.06e-05/3.047, allocations: 1.531 kB / 1.004 GB, free: 63.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.008134/3.055, allocations: 2.357 MB / 1.007 GB, free: 62.97 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000532/3.056, allocations: 2.184 MB / 1.009 GB, free: 60.71 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.156e-05/3.056, allocations: 6.219 kB / 1.009 GB, free: 60.71 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006366/3.062, allocations: 1.215 MB / 1.01 GB, free: 60.67 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001997/3.064, allocations: 216 kB / 1.01 GB, free: 60.67 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009026/3.073, allocations: 6.247 MB / 1.016 GB, free: 56.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002844/3.076, allocations: 94.72 kB / 1.017 GB, free: 56.43 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003485/3.076, allocations: 64.59 kB / 1.017 GB, free: 56.42 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/3.076, allocations: 7.406 kB / 1.017 GB, free: 56.42 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007294/3.084, allocations: 2.232 MB / 1.019 GB, free: 56.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.93e-05/3.084, allocations: 7.219 kB / 1.019 GB, free: 56.34 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00423/3.088, allocations: 0.9682 MB / 1.02 GB, free: 56.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002046/3.09, allocations: 233.4 kB / 1.02 GB, free: 56.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008612/3.099, allocations: 6.088 MB / 1.026 GB, free: 52.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002261/3.101, allocations: 94.67 kB / 1.026 GB, free: 52.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002285/3.101, allocations: 57.27 kB / 1.026 GB, free: 52.07 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.001329/3.103, allocations: 457.9 kB / 1.026 GB, free: 51.88 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005097/3.103, allocations: 134.7 kB / 1.027 GB, free: 51.81 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008327/3.112, allocations: 2.612 MB / 1.029 GB, free: 51.66 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.165e-05/3.112, allocations: 13.66 kB / 1.029 GB, free: 51.66 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.048e-05/3.112, allocations: 6.531 kB / 1.029 GB, free: 51.66 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.589e-05/3.112, allocations: 7.641 kB / 1.029 GB, free: 51.66 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.012/3.124, allocations: 4.177 MB / 1.033 GB, free: 51.27 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.376e-05/3.124, allocations: 0 / 1.033 GB, free: 51.27 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001542/3.125, allocations: 151.8 kB / 1.033 GB, free: 51.27 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005872/3.131, allocations: 1.221 MB / 1.035 GB, free: 51.23 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004264/3.132, allocations: 33.38 kB / 1.035 GB, free: 51.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008866/3.141, allocations: 6.263 MB / 1.041 GB, free: 46.99 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/3.141, allocations: 0 / 1.041 GB, free: 46.99 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01034/3.151, allocations: 3.593 MB / 1.044 GB, free: 46.69 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00148/3.153, allocations: 437.2 kB / 1.045 GB, free: 46.53 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003913/3.153, allocations: 28.84 kB / 1.045 GB, free: 46.53 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002034/3.155, allocations: 94.08 kB / 1.045 GB, free: 46.52 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005344/3.156, allocations: 143.1 kB / 1.045 GB, free: 46.52 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002092/3.156, allocations: 52.59 kB / 1.045 GB, free: 46.52 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001507/3.157, allocations: 0.7527 MB / 1.046 GB, free: 46.41 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.81e-07/3.157, allocations: 2.438 kB / 1.046 GB, free: 46.41 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005408/3.163, allocations: 1.133 MB / 1.047 GB, free: 46.41 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.01309/3.176, allocations: 4.863 MB / 1.052 GB, free: 45.09 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01308/3.189, allocations: 3.581 MB / 1.055 GB, free: 43.59 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.147e-05/3.189, allocations: 3.062 kB / 1.055 GB, free: 43.59 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005473/3.195, allocations: 1.353 MB / 1.056 GB, free: 42.98 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004916/3.2, allocations: 0.5495 MB / 1.057 GB, free: 42.87 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01706/3.217, allocations: 8.529 MB / 1.065 GB, free: 36.82 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009648/3.218, allocations: 1.284 MB / 1.066 GB, free: 36.06 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001505/3.219, allocations: 0.5223 MB / 1.067 GB, free: 35.7 MB / 426.7 MB Notification: Performance of SimCode: time 1.273e-06/3.219, allocations: 2.625 kB / 1.067 GB, free: 35.7 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.804/7.023, allocations: 56.39 MB / 1.122 GB, free: 7.98 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)