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.TanksWithEmptyingPipe2.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.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",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.00148/0.00148, allocations: 179.4 kB / 8.364 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.96/1.96, 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.001087/0.001087, allocations: 84.91 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.479e-05/2.488e-05, allocations: 4 kB / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.333/0.3331, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9717/1.305, allocations: 326.1 MB / 0.6724 GB, free: 119.4 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002956/1.305, allocations: 90.62 kB / 0.6725 GB, free: 119.4 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.377/2.682, allocations: 323.2 MB / 0.9881 GB, free: 4.883 MB / 427.1 MB Notification: Performance of FrontEnd: time 2.174e-06/2.682, allocations: 0 / 0.9881 GB, free: 4.883 MB / 427.1 MB Notification: Performance of Transformations before backend: time 0.0002191/2.682, allocations: 51.69 kB / 0.9881 GB, free: 4.836 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.008151/2.691, allocations: 2.041 MB / 0.9901 GB, free: 2.762 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.142e-05/2.691, allocations: 8.031 kB / 0.9901 GB, free: 2.754 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001399/2.692, allocations: 205.7 kB / 0.9903 GB, free: 2.551 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004331/2.696, allocations: 1.188 MB / 0.9915 GB, free: 1.332 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001003/2.697, allocations: 44 kB / 0.9915 GB, free: 1.289 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004333/2.697, allocations: 72 kB / 0.9916 GB, free: 1.219 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.3105/3.007, allocations: 1.747 MB / 0.9933 GB, free: 45.73 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004635/3.012, allocations: 1.76 MB / 0.995 GB, free: 45.45 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.973e-05/3.012, allocations: 9.688 kB / 0.995 GB, free: 45.45 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002414/3.012, allocations: 4.469 kB / 0.995 GB, free: 45.45 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002198/3.013, allocations: 114.1 kB / 0.9951 GB, free: 45.45 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01766/3.03, allocations: 7.387 MB / 1.002 GB, free: 42.2 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002545/3.033, allocations: 1.115 MB / 1.003 GB, free: 42.17 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001655/3.035, allocations: 0.7087 MB / 1.004 GB, free: 42.16 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007536/3.042, allocations: 3.367 MB / 1.007 GB, free: 40.62 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.33e-05/3.042, allocations: 48.53 kB / 1.007 GB, free: 40.59 MB / 427.1 MB Notification: Performance of pre-optimization done (n=119): time 4.659e-06/3.042, allocations: 2.156 kB / 1.007 GB, free: 40.59 MB / 427.1 MB Notification: Performance of matching and sorting (n=134): time 0.02455/3.067, allocations: 4.682 MB / 1.012 GB, free: 39.98 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.27e-05/3.067, allocations: 168.5 kB / 1.012 GB, free: 39.79 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00188/3.069, allocations: 0.9467 MB / 1.013 GB, free: 39.64 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000468/3.069, allocations: 41.66 kB / 1.013 GB, free: 39.61 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000582/3.07, allocations: 0.6966 MB / 1.014 GB, free: 39.28 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007032/3.071, allocations: 452.6 kB / 1.014 GB, free: 39.05 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001659/3.071, allocations: 0 / 1.014 GB, free: 39.05 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/3.071, allocations: 376.2 kB / 1.015 GB, free: 38.74 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00173/3.073, allocations: 0.7155 MB / 1.015 GB, free: 38.74 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002023/3.075, allocations: 1.104 MB / 1.016 GB, free: 38.31 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01996/3.095, allocations: 2.525 MB / 1.019 GB, free: 38.29 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-05/3.095, allocations: 3.594 kB / 1.019 GB, free: 38.29 MB / 427.1 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.02476/3.12, allocations: 3.82 MB / 1.023 GB, free: 38.14 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000891/3.121, allocations: 4.275 MB / 1.027 GB, free: 33.7 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.79e-05/3.121, allocations: 10.62 kB / 1.027 GB, free: 33.7 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002269/3.123, allocations: 455.6 kB / 1.027 GB, free: 33.67 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002812/3.126, allocations: 349.5 kB / 1.028 GB, free: 33.67 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007139/3.133, allocations: 3.291 MB / 1.031 GB, free: 31.58 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0029/3.136, allocations: 105.3 kB / 1.031 GB, free: 31.57 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004541/3.136, allocations: 78.91 kB / 1.031 GB, free: 31.57 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/3.136, allocations: 4.188 kB / 1.031 GB, free: 31.57 MB / 427.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02322/3.16, allocations: 3.529 MB / 1.034 GB, free: 31.5 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.647e-05/3.16, allocations: 10.19 kB / 1.034 GB, free: 31.5 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0016/3.161, allocations: 316.9 kB / 1.035 GB, free: 31.46 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00279/3.164, allocations: 359.3 kB / 1.035 GB, free: 31.46 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005453/3.17, allocations: 2.927 MB / 1.038 GB, free: 29.39 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002322/3.172, allocations: 97.56 kB / 1.038 GB, free: 29.38 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004004/3.172, allocations: 80.31 kB / 1.038 GB, free: 29.38 MB / 427.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (200): * Single equations (assignments): 196 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.000659/3.173, allocations: 161 kB / 1.038 GB, free: 29.27 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01004/3.183, allocations: 2.027 MB / 1.04 GB, free: 29.1 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007257/3.184, allocations: 152 kB / 1.04 GB, free: 29.03 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009006/3.193, allocations: 2.339 MB / 1.043 GB, free: 28.87 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.73e-05/3.193, allocations: 18.84 kB / 1.043 GB, free: 28.87 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/3.193, allocations: 0 / 1.043 GB, free: 28.87 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.597e-05/3.193, allocations: 7.266 kB / 1.043 GB, free: 28.87 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01305/3.206, allocations: 3.9 MB / 1.046 GB, free: 28.47 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.296e-05/3.206, allocations: 0 / 1.046 GB, free: 28.47 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001963/3.208, allocations: 237.8 kB / 1.047 GB, free: 28.47 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002123/3.21, allocations: 445.2 kB / 1.047 GB, free: 28.44 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002395/3.211, allocations: 22.97 kB / 1.047 GB, free: 28.44 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006112/3.217, allocations: 3.049 MB / 1.05 GB, free: 42.35 MB / 443.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.047e-05/3.217, allocations: 8.609 kB / 1.05 GB, free: 42.35 MB / 443.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009484/3.226, allocations: 3.22 MB / 1.053 GB, free: 41.89 MB / 443.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007688/3.227, allocations: 255.3 kB / 1.054 GB, free: 41.71 MB / 443.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004604/3.228, allocations: 10.78 kB / 1.054 GB, free: 41.71 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001965/3.23, allocations: 79.53 kB / 1.054 GB, free: 41.71 MB / 443.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004339/3.23, allocations: 151.2 kB / 1.054 GB, free: 41.7 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002377/3.23, allocations: 60.81 kB / 1.054 GB, free: 41.7 MB / 443.1 MB Notification: Performance of sorting global known variables: time 0.001403/3.232, allocations: 0.7108 MB / 1.055 GB, free: 41.59 MB / 443.1 MB Notification: Performance of sort global known variables: time 4.61e-07/3.232, allocations: 0 / 1.055 GB, free: 41.59 MB / 443.1 MB Notification: Performance of remove unused functions: time 0.006338/3.238, allocations: 1.282 MB / 1.056 GB, free: 41.59 MB / 443.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.01533/3.253, allocations: 5.28 MB / 1.061 GB, free: 40.18 MB / 443.1 MB Notification: Performance of simCode: created initialization part: time 0.008756/3.262, allocations: 2.835 MB / 1.064 GB, free: 40.14 MB / 443.1 MB Notification: Performance of simCode: created event and clocks part: time 1.405e-05/3.262, allocations: 6.312 kB / 1.064 GB, free: 40.14 MB / 443.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003093/3.265, allocations: 1.026 MB / 1.065 GB, free: 40.13 MB / 443.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005666/3.271, allocations: 0.6175 MB / 1.065 GB, free: 40.12 MB / 443.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01044/3.282, allocations: 3.392 MB / 1.069 GB, free: 39.39 MB / 443.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001353/3.283, allocations: 1.431 MB / 1.07 GB, free: 38.66 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0017/3.285, allocations: 0.6553 MB / 1.071 GB, free: 38.66 MB / 443.1 MB Notification: Performance of SimCode: time 1.032e-06/3.285, allocations: 0 / 1.071 GB, free: 38.66 MB / 443.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.942/7.227, allocations: 65.92 MB / 1.135 GB, free: 17.92 MB / 443.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.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.TanksWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat