Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001424/0.001424, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.732/1.732, allocations: 205.2 MB / 219.8 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001012/0.001012, allocations: 82.66 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.205e-05/3.243e-05, allocations: 4 kB / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09096/0.09101, allocations: 47.58 MB / 370.1 MB, free: 1.609 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7906/0.8816, allocations: 321.7 MB / 0.6756 GB, free: 2.984 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002191/0.8819, allocations: 89.81 kB / 0.6757 GB, free: 2.938 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5065/1.388, allocations: 137.3 MB / 0.8097 GB, free: 57.34 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.553e-06/1.388, allocations: 0 / 0.8097 GB, free: 57.34 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.455e-05/1.388, allocations: 27.92 kB / 0.8097 GB, free: 57.31 MB / 426.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.002134/1.391, allocations: 1.028 MB / 0.8107 GB, free: 56.24 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/1.391, allocations: 12.03 kB / 0.8108 GB, free: 56.23 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001048/1.391, allocations: 86.52 kB / 0.8108 GB, free: 56.13 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002699/1.391, allocations: 87.02 kB / 0.8109 GB, free: 56.05 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009759/1.392, allocations: 0.5755 MB / 0.8115 GB, free: 55.43 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.312e-05/1.392, allocations: 40.98 kB / 0.8115 GB, free: 55.39 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.091e-05/1.392, allocations: 55.88 kB / 0.8116 GB, free: 55.34 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001004/1.393, allocations: 0.7302 MB / 0.8123 GB, free: 54.57 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.032e-05/1.393, allocations: 4 kB / 0.8123 GB, free: 54.57 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.184e-05/1.393, allocations: 19.98 kB / 0.8123 GB, free: 54.55 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.929e-05/1.393, allocations: 48.97 kB / 0.8124 GB, free: 54.5 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008611/1.394, allocations: 0.6676 MB / 0.813 GB, free: 53.83 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003387/1.398, allocations: 2.853 MB / 0.8158 GB, free: 50.8 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005684/1.398, allocations: 466.3 kB / 0.8162 GB, free: 50.34 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003007/1.399, allocations: 250.1 kB / 0.8165 GB, free: 50.09 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002253/1.399, allocations: 344.8 kB / 0.8168 GB, free: 49.68 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.503e-05/1.399, allocations: 39 kB / 0.8169 GB, free: 49.63 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 2.945e-06/1.399, allocations: 0 / 0.8169 GB, free: 49.63 MB / 426.7 MB Notification: Performance of matching and sorting (n=58): time 0.003609/1.402, allocations: 1.835 MB / 0.8186 GB, free: 47.74 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.551e-05/1.402, allocations: 81.67 kB / 0.8187 GB, free: 47.64 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000568/1.403, allocations: 0.5463 MB / 0.8193 GB, free: 47.09 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.144e-05/1.403, allocations: 37.7 kB / 0.8193 GB, free: 47.04 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001668/1.403, allocations: 328.4 kB / 0.8196 GB, free: 46.72 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001333/1.403, allocations: 209 kB / 0.8198 GB, free: 46.51 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.435e-05/1.403, allocations: 16 kB / 0.8198 GB, free: 46.5 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001134/1.404, allocations: 378.8 kB / 0.8202 GB, free: 46.12 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003694/1.404, allocations: 277.5 kB / 0.8204 GB, free: 45.85 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000451/1.404, allocations: 443 kB / 0.8209 GB, free: 45.35 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004286/1.405, allocations: 334 kB / 0.8212 GB, free: 45.02 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/1.405, allocations: 0 / 0.8212 GB, free: 45.02 MB / 426.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001215/1.406, allocations: 0.9137 MB / 0.8221 GB, free: 44.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004885/1.407, allocations: 1.752 MB / 0.8238 GB, free: 42.21 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.301e-05/1.407, allocations: 4 kB / 0.8238 GB, free: 42.21 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001921/1.409, allocations: 352.4 kB / 0.8241 GB, free: 41.86 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005384/1.409, allocations: 155.8 kB / 0.8243 GB, free: 41.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007549/1.41, allocations: 0.8175 MB / 0.8251 GB, free: 40.87 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006095/1.41, allocations: 52.03 kB / 0.8251 GB, free: 40.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.189e-05/1.411, allocations: 24 kB / 0.8251 GB, free: 40.79 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/1.411, allocations: 7.906 kB / 0.8252 GB, free: 40.79 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001054/1.412, allocations: 0.7842 MB / 0.8259 GB, free: 40 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/1.412, allocations: 4 kB / 0.8259 GB, free: 39.99 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00128/1.413, allocations: 224.9 kB / 0.8261 GB, free: 39.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005169/1.413, allocations: 151.8 kB / 0.8263 GB, free: 39.62 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004672/1.414, allocations: 0.7006 MB / 0.827 GB, free: 38.89 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005105/1.414, allocations: 48.03 kB / 0.827 GB, free: 38.85 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.272e-05/1.415, allocations: 31.98 kB / 0.827 GB, free: 38.82 MB / 426.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 () * 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.0001873/1.415, allocations: 160.7 kB / 0.8272 GB, free: 38.65 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001099/1.415, allocations: 75.06 kB / 0.8273 GB, free: 38.58 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00131/1.416, allocations: 0.8115 MB / 0.8281 GB, free: 37.75 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/1.416, allocations: 8 kB / 0.8281 GB, free: 37.75 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/1.416, allocations: 4 kB / 0.8281 GB, free: 37.74 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/1.416, allocations: 3.984 kB / 0.8281 GB, free: 37.74 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002196/1.418, allocations: 1.649 MB / 0.8297 GB, free: 36.02 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/1.418, allocations: 3.938 kB / 0.8297 GB, free: 36.02 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004616/1.419, allocations: 107.9 kB / 0.8298 GB, free: 35.91 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001372/1.42, allocations: 332.5 kB / 0.8301 GB, free: 35.58 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.249e-05/1.42, allocations: 12 kB / 0.8301 GB, free: 35.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005936/1.421, allocations: 0.8022 MB / 0.8309 GB, free: 34.74 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/1.421, allocations: 8 kB / 0.8309 GB, free: 34.73 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001492/1.422, allocations: 1.232 MB / 0.8321 GB, free: 33.46 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002326/1.423, allocations: 156.2 kB / 0.8323 GB, free: 33.29 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001327/1.423, allocations: 24.06 kB / 0.8323 GB, free: 33.27 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005083/1.423, allocations: 39.91 kB / 0.8323 GB, free: 33.23 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001116/1.423, allocations: 60.38 kB / 0.8324 GB, free: 33.17 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.826e-05/1.424, allocations: 23.98 kB / 0.8324 GB, free: 33.15 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005008/1.424, allocations: 435.1 kB / 0.8328 GB, free: 32.73 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.51e-07/1.424, allocations: 4 kB / 0.8328 GB, free: 32.73 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001981/1.426, allocations: 0.5854 MB / 0.8334 GB, free: 32.14 MB / 426.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]) * 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.003389/1.429, allocations: 2.405 MB / 0.8357 GB, free: 29.69 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002018/1.431, allocations: 1.12 MB / 0.8368 GB, free: 28.57 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/1.431, allocations: 4.062 kB / 0.8368 GB, free: 28.57 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005611/1.432, allocations: 375 kB / 0.8372 GB, free: 28.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001524/1.434, allocations: 334.8 kB / 0.8375 GB, free: 27.87 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003197/1.437, allocations: 1.519 MB / 0.839 GB, free: 26.3 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004056/1.437, allocations: 0.9919 MB / 0.84 GB, free: 25.28 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001122/1.438, allocations: 321.9 kB / 0.8403 GB, free: 24.96 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000344/1.439, allocations: 243.3 kB / 0.8405 GB, free: 24.72 MB / 426.7 MB Notification: Performance of SimCode: time 9.22e-07/1.439, allocations: 4 kB / 0.8405 GB, free: 24.72 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2766/1.715, allocations: 28.06 MB / 0.8679 GB, free: 94.27 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001606/1.716, allocations: 192.5 kB / 0.8681 GB, free: 94.04 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.82/4.536, allocations: 0 / 0.8681 GB, free: 94.04 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat does not exist to compare? outputFormat=mat