Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.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.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001253/0.001253, allocations: 193.6 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.532/1.532, allocations: 225.6 MB / 234.8 MB, free: 3.281 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00111/0.00111, allocations: 92.2 kB / 286.7 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.25e-05/2.27e-05, allocations: 0 / 343.8 MB, free: 8.195 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1179, allocations: 51.48 MB / 395.3 MB, free: 4.68 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8123/0.9302, allocations: 327.4 MB / 0.7058 GB, free: 29.57 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002639/0.9305, allocations: 96.3 kB / 0.7059 GB, free: 29.52 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.14/2.071, allocations: 328.4 MB / 1.027 GB, free: 43.11 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.943e-06/2.071, allocations: 0 / 1.027 GB, free: 43.11 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001376/2.071, allocations: 47.8 kB / 1.027 GB, free: 43.11 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.005884/2.077, allocations: 2.054 MB / 1.029 GB, free: 41.68 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/2.077, allocations: 6.75 kB / 1.029 GB, free: 41.68 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009378/2.078, allocations: 199 kB / 1.029 GB, free: 41.58 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002478/2.08, allocations: 1.194 MB / 1.03 GB, free: 40.74 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.988e-05/2.081, allocations: 46.91 kB / 1.03 GB, free: 40.73 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001784/2.081, allocations: 69.31 kB / 1.03 GB, free: 40.73 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002594/2.083, allocations: 1.75 MB / 1.032 GB, free: 39.44 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002617/2.086, allocations: 1.758 MB / 1.033 GB, free: 37.59 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.694e-05/2.086, allocations: 4 kB / 1.033 GB, free: 37.59 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001487/2.086, allocations: 6.75 kB / 1.033 GB, free: 37.58 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001467/2.086, allocations: 114.3 kB / 1.034 GB, free: 37.47 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01151/2.098, allocations: 7.397 MB / 1.041 GB, free: 29.76 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001442/2.099, allocations: 1.112 MB / 1.042 GB, free: 28.64 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007842/2.1, allocations: 0.715 MB / 1.043 GB, free: 27.92 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004215/2.104, allocations: 3.366 MB / 1.046 GB, free: 24.32 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.893e-05/2.104, allocations: 55.86 kB / 1.046 GB, free: 24.26 MB / 442.7 MB Notification: Performance of pre-optimization done (n=119): time 2.455e-06/2.104, allocations: 0 / 1.046 GB, free: 24.26 MB / 442.7 MB Notification: Performance of matching and sorting (n=134): time 0.0144/2.119, allocations: 4.676 MB / 1.051 GB, free: 19.54 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.457e-05/2.119, allocations: 167.5 kB / 1.051 GB, free: 19.34 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001233/2.12, allocations: 0.9483 MB / 1.052 GB, free: 18.38 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001802/2.12, allocations: 37.64 kB / 1.052 GB, free: 18.34 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004114/2.121, allocations: 0.7089 MB / 1.052 GB, free: 17.62 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003171/2.121, allocations: 461.2 kB / 1.053 GB, free: 17.16 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.279e-05/2.121, allocations: 0 / 1.053 GB, free: 17.16 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.897e-05/2.121, allocations: 377.9 kB / 1.053 GB, free: 16.79 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008549/2.122, allocations: 0.7146 MB / 1.054 GB, free: 16.07 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009797/2.123, allocations: 1.098 MB / 1.055 GB, free: 14.81 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005659/2.129, allocations: 1.715 MB / 1.057 GB, free: 13.1 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-05/2.129, allocations: 4 kB / 1.057 GB, free: 13.09 MB / 442.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.007815/2.137, allocations: 3.087 MB / 1.06 GB, free: 9.984 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008572/2.138, allocations: 4.282 MB / 1.064 GB, free: 5.379 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.973e-05/2.138, allocations: 12 kB / 1.064 GB, free: 5.367 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001197/2.139, allocations: 455 kB / 1.064 GB, free: 4.91 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001345/2.14, allocations: 347.4 kB / 1.065 GB, free: 4.57 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003956/2.144, allocations: 3.298 MB / 1.068 GB, free: 1.168 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00165/2.146, allocations: 99.81 kB / 1.068 GB, free: 1.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000159/2.146, allocations: 75.97 kB / 1.068 GB, free: 0.9961 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.245e-05/2.146, allocations: 6.5 kB / 1.068 GB, free: 0.9922 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00783/2.154, allocations: 2.724 MB / 1.071 GB, free: 14.25 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.387e-05/2.154, allocations: 8 kB / 1.071 GB, free: 14.25 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001114/2.155, allocations: 343.2 kB / 1.071 GB, free: 13.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001454/2.157, allocations: 355.4 kB / 1.071 GB, free: 13.55 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004009/2.161, allocations: 2.954 MB / 1.074 GB, free: 10.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001913/2.162, allocations: 95.89 kB / 1.074 GB, free: 10.41 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002041/2.163, allocations: 79.97 kB / 1.074 GB, free: 10.33 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (200): * Single equations (assignments): 196 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0006491/2.163, allocations: 154.3 kB / 1.074 GB, free: 10.17 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007018/2.17, allocations: 2.033 MB / 1.076 GB, free: 8.117 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006232/2.171, allocations: 146.2 kB / 1.077 GB, free: 7.973 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006015/2.177, allocations: 2.334 MB / 1.079 GB, free: 5.637 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-05/2.177, allocations: 16 kB / 1.079 GB, free: 5.621 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.804e-06/2.177, allocations: 8 kB / 1.079 GB, free: 5.613 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.831e-05/2.177, allocations: 7.969 kB / 1.079 GB, free: 5.605 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008371/2.186, allocations: 3.895 MB / 1.083 GB, free: 1.676 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.918e-06/2.186, allocations: 0 / 1.083 GB, free: 1.676 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001025/2.187, allocations: 243.6 kB / 1.083 GB, free: 1.438 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00131/2.188, allocations: 450 kB / 1.083 GB, free: 0.9922 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.772e-05/2.188, allocations: 27.98 kB / 1.083 GB, free: 0.9648 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3004/2.488, allocations: 3.045 MB / 1.086 GB, free: 61.29 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.164e-06/2.489, allocations: 0 / 1.086 GB, free: 61.29 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006133/2.495, allocations: 3.218 MB / 1.09 GB, free: 60.95 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006677/2.495, allocations: 251.3 kB / 1.09 GB, free: 60.86 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002518/2.496, allocations: 13.72 kB / 1.09 GB, free: 60.86 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001113/2.497, allocations: 78.58 kB / 1.09 GB, free: 60.86 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002627/2.497, allocations: 148.6 kB / 1.09 GB, free: 60.86 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001319/2.497, allocations: 62.88 kB / 1.09 GB, free: 60.86 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0009714/2.498, allocations: 0.7145 MB / 1.091 GB, free: 60.75 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.6e-07/2.498, allocations: 0 / 1.091 GB, free: 60.75 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004273/2.502, allocations: 1.283 MB / 1.092 GB, free: 60.75 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.009368/2.512, allocations: 5.303 MB / 1.097 GB, free: 59.43 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005159/2.517, allocations: 2.877 MB / 1.1 GB, free: 59.38 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.707e-06/2.517, allocations: 1.031 kB / 1.1 GB, free: 59.38 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001638/2.519, allocations: 1.03 MB / 1.101 GB, free: 59.37 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003477/2.522, allocations: 0.6358 MB / 1.102 GB, free: 59.36 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007189/2.529, allocations: 3.341 MB / 1.105 GB, free: 58.7 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007888/2.53, allocations: 1.437 MB / 1.106 GB, free: 57.97 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002559/2.533, allocations: 0.7391 MB / 1.107 GB, free: 57.95 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007916/2.534, allocations: 0.6375 MB / 1.108 GB, free: 57.95 MB / 458.7 MB Notification: Performance of SimCode: time 8.72e-07/2.534, allocations: 0 / 1.108 GB, free: 57.95 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1211/2.655, allocations: 58.57 MB / 1.165 GB, free: 54.84 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002297/2.655, allocations: 202 kB / 1.165 GB, free: 54.63 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.051/6.706, allocations: 2.5 kB / 1.165 GB, free: 54.63 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2.fmu > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat