Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001064/0.001064, 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.289/1.289, allocations: 227.2 MB / 245 MB, free: 7.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009384/0.0009385, allocations: 101.6 kB / 297.3 MB, free: 6.188 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002228/0.0002229, allocations: 8 kB / 358 MB, free: 9.434 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2112/0.2114, allocations: 51.49 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6578/0.8693, allocations: 325.6 MB / 0.7179 GB, free: 143.3 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002619/0.8696, allocations: 101.2 kB / 0.718 GB, free: 143.2 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7764/1.646, allocations: 287.4 MB / 0.9986 GB, free: 33.15 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.966e-06/1.646, allocations: 0 / 0.9986 GB, free: 33.15 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001738/1.646, allocations: 47.92 kB / 0.9987 GB, free: 33.11 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.006083/1.652, allocations: 1.968 MB / 1.001 GB, free: 31.08 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.036e-05/1.652, allocations: 8.031 kB / 1.001 GB, free: 31.07 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008382/1.653, allocations: 164.3 kB / 1.001 GB, free: 30.91 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001081/1.654, allocations: 170.2 kB / 1.001 GB, free: 30.74 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003074/1.657, allocations: 1.038 MB / 1.002 GB, free: 29.66 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000113/1.658, allocations: 85.91 kB / 1.002 GB, free: 29.57 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000444/1.658, allocations: 95.92 kB / 1.002 GB, free: 29.48 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003191/1.661, allocations: 1.625 MB / 1.004 GB, free: 27.77 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.882e-05/1.661, allocations: 4 kB / 1.004 GB, free: 27.76 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002327/1.662, allocations: 43.97 kB / 1.004 GB, free: 27.72 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001491/1.662, allocations: 101.9 kB / 1.004 GB, free: 27.62 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002605/1.664, allocations: 1.624 MB / 1.005 GB, free: 25.99 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009912/1.674, allocations: 6.526 MB / 1.012 GB, free: 19.11 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001304/1.676, allocations: 0.9184 MB / 1.013 GB, free: 18.18 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003728/1.679, allocations: 2.824 MB / 1.015 GB, free: 15.1 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.259e-05/1.679, allocations: 55.16 kB / 1.016 GB, free: 15.04 MB / 458.7 MB Notification: Performance of pre-optimization done (n=80): time 2.535e-06/1.679, allocations: 4 kB / 1.016 GB, free: 15.03 MB / 458.7 MB Notification: Performance of matching and sorting (n=90): time 0.007715/1.687, allocations: 3.709 MB / 1.019 GB, free: 11.21 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.836e-05/1.687, allocations: 196.9 kB / 1.019 GB, free: 10.98 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00172/1.689, allocations: 1.147 MB / 1.02 GB, free: 9.816 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001232/1.689, allocations: 53.7 kB / 1.02 GB, free: 9.758 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004683/1.69, allocations: 0.6472 MB / 1.021 GB, free: 9.102 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002328/1.69, allocations: 319.6 kB / 1.021 GB, free: 8.785 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.012e-05/1.69, allocations: 24 kB / 1.021 GB, free: 8.762 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 8.679e-05/1.69, allocations: 366.8 kB / 1.022 GB, free: 8.398 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008155/1.691, allocations: 0.5583 MB / 1.022 GB, free: 7.844 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009263/1.692, allocations: 0.9551 MB / 1.023 GB, free: 6.719 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008881/1.693, allocations: 0.6666 MB / 1.024 GB, free: 6.051 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.364e-06/1.693, allocations: 4 kB / 1.024 GB, free: 6.047 MB / 458.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.002663/1.695, allocations: 1.842 MB / 1.026 GB, free: 4.191 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.2265/1.922, allocations: 4.375 MB / 1.03 GB, free: 63.93 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-05/1.922, allocations: 10.91 kB / 1.03 GB, free: 63.93 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004777/1.927, allocations: 0.6649 MB / 1.031 GB, free: 63.91 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001587/1.928, allocations: 280.3 kB / 1.031 GB, free: 63.91 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001898/1.93, allocations: 2.167 MB / 1.033 GB, free: 62.36 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001779/1.932, allocations: 105.1 kB / 1.033 GB, free: 62.36 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003262/1.932, allocations: 67.69 kB / 1.033 GB, free: 62.36 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/1.932, allocations: 3.375 kB / 1.033 GB, free: 62.36 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003068/1.936, allocations: 1.624 MB / 1.035 GB, free: 62.33 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.419e-05/1.936, allocations: 11.5 kB / 1.035 GB, free: 62.33 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003048/1.939, allocations: 0.5055 MB / 1.035 GB, free: 62.31 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001092/1.94, allocations: 285.3 kB / 1.036 GB, free: 62.31 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001507/1.941, allocations: 2.014 MB / 1.038 GB, free: 60.76 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001467/1.943, allocations: 95.55 kB / 1.038 GB, free: 60.76 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001996/1.943, allocations: 62.7 kB / 1.038 GB, free: 60.76 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],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 (163): * Single equations (assignments): 160 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.000931/1.944, allocations: 472.7 kB / 1.038 GB, free: 60.57 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000397/1.944, allocations: 140.8 kB / 1.038 GB, free: 60.57 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003298/1.948, allocations: 1.522 MB / 1.04 GB, free: 60.48 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.531e-05/1.948, allocations: 14.72 kB / 1.04 GB, free: 60.48 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.13e-05/1.948, allocations: 0 / 1.04 GB, free: 60.48 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.368e-05/1.948, allocations: 8.031 kB / 1.04 GB, free: 60.48 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00506/1.953, allocations: 2.818 MB / 1.043 GB, free: 60.09 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/1.953, allocations: 8.797 kB / 1.043 GB, free: 60.09 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007484/1.954, allocations: 156.5 kB / 1.043 GB, free: 60.09 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002808/1.956, allocations: 0.6033 MB / 1.043 GB, free: 60.06 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001002/1.956, allocations: 28.83 kB / 1.043 GB, free: 60.06 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00155/1.958, allocations: 2.124 MB / 1.045 GB, free: 58.51 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/1.958, allocations: 5.375 kB / 1.045 GB, free: 58.51 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002899/1.961, allocations: 2.141 MB / 1.047 GB, free: 58.2 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005361/1.961, allocations: 249.4 kB / 1.048 GB, free: 58.03 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003504/1.962, allocations: 29.86 kB / 1.048 GB, free: 58.03 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/1.963, allocations: 71.67 kB / 1.048 GB, free: 58.03 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002011/1.963, allocations: 100.2 kB / 1.048 GB, free: 58.03 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001032/1.963, allocations: 43.95 kB / 1.048 GB, free: 58.03 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001281/1.965, allocations: 0.8972 MB / 1.049 GB, free: 57.92 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.1e-07/1.965, allocations: 0 / 1.049 GB, free: 57.92 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004156/1.969, allocations: 1.226 MB / 1.05 GB, free: 57.92 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.006065/1.975, allocations: 3.986 MB / 1.054 GB, free: 56.74 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003858/1.979, allocations: 2.19 MB / 1.056 GB, free: 56.71 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/1.979, allocations: 0 / 1.056 GB, free: 56.71 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001273/1.98, allocations: 0.703 MB / 1.057 GB, free: 56.7 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002743/1.983, allocations: 0.5821 MB / 1.057 GB, free: 56.69 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008301/1.991, allocations: 11.97 MB / 1.069 GB, free: 47.27 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007725/1.992, allocations: 1.283 MB / 1.07 GB, free: 46.56 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002203/1.994, allocations: 0.5634 MB / 1.071 GB, free: 46.54 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008259/1.995, allocations: 0.5255 MB / 1.071 GB, free: 46.54 MB / 458.7 MB Notification: Performance of SimCode: time 2.004e-06/1.995, allocations: 0 / 1.071 GB, free: 46.54 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07963/2.075, allocations: 51.94 MB / 1.122 GB, free: 44.09 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001775/2.075, allocations: 266.6 kB / 1.122 GB, free: 43.73 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.59/5.665, allocations: 3.062 kB / 1.122 GB, free: 43.73 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1.fmu > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat