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.001649/0.001649, allocations: 197.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.634/1.634, allocations: 225.6 MB / 234.8 MB, free: 3.207 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001066/0.001066, allocations: 94.72 kB / 286.7 MB, free: 5.312 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.577e-05/2.58e-05, allocations: 4 kB / 343.8 MB, free: 8.125 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.131, allocations: 51.47 MB / 395.3 MB, free: 4.617 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.039/1.17, allocations: 324.5 MB / 0.7029 GB, free: 32.4 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002633/1.17, allocations: 87.58 kB / 0.703 GB, free: 32.36 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7834/1.954, allocations: 194.2 MB / 0.8926 GB, free: 16.88 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.094e-06/1.954, allocations: 0 / 0.8926 GB, free: 16.88 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002094/1.954, allocations: 31.94 kB / 0.8927 GB, free: 16.85 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.004377/1.959, allocations: 1.306 MB / 0.8939 GB, free: 15.51 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/1.959, allocations: 8.031 kB / 0.894 GB, free: 15.5 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008077/1.959, allocations: 110.5 kB / 0.8941 GB, free: 15.39 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001895/1.961, allocations: 0.7395 MB / 0.8948 GB, free: 14.63 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.645e-05/1.961, allocations: 20 kB / 0.8948 GB, free: 14.61 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000196/1.962, allocations: 36 kB / 0.8948 GB, free: 14.57 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00151/1.963, allocations: 0.8928 MB / 0.8957 GB, free: 13.68 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001726/1.965, allocations: 0.9554 MB / 0.8966 GB, free: 12.67 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.706e-05/1.965, allocations: 7.859 kB / 0.8966 GB, free: 12.66 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001137/1.965, allocations: 4 kB / 0.8966 GB, free: 12.66 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.882e-05/1.965, allocations: 73.19 kB / 0.8967 GB, free: 12.59 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006547/1.972, allocations: 4.236 MB / 0.9009 GB, free: 8.148 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007177/1.972, allocations: 0.5374 MB / 0.9014 GB, free: 7.605 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004696/1.973, allocations: 302 kB / 0.9017 GB, free: 7.305 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002518/1.975, allocations: 2.031 MB / 0.9037 GB, free: 5.07 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.631e-05/1.975, allocations: 42.89 kB / 0.9037 GB, free: 5.02 MB / 442.7 MB Notification: Performance of pre-optimization done (n=40): time 2.394e-06/1.975, allocations: 0 / 0.9037 GB, free: 5.02 MB / 442.7 MB Notification: Performance of matching and sorting (n=45): time 0.005386/1.981, allocations: 1.745 MB / 0.9054 GB, free: 3.215 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.881e-05/1.981, allocations: 158.2 kB / 0.9055 GB, free: 3.023 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009199/1.982, allocations: 0.6248 MB / 0.9062 GB, free: 2.395 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.614e-05/1.982, allocations: 29.7 kB / 0.9062 GB, free: 2.359 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003271/1.982, allocations: 492.9 kB / 0.9067 GB, free: 1.871 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001709/1.983, allocations: 161.8 kB / 0.9068 GB, free: 1.711 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.439e-05/1.983, allocations: 0 / 0.9068 GB, free: 1.711 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001089/1.983, allocations: 390.8 kB / 0.9072 GB, free: 1.32 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004053/1.983, allocations: 294.5 kB / 0.9075 GB, free: 1.031 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005078/1.984, allocations: 0.5732 MB / 0.908 GB, free: 340 kB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2993/2.283, allocations: 0.8179 MB / 0.9088 GB, free: 63.85 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.535e-05/2.283, allocations: 4.438 kB / 0.9088 GB, free: 63.85 MB / 442.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.004249/2.287, allocations: 1.447 MB / 0.9102 GB, free: 63.79 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005751/2.288, allocations: 3.304 MB / 0.9135 GB, free: 60.36 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.21e-05/2.288, allocations: 15.55 kB / 0.9135 GB, free: 60.36 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006228/2.289, allocations: 167.3 kB / 0.9136 GB, free: 60.34 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006126/2.289, allocations: 178.6 kB / 0.9138 GB, free: 60.34 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00171/2.291, allocations: 1.498 MB / 0.9153 GB, free: 59.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008247/2.292, allocations: 38.64 kB / 0.9153 GB, free: 59.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.825e-05/2.292, allocations: 44.95 kB / 0.9154 GB, free: 59.3 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.287e-06/2.292, allocations: 9.812 kB / 0.9154 GB, free: 59.3 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003449/2.295, allocations: 1.259 MB / 0.9166 GB, free: 59.28 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/2.295, allocations: 9.688 kB / 0.9166 GB, free: 59.28 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005123/2.296, allocations: 161.5 kB / 0.9168 GB, free: 59.26 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005691/2.296, allocations: 175.7 kB / 0.9169 GB, free: 59.26 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001375/2.298, allocations: 1.408 MB / 0.9183 GB, free: 58.23 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007961/2.299, allocations: 36.94 kB / 0.9183 GB, free: 58.23 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.822e-05/2.299, allocations: 42.45 kB / 0.9184 GB, free: 58.23 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.0002662/2.299, allocations: 142 kB / 0.9185 GB, free: 58.12 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002051/2.301, allocations: 0.7078 MB / 0.9192 GB, free: 58.07 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001198/2.301, allocations: 83.67 kB / 0.9193 GB, free: 58.06 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002018/2.303, allocations: 0.7894 MB / 0.9201 GB, free: 57.97 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/2.303, allocations: 8.312 kB / 0.9201 GB, free: 57.97 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.199e-06/2.303, allocations: 0 / 0.9201 GB, free: 57.97 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/2.303, allocations: 5.031 kB / 0.9201 GB, free: 57.97 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002848/2.306, allocations: 1.541 MB / 0.9216 GB, free: 57.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/2.306, allocations: 0 / 0.9216 GB, free: 57.66 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003897/2.307, allocations: 78.12 kB / 0.9216 GB, free: 57.66 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006047/2.307, allocations: 157.1 kB / 0.9218 GB, free: 57.64 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.395e-05/2.307, allocations: 1.688 kB / 0.9218 GB, free: 57.64 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001188/2.308, allocations: 1.39 MB / 0.9232 GB, free: 56.6 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/2.308, allocations: 2.969 kB / 0.9232 GB, free: 56.6 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001769/2.31, allocations: 1.109 MB / 0.9242 GB, free: 56.34 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002403/2.31, allocations: 177.6 kB / 0.9244 GB, free: 56.21 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001217/2.311, allocations: 8.328 kB / 0.9244 GB, free: 56.21 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005674/2.311, allocations: 30.5 kB / 0.9244 GB, free: 56.21 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001586/2.311, allocations: 48.62 kB / 0.9245 GB, free: 56.21 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.869e-05/2.311, allocations: 25.66 kB / 0.9245 GB, free: 56.2 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005453/2.312, allocations: 492.5 kB / 0.925 GB, free: 56.11 MB / 442.7 MB Notification: Performance of sort global known variables: time 2e-07/2.312, allocations: 2.656 kB / 0.925 GB, free: 56.11 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002769/2.315, allocations: 0.793 MB / 0.9258 GB, free: 56.11 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.004275/2.319, allocations: 2.522 MB / 0.9282 GB, free: 55.19 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002047/2.321, allocations: 1.144 MB / 0.9293 GB, free: 55.18 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/2.321, allocations: 0 / 0.9293 GB, free: 55.18 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004659/2.322, allocations: 294.9 kB / 0.9296 GB, free: 55.17 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001605/2.323, allocations: 296.2 kB / 0.9299 GB, free: 55.16 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003366/2.327, allocations: 1.614 MB / 0.9315 GB, free: 54.82 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005827/2.327, allocations: 1.057 MB / 0.9325 GB, free: 54.11 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001186/2.328, allocations: 365.2 kB / 0.9329 GB, free: 54.1 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000343/2.329, allocations: 312.8 kB / 0.9332 GB, free: 54.09 MB / 442.7 MB Notification: Performance of SimCode: time 7.11e-07/2.329, allocations: 3.875 kB / 0.9332 GB, free: 54.09 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07697/2.406, allocations: 29.71 MB / 0.9622 GB, free: 53.02 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001682/2.406, allocations: 188.3 kB / 0.9624 GB, free: 52.82 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.106/5.512, allocations: 0 / 0.9624 GB, free: 52.82 MB / 442.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