Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001188/0.001188, allocations: 176.4 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.517/1.517, allocations: 221.5 MB / 230.3 MB, free: 7.555 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008806/0.0008805, allocations: 95.52 kB / 281.2 MB, free: 5.293 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.163e-05/2.167e-05, allocations: 0 / 337.1 MB, free: 9.895 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1266, allocations: 50.41 MB / 387.6 MB, free: 7.445 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8795/1.006, allocations: 323.7 MB / 0.6946 GB, free: 4.879 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003829/1.007, allocations: 87.02 kB / 0.6947 GB, free: 4.836 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6974/1.704, allocations: 194.7 MB / 0.8849 GB, free: 9.266 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.503e-06/1.704, allocations: 4 kB / 0.8849 GB, free: 9.262 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.249e-05/1.704, allocations: 24 kB / 0.8849 GB, free: 9.238 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.003309/1.707, allocations: 1.305 MB / 0.8862 GB, free: 7.887 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/1.708, allocations: 8.031 kB / 0.8862 GB, free: 7.879 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003909/1.708, allocations: 110.9 kB / 0.8863 GB, free: 7.77 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001352/1.709, allocations: 0.7297 MB / 0.887 GB, free: 6.992 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.448e-05/1.709, allocations: 24 kB / 0.887 GB, free: 6.969 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.944e-05/1.709, allocations: 40 kB / 0.8871 GB, free: 6.93 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001163/1.711, allocations: 0.8889 MB / 0.8879 GB, free: 6.043 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001301/1.712, allocations: 0.9576 MB / 0.8889 GB, free: 5.027 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.084e-05/1.712, allocations: 3.984 kB / 0.8889 GB, free: 5.023 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.825e-05/1.712, allocations: 4 kB / 0.8889 GB, free: 5.02 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.268e-05/1.712, allocations: 65.22 kB / 0.8889 GB, free: 4.957 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005165/1.717, allocations: 4.244 MB / 0.8931 GB, free: 484 kB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2746/1.992, allocations: 0.5315 MB / 0.8936 GB, free: 79.83 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000746/1.993, allocations: 303.3 kB / 0.8939 GB, free: 79.82 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003401/1.996, allocations: 2.023 MB / 0.8959 GB, free: 78.61 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.493e-05/1.996, allocations: 38.86 kB / 0.8959 GB, free: 78.57 MB / 442.7 MB Notification: Performance of pre-optimization done (n=40): time 2.214e-06/1.996, allocations: 2.562 kB / 0.8959 GB, free: 78.57 MB / 442.7 MB Notification: Performance of matching and sorting (n=45): time 0.006101/2.002, allocations: 1.74 MB / 0.8976 GB, free: 78.19 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.132e-05/2.002, allocations: 166.5 kB / 0.8978 GB, free: 78 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001042/2.003, allocations: 0.6286 MB / 0.8984 GB, free: 77.88 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.95e-05/2.003, allocations: 31.14 kB / 0.8984 GB, free: 77.85 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003725/2.004, allocations: 487.4 kB / 0.8989 GB, free: 77.64 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001536/2.004, allocations: 157.9 kB / 0.899 GB, free: 77.56 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.068e-05/2.004, allocations: 0.75 kB / 0.899 GB, free: 77.56 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001507/2.004, allocations: 389.9 kB / 0.8994 GB, free: 77.25 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005508/2.005, allocations: 299.2 kB / 0.8997 GB, free: 77.25 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007982/2.006, allocations: 0.5701 MB / 0.9002 GB, free: 76.91 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002592/2.008, allocations: 0.7244 MB / 0.901 GB, free: 76.91 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.574e-06/2.008, allocations: 1.875 kB / 0.901 GB, free: 76.91 MB / 442.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.003364/2.012, allocations: 1.331 MB / 0.9023 GB, free: 76.82 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008599/2.012, allocations: 3.313 MB / 0.9055 GB, free: 73.38 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.963e-05/2.012, allocations: 12 kB / 0.9055 GB, free: 73.38 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005833/2.013, allocations: 166.5 kB / 0.9057 GB, free: 73.36 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006395/2.014, allocations: 178.5 kB / 0.9058 GB, free: 73.36 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001888/2.016, allocations: 1.497 MB / 0.9073 GB, free: 72.31 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008769/2.016, allocations: 45.61 kB / 0.9073 GB, free: 72.31 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.148e-05/2.017, allocations: 42 kB / 0.9074 GB, free: 72.31 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.014e-05/2.017, allocations: 5.969 kB / 0.9074 GB, free: 72.31 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003222/2.02, allocations: 1.156 MB / 0.9085 GB, free: 72.28 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.505e-05/2.02, allocations: 8.656 kB / 0.9085 GB, free: 72.28 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005604/2.02, allocations: 160 kB / 0.9087 GB, free: 72.27 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000627/2.021, allocations: 181 kB / 0.9088 GB, free: 72.27 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001608/2.023, allocations: 1.411 MB / 0.9102 GB, free: 71.22 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007544/2.023, allocations: 38.27 kB / 0.9103 GB, free: 71.22 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.756e-05/2.024, allocations: 44.34 kB / 0.9103 GB, free: 71.22 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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 (102): * Single equations (assignments): 100 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002926/2.024, allocations: 139 kB / 0.9104 GB, free: 71.12 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002369/2.026, allocations: 0.7108 MB / 0.9111 GB, free: 71.02 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001414/2.026, allocations: 79.48 kB / 0.9112 GB, free: 70.98 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002384/2.029, allocations: 0.7936 MB / 0.912 GB, free: 70.89 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.081e-05/2.029, allocations: 9.75 kB / 0.912 GB, free: 70.89 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/2.029, allocations: 1.062 kB / 0.912 GB, free: 70.89 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.117e-05/2.029, allocations: 2.953 kB / 0.912 GB, free: 70.89 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003519/2.032, allocations: 1.539 MB / 0.9135 GB, free: 70.57 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/2.032, allocations: 3 kB / 0.9135 GB, free: 70.57 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000391/2.033, allocations: 79.28 kB / 0.9136 GB, free: 70.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006459/2.033, allocations: 153.1 kB / 0.9137 GB, free: 70.56 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.199e-05/2.033, allocations: 8.453 kB / 0.9137 GB, free: 70.56 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001408/2.035, allocations: 1.394 MB / 0.9151 GB, free: 69.52 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/2.035, allocations: 0.5625 kB / 0.9151 GB, free: 69.52 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002291/2.037, allocations: 1.112 MB / 0.9162 GB, free: 69.26 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003301/2.038, allocations: 175.2 kB / 0.9163 GB, free: 69.12 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001397/2.038, allocations: 5.953 kB / 0.9163 GB, free: 69.12 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007221/2.038, allocations: 40.09 kB / 0.9164 GB, free: 69.12 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001487/2.039, allocations: 48.2 kB / 0.9164 GB, free: 69.12 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.677e-05/2.039, allocations: 30.83 kB / 0.9165 GB, free: 69.12 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007325/2.039, allocations: 489.9 kB / 0.9169 GB, free: 69.03 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.4e-07/2.039, allocations: 0 / 0.9169 GB, free: 69.03 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003209/2.043, allocations: 0.7835 MB / 0.9177 GB, free: 69.03 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.004601/2.047, allocations: 2.499 MB / 0.9201 GB, free: 68.1 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002163/2.05, allocations: 1.146 MB / 0.9213 GB, free: 68.09 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.229e-06/2.05, allocations: 3.219 kB / 0.9213 GB, free: 68.09 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004499/2.05, allocations: 293.3 kB / 0.9215 GB, free: 68.09 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0016/2.052, allocations: 298.4 kB / 0.9218 GB, free: 68.08 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003567/2.055, allocations: 1.606 MB / 0.9234 GB, free: 67.73 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005626/2.056, allocations: 1.059 MB / 0.9244 GB, free: 67.02 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001132/2.057, allocations: 364.2 kB / 0.9248 GB, free: 67.01 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003512/2.057, allocations: 316 kB / 0.9251 GB, free: 67 MB / 442.7 MB Notification: Performance of SimCode: time 1.103e-06/2.057, allocations: 0.7656 kB / 0.9251 GB, free: 67 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05805/2.115, allocations: 29.74 MB / 0.9541 GB, free: 65.97 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002244/2.116, allocations: 183.4 kB / 0.9543 GB, free: 65.79 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.056/5.171, allocations: 3.969 kB / 0.9543 GB, free: 65.79 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat