Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.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.AST_BatchPlant.Test.TankWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",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.002444/0.002444, allocations: 178 kB / 8.363 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 1.978/1.978, 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.001113/0.001113, allocations: 87.66 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.583e-05/2.579e-05, allocations: 0 / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3339/0.334, allocations: 47.56 MB / 362.4 MB, free: 45.72 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.135/1.469, allocations: 327.5 MB / 0.6737 GB, free: 119.6 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002582/1.47, allocations: 90.52 kB / 0.6738 GB, free: 119.6 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.8534/2.323, allocations: 165.3 MB / 0.8352 GB, free: 85.3 MB / 427.1 MB Notification: Performance of FrontEnd: time 3.136e-06/2.323, allocations: 7.016 kB / 0.8352 GB, free: 85.3 MB / 427.1 MB Notification: Performance of Transformations before backend: time 8.866e-05/2.323, allocations: 22.98 kB / 0.8353 GB, free: 85.3 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.003498/2.327, allocations: 1.107 MB / 0.8363 GB, free: 84.82 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/2.327, allocations: 11.06 kB / 0.8364 GB, free: 84.82 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006519/2.327, allocations: 101.4 kB / 0.8365 GB, free: 84.77 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001859/2.329, allocations: 0.6276 MB / 0.8371 GB, free: 84.53 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.681e-05/2.329, allocations: 21.98 kB / 0.8371 GB, free: 84.53 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001259/2.329, allocations: 32.25 kB / 0.8371 GB, free: 84.53 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001642/2.331, allocations: 0.7103 MB / 0.8378 GB, free: 84.52 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001642/2.333, allocations: 0.7878 MB / 0.8386 GB, free: 84.34 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.089e-05/2.333, allocations: 4.188 kB / 0.8386 GB, free: 84.34 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000104/2.333, allocations: 0 / 0.8386 GB, free: 84.34 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.574e-05/2.333, allocations: 53.95 kB / 0.8386 GB, free: 84.34 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007096/2.34, allocations: 3.635 MB / 0.8422 GB, free: 82.39 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001106/2.341, allocations: 0.4993 MB / 0.8427 GB, free: 82.37 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004999/2.342, allocations: 240.5 kB / 0.8429 GB, free: 82.36 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003087/2.345, allocations: 1.856 MB / 0.8447 GB, free: 81.13 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.75e-05/2.345, allocations: 40.72 kB / 0.8448 GB, free: 81.09 MB / 427.1 MB Notification: Performance of pre-optimization done (n=41): time 3.958e-06/2.345, allocations: 0 / 0.8448 GB, free: 81.09 MB / 427.1 MB Notification: Performance of matching and sorting (n=46): time 0.01022/2.355, allocations: 1.82 MB / 0.8465 GB, free: 80.69 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.368e-05/2.355, allocations: 140.3 kB / 0.8467 GB, free: 80.53 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000941/2.356, allocations: 0.5023 MB / 0.8472 GB, free: 80.41 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001223/2.356, allocations: 31.47 kB / 0.8472 GB, free: 80.38 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003004/2.357, allocations: 443 kB / 0.8476 GB, free: 80.13 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001748/2.357, allocations: 153 kB / 0.8478 GB, free: 80.05 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.248e-05/2.357, allocations: 0 / 0.8478 GB, free: 80.05 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 8.55e-05/2.357, allocations: 352.1 kB / 0.8481 GB, free: 79.73 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006035/2.358, allocations: 236.7 kB / 0.8483 GB, free: 79.73 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007457/2.358, allocations: 477.7 kB / 0.8488 GB, free: 79.46 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007503/2.366, allocations: 0.9323 MB / 0.8497 GB, free: 79.46 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-05/2.366, allocations: 1.438 kB / 0.8497 GB, free: 79.46 MB / 427.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.009046/2.375, allocations: 1.389 MB / 0.851 GB, free: 79.38 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005622/2.376, allocations: 2.706 MB / 0.8537 GB, free: 76.57 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.17e-05/2.376, allocations: 9.375 kB / 0.8537 GB, free: 76.57 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004278/2.376, allocations: 94.39 kB / 0.8538 GB, free: 76.55 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001883/2.378, allocations: 189.3 kB / 0.854 GB, free: 76.55 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002174/2.38, allocations: 1.882 MB / 0.8558 GB, free: 74.93 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001246/2.382, allocations: 37.36 kB / 0.8558 GB, free: 74.93 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001113/2.382, allocations: 39.7 kB / 0.8559 GB, free: 74.93 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/2.382, allocations: 2.938 kB / 0.8559 GB, free: 74.93 MB / 427.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008813/2.391, allocations: 1.303 MB / 0.8571 GB, free: 74.9 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.086e-05/2.391, allocations: 10.91 kB / 0.8572 GB, free: 74.9 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003321/2.391, allocations: 93.97 kB / 0.8572 GB, free: 74.88 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001443/2.392, allocations: 177 kB / 0.8574 GB, free: 74.88 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001538/2.394, allocations: 1.233 MB / 0.8586 GB, free: 73.84 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001046/2.395, allocations: 33.53 kB / 0.8587 GB, free: 73.84 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001446/2.395, allocations: 35.28 kB / 0.8587 GB, free: 73.84 MB / 427.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003594/2.396, allocations: 129.8 kB / 0.8588 GB, free: 73.74 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00398/2.4, allocations: 0.7129 MB / 0.8595 GB, free: 73.64 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003129/2.4, allocations: 73.19 kB / 0.8596 GB, free: 73.61 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003445/2.403, allocations: 0.8368 MB / 0.8604 GB, free: 73.52 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.802e-05/2.404, allocations: 7.219 kB / 0.8604 GB, free: 73.52 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.857e-06/2.404, allocations: 2.75 kB / 0.8604 GB, free: 73.52 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.058e-05/2.404, allocations: 3.797 kB / 0.8604 GB, free: 73.52 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005218/2.409, allocations: 1.521 MB / 0.8619 GB, free: 73.2 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.013e-05/2.409, allocations: 4.25 kB / 0.8619 GB, free: 73.2 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001183/2.41, allocations: 137.2 kB / 0.862 GB, free: 73.2 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003729/2.41, allocations: 65.91 kB / 0.8621 GB, free: 73.18 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.015e-05/2.411, allocations: 8.062 kB / 0.8621 GB, free: 73.18 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001528/2.412, allocations: 1.785 MB / 0.8638 GB, free: 71.56 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/2.412, allocations: 1.531 kB / 0.8638 GB, free: 71.56 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003449/2.416, allocations: 1.143 MB / 0.865 GB, free: 71.28 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003159/2.416, allocations: 162.9 kB / 0.8651 GB, free: 71.14 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001605/2.416, allocations: 3.531 kB / 0.8651 GB, free: 71.14 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008653/2.417, allocations: 28.73 kB / 0.8651 GB, free: 71.14 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001722/2.417, allocations: 55.38 kB / 0.8652 GB, free: 71.14 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.278e-05/2.417, allocations: 30.98 kB / 0.8652 GB, free: 71.14 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0006872/2.418, allocations: 390.7 kB / 0.8656 GB, free: 71.05 MB / 427.1 MB Notification: Performance of sort global known variables: time 4e-07/2.418, allocations: 0 / 0.8656 GB, free: 71.05 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.002841/2.421, allocations: 0.6126 MB / 0.8662 GB, free: 70.95 MB / 427.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.005984/2.427, allocations: 2.468 MB / 0.8686 GB, free: 69.84 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.003828/2.431, allocations: 1.052 MB / 0.8696 GB, free: 69.83 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/2.431, allocations: 0 / 0.8696 GB, free: 69.83 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001143/2.432, allocations: 353.1 kB / 0.87 GB, free: 69.83 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002444/2.434, allocations: 286.5 kB / 0.8702 GB, free: 69.82 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004273/2.439, allocations: 1.433 MB / 0.8716 GB, free: 69.34 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005307/2.439, allocations: 0.9967 MB / 0.8726 GB, free: 68.63 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006571/2.44, allocations: 300.2 kB / 0.8729 GB, free: 68.62 MB / 427.1 MB Notification: Performance of SimCode: time 1.192e-06/2.44, allocations: 0 / 0.8729 GB, free: 68.62 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.602/6.042, allocations: 28.25 MB / 0.9005 GB, free: 67.41 MB / 427.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1_fmu --startTime=0 --stopTime=35 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat