Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001274/0.001274, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.506/1.506, allocations: 225.4 MB / 240.1 MB, free: 15.04 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008929/0.0008929, allocations: 91.83 kB / 292.1 MB, free: 5.945 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.759e-05/3.771e-05, allocations: 4 kB / 350.6 MB, free: 2.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1179, allocations: 51.47 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.812/0.93, allocations: 325.2 MB / 0.7103 GB, free: 23.8 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002176/0.9302, allocations: 90.69 kB / 0.7104 GB, free: 23.75 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6662/1.596, allocations: 195.4 MB / 0.9012 GB, free: 34.03 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.575e-06/1.597, allocations: 0 / 0.9012 GB, free: 34.03 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001241/1.597, allocations: 31.92 kB / 0.9012 GB, free: 34 MB / 458.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.003858/1.601, allocations: 1.307 MB / 0.9025 GB, free: 32.65 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/1.601, allocations: 12.03 kB / 0.9025 GB, free: 32.64 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003199/1.601, allocations: 114 kB / 0.9026 GB, free: 32.52 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005851/1.602, allocations: 110.9 kB / 0.9027 GB, free: 32.41 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001744/1.603, allocations: 0.7374 MB / 0.9035 GB, free: 31.63 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.344e-05/1.603, allocations: 49.3 kB / 0.9035 GB, free: 31.58 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001625/1.604, allocations: 63.98 kB / 0.9036 GB, free: 31.52 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001649/1.605, allocations: 1.043 MB / 0.9046 GB, free: 30.42 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.802e-05/1.605, allocations: 0 / 0.9046 GB, free: 30.42 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001149/1.605, allocations: 28.5 kB / 0.9046 GB, free: 30.39 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.336e-05/1.605, allocations: 69.22 kB / 0.9047 GB, free: 30.32 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001616/1.607, allocations: 0.9967 MB / 0.9057 GB, free: 29.33 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005896/1.613, allocations: 4.397 MB / 0.9099 GB, free: 24.68 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008228/1.614, allocations: 0.5533 MB / 0.9105 GB, free: 24.12 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003976/1.614, allocations: 314 kB / 0.9108 GB, free: 23.81 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002414/1.617, allocations: 2.086 MB / 0.9128 GB, free: 21.51 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.527e-05/1.617, allocations: 38.89 kB / 0.9129 GB, free: 21.46 MB / 458.7 MB Notification: Performance of pre-optimization done (n=40): time 1.973e-06/1.617, allocations: 0 / 0.9129 GB, free: 21.46 MB / 458.7 MB Notification: Performance of matching and sorting (n=45): time 0.003007/1.62, allocations: 1.499 MB / 0.9143 GB, free: 19.9 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.416e-05/1.62, allocations: 158.2 kB / 0.9145 GB, free: 19.71 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009598/1.621, allocations: 0.8135 MB / 0.9153 GB, free: 18.87 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.195e-05/1.621, allocations: 37.7 kB / 0.9153 GB, free: 18.83 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002691/1.621, allocations: 475 kB / 0.9158 GB, free: 18.36 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001169/1.621, allocations: 165.7 kB / 0.9159 GB, free: 18.19 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.027e-05/1.621, allocations: 16 kB / 0.9159 GB, free: 18.18 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 7.482e-05/1.621, allocations: 341.9 kB / 0.9163 GB, free: 17.84 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004437/1.622, allocations: 305.9 kB / 0.9165 GB, free: 17.54 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005491/1.622, allocations: 0.5883 MB / 0.9171 GB, free: 16.82 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005802/1.623, allocations: 398 kB / 0.9175 GB, free: 16.43 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/1.623, allocations: 4 kB / 0.9175 GB, free: 16.43 MB / 458.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001551/1.625, allocations: 1.058 MB / 0.9185 GB, free: 15.36 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007096/1.625, allocations: 3.309 MB / 0.9218 GB, free: 11.79 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.912e-05/1.625, allocations: 19.89 kB / 0.9218 GB, free: 11.77 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001973/1.627, allocations: 321.3 kB / 0.9221 GB, free: 11.45 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000632/1.628, allocations: 175.7 kB / 0.9223 GB, free: 11.28 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009601/1.629, allocations: 1.347 MB / 0.9236 GB, free: 9.879 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008832/1.63, allocations: 67.75 kB / 0.9236 GB, free: 9.812 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.32e-05/1.63, allocations: 47.98 kB / 0.9237 GB, free: 9.766 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.274e-05/1.63, allocations: 5.781 kB / 0.9237 GB, free: 9.762 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001362/1.631, allocations: 0.9359 MB / 0.9246 GB, free: 8.816 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.615e-05/1.631, allocations: 12 kB / 0.9246 GB, free: 8.805 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001616/1.633, allocations: 290.1 kB / 0.9249 GB, free: 8.516 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005718/1.633, allocations: 175.7 kB / 0.9251 GB, free: 8.344 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008104/1.634, allocations: 1.308 MB / 0.9263 GB, free: 6.984 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007459/1.635, allocations: 59.94 kB / 0.9264 GB, free: 6.926 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.765e-05/1.635, allocations: 43.98 kB / 0.9264 GB, free: 6.883 MB / 458.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.0002066/1.635, allocations: 161 kB / 0.9266 GB, free: 6.723 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001466/1.636, allocations: 94.88 kB / 0.9267 GB, free: 6.629 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001446/1.637, allocations: 0.7699 MB / 0.9274 GB, free: 5.844 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/1.637, allocations: 4 kB / 0.9274 GB, free: 5.84 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/1.637, allocations: 7.938 kB / 0.9274 GB, free: 5.832 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.722e-06/1.637, allocations: 3.984 kB / 0.9275 GB, free: 5.828 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00237/1.639, allocations: 1.587 MB / 0.929 GB, free: 4.172 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.449e-06/1.639, allocations: 0 / 0.929 GB, free: 4.172 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003511/1.64, allocations: 79.89 kB / 0.9291 GB, free: 4.094 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001367/1.641, allocations: 281.5 kB / 0.9293 GB, free: 3.812 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.888e-05/1.641, allocations: 15.98 kB / 0.9294 GB, free: 3.797 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007665/1.642, allocations: 1.311 MB / 0.9306 GB, free: 2.434 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/1.642, allocations: 4.031 kB / 0.9306 GB, free: 2.43 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001406/1.643, allocations: 1.095 MB / 0.9317 GB, free: 1.297 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003894/1.644, allocations: 188 kB / 0.9319 GB, free: 1.094 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002193/1.644, allocations: 19.98 kB / 0.9319 GB, free: 1.074 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006719/1.645, allocations: 48.02 kB / 0.932 GB, free: 1.027 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001209/1.645, allocations: 48.38 kB / 0.932 GB, free: 0.9766 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.755e-05/1.645, allocations: 19.98 kB / 0.932 GB, free: 0.957 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0008467/1.646, allocations: 0.6367 MB / 0.9326 GB, free: 312 kB / 458.7 MB Notification: Performance of sort global known variables: time 2.31e-07/1.646, allocations: 0 / 0.9326 GB, free: 312 kB / 458.7 MB Notification: Performance of remove unused functions: time 0.2851/1.931, allocations: 0.8354 MB / 0.9335 GB, free: 75.27 MB / 458.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.004408/1.935, allocations: 2.493 MB / 0.9359 GB, free: 74.42 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002446/1.938, allocations: 1.239 MB / 0.9371 GB, free: 74.41 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/1.938, allocations: 3.312 kB / 0.9371 GB, free: 74.41 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007836/1.939, allocations: 350.1 kB / 0.9374 GB, free: 74.41 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001981/1.941, allocations: 382.8 kB / 0.9378 GB, free: 74.41 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005034/1.946, allocations: 1.705 MB / 0.9395 GB, free: 74.06 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007503/1.946, allocations: 1.049 MB / 0.9405 GB, free: 73.36 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001853/1.948, allocations: 427.8 kB / 0.9409 GB, free: 73.34 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005154/1.949, allocations: 318.7 kB / 0.9412 GB, free: 73.34 MB / 458.7 MB Notification: Performance of SimCode: time 2.184e-06/1.949, allocations: 0 / 0.9412 GB, free: 73.34 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07811/2.027, allocations: 35.19 MB / 0.9756 GB, free: 72.25 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001906/2.027, allocations: 235.4 kB / 0.9758 GB, free: 71.94 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.21/5.237, allocations: 3.469 kB / 0.9758 GB, free: 71.94 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2.fmu > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat