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.001997/0.001997, allocations: 194.3 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.633/1.633, allocations: 225.6 MB / 234.8 MB, free: 3.277 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009641/0.0009642, allocations: 90.62 kB / 286.7 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.237e-05/2.236e-05, allocations: 4 kB / 343.8 MB, free: 8.203 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1348/0.1348, allocations: 51.47 MB / 395.3 MB, free: 4.691 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.137/1.271, allocations: 324.9 MB / 0.7033 GB, free: 31.93 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002181/1.272, allocations: 85.58 kB / 0.7033 GB, free: 31.89 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.178/2.449, allocations: 284.7 MB / 0.9814 GB, free: 56.03 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.204e-06/2.45, allocations: 0 / 0.9814 GB, free: 56.03 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003292/2.45, allocations: 37.25 kB / 0.9814 GB, free: 56.02 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.006471/2.456, allocations: 1.794 MB / 0.9832 GB, free: 55.08 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.438e-05/2.456, allocations: 10.03 kB / 0.9832 GB, free: 55.08 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001162/2.458, allocations: 166.3 kB / 0.9833 GB, free: 55.01 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002575/2.46, allocations: 1.032 MB / 0.9843 GB, free: 54.68 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.804e-05/2.46, allocations: 36.19 kB / 0.9844 GB, free: 54.68 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002876/2.461, allocations: 68.23 kB / 0.9844 GB, free: 54.67 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002576/2.463, allocations: 1.43 MB / 0.9858 GB, free: 54.67 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002274/2.465, allocations: 1.473 MB / 0.9873 GB, free: 54.42 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.082e-05/2.466, allocations: 3.531 kB / 0.9873 GB, free: 54.42 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001495/2.466, allocations: 3.656 kB / 0.9873 GB, free: 54.42 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001111/2.466, allocations: 99.34 kB / 0.9874 GB, free: 54.42 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009271/2.475, allocations: 6.309 MB / 0.9935 GB, free: 51.45 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00125/2.476, allocations: 0.8754 MB / 0.9944 GB, free: 51.34 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006198/2.477, allocations: 0.5233 MB / 0.9949 GB, free: 51.14 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003624/2.481, allocations: 2.847 MB / 0.9977 GB, free: 49.17 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.326e-05/2.481, allocations: 43.28 kB / 0.9977 GB, free: 49.12 MB / 442.7 MB Notification: Performance of pre-optimization done (n=80): time 2.705e-06/2.481, allocations: 0 / 0.9977 GB, free: 49.12 MB / 442.7 MB Notification: Performance of matching and sorting (n=90): time 0.009932/2.491, allocations: 3.129 MB / 1.001 GB, free: 47.92 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.517e-05/2.491, allocations: 195.5 kB / 1.001 GB, free: 47.7 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001347/2.492, allocations: 0.8679 MB / 1.002 GB, free: 47.3 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001652/2.492, allocations: 29.2 kB / 1.002 GB, free: 47.27 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005087/2.493, allocations: 0.6582 MB / 1.002 GB, free: 46.75 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002489/2.493, allocations: 304.4 kB / 1.003 GB, free: 46.52 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.421e-05/2.493, allocations: 0 / 1.003 GB, free: 46.52 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.76e-05/2.493, allocations: 366.5 kB / 1.003 GB, free: 46.19 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007281/2.494, allocations: 0.5248 MB / 1.004 GB, free: 45.99 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009538/2.495, allocations: 0.9183 MB / 1.005 GB, free: 45.29 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004781/2.5, allocations: 1.356 MB / 1.006 GB, free: 45 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.541e-05/2.5, allocations: 3.344 kB / 1.006 GB, free: 45 MB / 442.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.007112/2.507, allocations: 2.409 MB / 1.008 GB, free: 44.29 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001167/2.508, allocations: 4.362 MB / 1.012 GB, free: 39.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.496e-05/2.508, allocations: 12.94 kB / 1.012 GB, free: 39.66 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001006/2.509, allocations: 328.5 kB / 1.013 GB, free: 39.57 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00112/2.51, allocations: 286 kB / 1.013 GB, free: 39.53 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003496/2.514, allocations: 2.45 MB / 1.015 GB, free: 37.69 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001622/2.516, allocations: 77.11 kB / 1.016 GB, free: 37.68 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001939/2.516, allocations: 70.34 kB / 1.016 GB, free: 37.67 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/2.516, allocations: 3.875 kB / 1.016 GB, free: 37.67 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006047/2.522, allocations: 2.117 MB / 1.018 GB, free: 37.09 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.175e-05/2.522, allocations: 11.34 kB / 1.018 GB, free: 37.09 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008735/2.523, allocations: 266.8 kB / 1.018 GB, free: 37.02 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001099/2.524, allocations: 284 kB / 1.018 GB, free: 36.99 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002475/2.526, allocations: 2.221 MB / 1.02 GB, free: 35.22 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001359/2.528, allocations: 73.36 kB / 1.02 GB, free: 35.22 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001775/2.528, allocations: 64.33 kB / 1.021 GB, free: 35.21 MB / 442.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 () * 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.0004062/2.528, allocations: 157.7 kB / 1.021 GB, free: 35.07 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00391/2.532, allocations: 1.349 MB / 1.022 GB, free: 34.61 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003276/2.533, allocations: 123.8 kB / 1.022 GB, free: 34.55 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003695/2.536, allocations: 1.525 MB / 1.024 GB, free: 34.02 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.023e-05/2.536, allocations: 13.75 kB / 1.024 GB, free: 34.02 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.064e-06/2.536, allocations: 0 / 1.024 GB, free: 34.02 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/2.536, allocations: 6.047 kB / 1.024 GB, free: 34.02 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00527/2.542, allocations: 2.731 MB / 1.026 GB, free: 32.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/2.542, allocations: 0 / 1.026 GB, free: 32.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007148/2.542, allocations: 154.5 kB / 1.026 GB, free: 32.89 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009614/2.543, allocations: 315 kB / 1.027 GB, free: 32.8 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.919e-05/2.543, allocations: 18 kB / 1.027 GB, free: 32.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002269/2.546, allocations: 2.267 MB / 1.029 GB, free: 30.99 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/2.546, allocations: 3.656 kB / 1.029 GB, free: 30.99 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003849/2.55, allocations: 2.131 MB / 1.031 GB, free: 30.04 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005055/2.55, allocations: 227 kB / 1.031 GB, free: 29.85 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004214/2.551, allocations: 9.438 kB / 1.031 GB, free: 29.85 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001076/2.552, allocations: 54.97 kB / 1.031 GB, free: 29.85 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001788/2.552, allocations: 102.4 kB / 1.031 GB, free: 29.82 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000112/2.552, allocations: 44.62 kB / 1.031 GB, free: 29.82 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001024/2.553, allocations: 0.6561 MB / 1.032 GB, free: 29.51 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/2.553, allocations: 0 / 1.032 GB, free: 29.51 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004231/2.557, allocations: 1.15 MB / 1.033 GB, free: 29.26 MB / 442.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]) * 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.007497/2.565, allocations: 3.968 MB / 1.037 GB, free: 27.25 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00476/2.57, allocations: 2.088 MB / 1.039 GB, free: 26.05 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.145e-05/2.57, allocations: 0 / 1.039 GB, free: 26.05 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001263/2.571, allocations: 0.6485 MB / 1.04 GB, free: 25.48 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003249/2.574, allocations: 489.2 kB / 1.04 GB, free: 25.15 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006938/2.581, allocations: 2.614 MB / 1.043 GB, free: 22.85 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008521/2.582, allocations: 1.29 MB / 1.044 GB, free: 21.75 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00228/2.584, allocations: 0.563 MB / 1.045 GB, free: 21.39 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005784/2.585, allocations: 0.5 MB / 1.045 GB, free: 20.93 MB / 442.7 MB Notification: Performance of SimCode: time 7.21e-07/2.585, allocations: 4 kB / 1.045 GB, free: 20.93 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3762/2.961, allocations: 46.79 MB / 1.091 GB, free: 65.2 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000248/2.961, allocations: 191.2 kB / 1.091 GB, free: 65.01 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.741/6.703, allocations: 2 kB / 1.091 GB, free: 65.01 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