Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001218/0.001218, allocations: 198.7 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.279/1.279, allocations: 227.2 MB / 245 MB, free: 7.629 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009015/0.0009015, allocations: 95.75 kB / 297.3 MB, free: 6.207 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002308/0.0002308, allocations: 8 kB / 358 MB, free: 9.449 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2307/0.2309, allocations: 51.47 MB / 409.5 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6849/0.9158, allocations: 323.1 MB / 0.7155 GB, free: 146.1 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000237/0.9161, allocations: 95.56 kB / 0.7155 GB, free: 146 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2631/1.179, allocations: 140.5 MB / 0.8528 GB, free: 4.203 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.212e-06/1.179, allocations: 0 / 0.8528 GB, free: 4.203 MB / 458.7 MB Notification: Performance of Transformations before backend: time 5.582e-05/1.179, allocations: 20 kB / 0.8528 GB, free: 4.184 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002361/1.182, allocations: 1.137 MB / 0.8539 GB, free: 2.996 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.362e-05/1.182, allocations: 8.031 kB / 0.8539 GB, free: 2.988 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001202/1.182, allocations: 90.52 kB / 0.854 GB, free: 2.891 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002615/1.182, allocations: 91 kB / 0.8541 GB, free: 2.801 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009787/1.183, allocations: 0.5755 MB / 0.8546 GB, free: 2.184 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.48e-05/1.183, allocations: 40.98 kB / 0.8547 GB, free: 2.145 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.807e-05/1.183, allocations: 47.98 kB / 0.8547 GB, free: 2.098 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001011/1.184, allocations: 0.7264 MB / 0.8554 GB, free: 1.336 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.055e-05/1.184, allocations: 7.906 kB / 0.8554 GB, free: 1.328 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.106e-05/1.184, allocations: 31.86 kB / 0.8555 GB, free: 1.297 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.321e-05/1.184, allocations: 40.97 kB / 0.8555 GB, free: 1.258 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000959/1.185, allocations: 0.6909 MB / 0.8562 GB, free: 0.5664 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2534/1.439, allocations: 2.86 MB / 0.859 GB, free: 100.8 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008977/1.44, allocations: 468.6 kB / 0.8594 GB, free: 100.8 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000245/1.44, allocations: 342.4 kB / 0.8597 GB, free: 100.4 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.099e-05/1.44, allocations: 38.56 kB / 0.8598 GB, free: 100.4 MB / 458.7 MB Notification: Performance of pre-optimization done (n=48): time 2.605e-06/1.44, allocations: 0 / 0.8598 GB, free: 100.4 MB / 458.7 MB Notification: Performance of matching and sorting (n=58): time 0.004816/1.445, allocations: 2.276 MB / 0.862 GB, free: 99.9 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.756e-05/1.445, allocations: 81.61 kB / 0.8621 GB, free: 99.81 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005816/1.446, allocations: 0.5546 MB / 0.8626 GB, free: 99.68 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.454e-05/1.446, allocations: 40.8 kB / 0.8627 GB, free: 99.65 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002312/1.446, allocations: 325.3 kB / 0.863 GB, free: 99.51 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001424/1.446, allocations: 198.6 kB / 0.8632 GB, free: 99.41 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.002e-05/1.446, allocations: 14.12 kB / 0.8632 GB, free: 99.41 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001222/1.446, allocations: 384.8 kB / 0.8635 GB, free: 99.1 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004641/1.447, allocations: 286 kB / 0.8638 GB, free: 99.1 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005687/1.447, allocations: 457.4 kB / 0.8642 GB, free: 98.93 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005277/1.448, allocations: 338.1 kB / 0.8646 GB, free: 98.93 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/1.448, allocations: 1.625 kB / 0.8646 GB, free: 98.93 MB / 458.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00142/1.449, allocations: 0.9287 MB / 0.8655 GB, free: 98.83 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003936/1.45, allocations: 1.745 MB / 0.8672 GB, free: 97.02 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.819e-06/1.45, allocations: 3.969 kB / 0.8672 GB, free: 97.02 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001981/1.452, allocations: 356.4 kB / 0.8675 GB, free: 97.01 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005782/1.452, allocations: 153 kB / 0.8677 GB, free: 97.01 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008354/1.453, allocations: 0.8187 MB / 0.8685 GB, free: 96.48 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006277/1.454, allocations: 46.06 kB / 0.8685 GB, free: 96.48 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.094e-05/1.454, allocations: 38.14 kB / 0.8685 GB, free: 96.48 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/1.454, allocations: 3.531 kB / 0.8686 GB, free: 96.48 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001259/1.455, allocations: 0.7879 MB / 0.8693 GB, free: 96.46 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/1.455, allocations: 4.578 kB / 0.8693 GB, free: 96.46 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001571/1.457, allocations: 222.1 kB / 0.8695 GB, free: 96.45 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006911/1.457, allocations: 153.2 kB / 0.8697 GB, free: 96.45 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005246/1.458, allocations: 0.7005 MB / 0.8704 GB, free: 95.93 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006118/1.459, allocations: 52.5 kB / 0.8704 GB, free: 95.93 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.053e-05/1.459, allocations: 32.5 kB / 0.8704 GB, free: 95.93 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],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 (83): * Single equations (assignments): 82 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0005029/1.459, allocations: 318.3 kB / 0.8708 GB, free: 95.74 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001647/1.459, allocations: 70.78 kB / 0.8708 GB, free: 95.7 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001494/1.461, allocations: 0.8396 MB / 0.8716 GB, free: 95.63 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/1.461, allocations: 11.69 kB / 0.8717 GB, free: 95.63 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.263e-05/1.461, allocations: 7.906 kB / 0.8717 GB, free: 95.63 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/1.461, allocations: 3.797 kB / 0.8717 GB, free: 95.63 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002544/1.463, allocations: 1.658 MB / 0.8733 GB, free: 95.29 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.347e-06/1.463, allocations: 0 / 0.8733 GB, free: 95.29 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005017/1.464, allocations: 115.5 kB / 0.8734 GB, free: 95.29 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001441/1.465, allocations: 335.4 kB / 0.8737 GB, free: 95.28 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.728e-05/1.465, allocations: 16.86 kB / 0.8737 GB, free: 95.28 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006072/1.466, allocations: 0.8059 MB / 0.8745 GB, free: 94.75 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/1.466, allocations: 2.25 kB / 0.8745 GB, free: 94.75 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001569/1.468, allocations: 1.262 MB / 0.8757 GB, free: 94.51 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002077/1.468, allocations: 152.9 kB / 0.8759 GB, free: 94.38 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.586e-05/1.468, allocations: 16.53 kB / 0.8759 GB, free: 94.38 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004798/1.468, allocations: 43.61 kB / 0.876 GB, free: 94.38 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001101/1.469, allocations: 51.12 kB / 0.876 GB, free: 94.38 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.373e-05/1.469, allocations: 24.73 kB / 0.876 GB, free: 94.38 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005011/1.469, allocations: 441.6 kB / 0.8764 GB, free: 94.29 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.469, allocations: 3.125 kB / 0.8764 GB, free: 94.29 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001797/1.471, allocations: 0.5966 MB / 0.877 GB, free: 94.29 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.002927/1.474, allocations: 2.446 MB / 0.8794 GB, free: 93.38 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001903/1.476, allocations: 1.118 MB / 0.8805 GB, free: 93.36 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/1.476, allocations: 3.375 kB / 0.8805 GB, free: 93.36 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005604/1.476, allocations: 378.5 kB / 0.8809 GB, free: 93.35 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001452/1.478, allocations: 330 kB / 0.8812 GB, free: 93.35 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00383/1.482, allocations: 5.414 MB / 0.8865 GB, free: 89.41 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003822/1.482, allocations: 0.9838 MB / 0.8874 GB, free: 88.71 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0009471/1.483, allocations: 276.8 kB / 0.8877 GB, free: 88.7 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003262/1.483, allocations: 252.4 kB / 0.8879 GB, free: 88.7 MB / 458.7 MB Notification: Performance of SimCode: time 1.293e-06/1.483, allocations: 0 / 0.8879 GB, free: 88.7 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04316/1.527, allocations: 26.81 MB / 0.9141 GB, free: 87.61 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001757/1.527, allocations: 214.2 kB / 0.9143 GB, free: 87.38 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.604/4.131, allocations: 3.938 kB / 0.9143 GB, free: 87.37 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks.fmu > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat does not exist to compare? outputFormat=mat