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.001043/0.001043, allocations: 199 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.269/1.269, allocations: 227.2 MB / 245 MB, free: 5.895 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009606/0.0009607, allocations: 106 kB / 297.3 MB, free: 5.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002707/0.0002708, allocations: 8 kB / 358 MB, free: 9.203 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.23/0.2302, allocations: 51.49 MB / 409.5 MB, free: 26.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6327/0.863, allocations: 325.3 MB / 0.7175 GB, free: 143.7 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002027/0.8632, allocations: 94.48 kB / 0.7176 GB, free: 143.6 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5753/1.439, allocations: 196.1 MB / 0.9091 GB, free: 99.76 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.355e-06/1.439, allocations: 3.172 kB / 0.9091 GB, free: 99.76 MB / 458.7 MB Notification: Performance of Transformations before backend: time 8.926e-05/1.439, allocations: 26.97 kB / 0.9091 GB, free: 99.75 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.003715/1.442, allocations: 1.416 MB / 0.9105 GB, free: 98.99 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/1.442, allocations: 15.06 kB / 0.9105 GB, free: 98.99 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004215/1.443, allocations: 114.2 kB / 0.9106 GB, free: 98.95 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005448/1.443, allocations: 110.5 kB / 0.9108 GB, free: 98.9 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001638/1.445, allocations: 0.7383 MB / 0.9115 GB, free: 98.61 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.339e-05/1.445, allocations: 51.94 kB / 0.9115 GB, free: 98.61 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000138/1.445, allocations: 62.88 kB / 0.9116 GB, free: 98.61 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001494/1.447, allocations: 1.05 MB / 0.9126 GB, free: 98.42 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.076e-05/1.447, allocations: 1.594 kB / 0.9126 GB, free: 98.42 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.45e-05/1.447, allocations: 30.45 kB / 0.9126 GB, free: 98.42 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-05/1.447, allocations: 66.91 kB / 0.9127 GB, free: 98.42 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001437/1.448, allocations: 1.021 MB / 0.9137 GB, free: 98.41 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005882/1.454, allocations: 4.4 MB / 0.918 GB, free: 96.23 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008775/1.455, allocations: 0.571 MB / 0.9186 GB, free: 96.12 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002427/1.458, allocations: 2.001 MB / 0.9205 GB, free: 94.55 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.555e-05/1.458, allocations: 42.86 kB / 0.9205 GB, free: 94.5 MB / 458.7 MB Notification: Performance of pre-optimization done (n=40): time 1.833e-06/1.458, allocations: 0 / 0.9205 GB, free: 94.5 MB / 458.7 MB Notification: Performance of matching and sorting (n=45): time 0.003764/1.461, allocations: 1.939 MB / 0.9224 GB, free: 93.44 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.498e-05/1.462, allocations: 158.2 kB / 0.9226 GB, free: 93.25 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008641/1.462, allocations: 0.824 MB / 0.9234 GB, free: 92.89 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.902e-05/1.462, allocations: 37.64 kB / 0.9234 GB, free: 92.85 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000276/1.463, allocations: 480.7 kB / 0.9239 GB, free: 92.48 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001124/1.463, allocations: 164.3 kB / 0.924 GB, free: 92.36 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.09e-05/1.463, allocations: 19.88 kB / 0.9241 GB, free: 92.34 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 6.629e-05/1.463, allocations: 337.2 kB / 0.9244 GB, free: 92.02 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004232/1.463, allocations: 316.5 kB / 0.9247 GB, free: 91.92 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005382/1.464, allocations: 0.5916 MB / 0.9253 GB, free: 91.45 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005271/1.465, allocations: 390.1 kB / 0.9256 GB, free: 91.3 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.96e-06/1.465, allocations: 7.281 kB / 0.9256 GB, free: 91.3 MB / 458.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001444/1.466, allocations: 1.078 MB / 0.9267 GB, free: 90.9 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005957/1.467, allocations: 3.312 MB / 0.9299 GB, free: 87.39 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.692e-05/1.467, allocations: 10.19 kB / 0.9299 GB, free: 87.39 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001888/1.468, allocations: 323.4 kB / 0.9303 GB, free: 87.34 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006007/1.469, allocations: 177.1 kB / 0.9304 GB, free: 87.32 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008571/1.47, allocations: 1.346 MB / 0.9317 GB, free: 86.16 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008559/1.471, allocations: 61.44 kB / 0.9318 GB, free: 86.14 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.368e-05/1.471, allocations: 46.38 kB / 0.9318 GB, free: 86.13 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.558e-06/1.471, allocations: 7.125 kB / 0.9318 GB, free: 86.13 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001324/1.472, allocations: 0.95 MB / 0.9328 GB, free: 85.75 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.889e-05/1.472, allocations: 7.594 kB / 0.9328 GB, free: 85.75 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001647/1.474, allocations: 298.1 kB / 0.9331 GB, free: 85.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005785/1.475, allocations: 189 kB / 0.9332 GB, free: 85.68 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007259/1.475, allocations: 1.308 MB / 0.9345 GB, free: 84.53 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007621/1.476, allocations: 58.03 kB / 0.9346 GB, free: 84.51 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.301e-05/1.476, allocations: 46.16 kB / 0.9346 GB, free: 84.5 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 () * Number of clocked 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.0004847/1.477, allocations: 368.8 kB / 0.935 GB, free: 84.22 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000154/1.477, allocations: 92.66 kB / 0.9351 GB, free: 84.18 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001461/1.478, allocations: 0.7829 MB / 0.9358 GB, free: 83.84 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/1.478, allocations: 7.594 kB / 0.9358 GB, free: 83.84 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/1.478, allocations: 0 / 0.9358 GB, free: 83.84 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/1.478, allocations: 7.75 kB / 0.9358 GB, free: 83.83 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002562/1.481, allocations: 1.594 MB / 0.9374 GB, free: 83.05 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/1.481, allocations: 0 / 0.9374 GB, free: 83.05 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000377/1.481, allocations: 80.05 kB / 0.9375 GB, free: 83.04 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001384/1.483, allocations: 282.2 kB / 0.9377 GB, free: 82.99 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.034e-05/1.483, allocations: 15.78 kB / 0.9378 GB, free: 82.98 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000857/1.484, allocations: 1.308 MB / 0.939 GB, free: 81.83 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/1.484, allocations: 6.672 kB / 0.939 GB, free: 81.83 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001546/1.485, allocations: 1.102 MB / 0.9401 GB, free: 81.26 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003859/1.486, allocations: 190 kB / 0.9403 GB, free: 81.1 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001922/1.486, allocations: 15.81 kB / 0.9403 GB, free: 81.09 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006548/1.486, allocations: 50.06 kB / 0.9404 GB, free: 81.07 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.518e-05/1.487, allocations: 48.84 kB / 0.9404 GB, free: 81.07 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.442e-05/1.487, allocations: 26.88 kB / 0.9404 GB, free: 81.06 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0008004/1.487, allocations: 0.6422 MB / 0.9411 GB, free: 80.78 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.61e-07/1.487, allocations: 2.906 kB / 0.9411 GB, free: 80.78 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002398/1.49, allocations: 0.8345 MB / 0.9419 GB, free: 80.57 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]) * Number of clocked states: 0 () * 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.003442/1.493, allocations: 2.521 MB / 0.9443 GB, free: 79.15 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002076/1.495, allocations: 1.227 MB / 0.9455 GB, free: 78.76 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/1.495, allocations: 3.094 kB / 0.9455 GB, free: 78.76 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007317/1.496, allocations: 356.1 kB / 0.9459 GB, free: 78.66 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001578/1.498, allocations: 376.1 kB / 0.9462 GB, free: 78.58 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004701/1.502, allocations: 8.597 MB / 0.9546 GB, free: 71.12 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004295/1.503, allocations: 1.055 MB / 0.9557 GB, free: 70.38 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001076/1.504, allocations: 360.4 kB / 0.956 GB, free: 70.18 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003912/1.504, allocations: 321.9 kB / 0.9563 GB, free: 69.89 MB / 458.7 MB Notification: Performance of SimCode: time 4.01e-07/1.504, allocations: 0 / 0.9563 GB, free: 69.89 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05035/1.555, allocations: 33.52 MB / 0.9891 GB, free: 40 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001601/1.555, allocations: 266.8 kB / 0.9893 GB, free: 39.64 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.894/4.449, allocations: 0 / 0.9893 GB, free: 39.64 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