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.001367/0.001367, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.774/1.774, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009514/0.0009514, allocations: 86.7 kB / 262.4 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.007e-05/2.011e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1009, allocations: 47.59 MB / 363.2 MB, free: 6.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8559/0.9569, allocations: 321.2 MB / 0.6684 GB, free: 8.816 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003707/0.9574, allocations: 94.8 kB / 0.6685 GB, free: 8.766 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5281/1.485, allocations: 136.5 MB / 0.8018 GB, free: 69.17 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.373e-06/1.485, allocations: 4 kB / 0.8018 GB, free: 69.17 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.164e-05/1.486, allocations: 20.16 kB / 0.8018 GB, free: 69.15 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.00203/1.488, allocations: 1.026 MB / 0.8028 GB, free: 68.09 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/1.488, allocations: 12.02 kB / 0.8028 GB, free: 68.07 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002764/1.488, allocations: 87.02 kB / 0.8029 GB, free: 67.99 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008887/1.489, allocations: 0.5811 MB / 0.8035 GB, free: 67.38 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.154e-05/1.489, allocations: 19.94 kB / 0.8035 GB, free: 67.36 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.357e-05/1.489, allocations: 31.98 kB / 0.8035 GB, free: 67.32 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007999/1.49, allocations: 0.6078 MB / 0.8041 GB, free: 66.71 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008231/1.491, allocations: 0.6582 MB / 0.8048 GB, free: 66.02 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.881e-05/1.491, allocations: 3.906 kB / 0.8048 GB, free: 66.02 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.749e-05/1.491, allocations: 0 / 0.8048 GB, free: 66.02 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.576e-05/1.491, allocations: 53.27 kB / 0.8048 GB, free: 65.97 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003285/1.494, allocations: 2.741 MB / 0.8075 GB, free: 63.09 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005031/1.495, allocations: 431.8 kB / 0.8079 GB, free: 62.65 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000259/1.495, allocations: 242.1 kB / 0.8081 GB, free: 62.41 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002079/1.495, allocations: 348.5 kB / 0.8085 GB, free: 62 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.495e-05/1.495, allocations: 42.94 kB / 0.8085 GB, free: 61.95 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 2.294e-06/1.495, allocations: 3.938 kB / 0.8085 GB, free: 61.95 MB / 426.7 MB Notification: Performance of matching and sorting (n=58): time 0.004555/1.5, allocations: 1.803 MB / 0.8103 GB, free: 60.09 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.246e-05/1.5, allocations: 97.61 kB / 0.8104 GB, free: 59.98 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004099/1.5, allocations: 442.1 kB / 0.8108 GB, free: 59.54 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.845e-05/1.5, allocations: 29.7 kB / 0.8108 GB, free: 59.5 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001525/1.5, allocations: 336.1 kB / 0.8111 GB, free: 59.17 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001155/1.5, allocations: 201 kB / 0.8113 GB, free: 58.97 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.282e-05/1.5, allocations: 0 / 0.8113 GB, free: 58.97 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.264e-05/1.501, allocations: 374.8 kB / 0.8117 GB, free: 58.59 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003199/1.501, allocations: 265.5 kB / 0.8119 GB, free: 58.33 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003702/1.501, allocations: 433.5 kB / 0.8123 GB, free: 57.85 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003251/1.505, allocations: 0.8356 MB / 0.8132 GB, free: 57.01 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/1.505, allocations: 0 / 0.8132 GB, free: 57.01 MB / 426.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003968/1.509, allocations: 1.374 MB / 0.8145 GB, free: 55.63 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003658/1.509, allocations: 1.754 MB / 0.8162 GB, free: 53.74 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/1.509, allocations: 4 kB / 0.8162 GB, free: 53.74 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004848/1.509, allocations: 164.7 kB / 0.8164 GB, free: 53.57 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005313/1.51, allocations: 155.7 kB / 0.8165 GB, free: 53.42 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001345/1.511, allocations: 0.9464 MB / 0.8174 GB, free: 52.45 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005689/1.512, allocations: 35.94 kB / 0.8175 GB, free: 52.41 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.781e-05/1.512, allocations: 32 kB / 0.8175 GB, free: 52.38 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.658e-06/1.512, allocations: 4 kB / 0.8175 GB, free: 52.38 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003707/1.516, allocations: 1.213 MB / 0.8187 GB, free: 51.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/1.516, allocations: 4 kB / 0.8187 GB, free: 51.16 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000332/1.516, allocations: 101.3 kB / 0.8188 GB, free: 51.05 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005192/1.517, allocations: 163.7 kB / 0.819 GB, free: 50.89 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009787/1.518, allocations: 0.7943 MB / 0.8197 GB, free: 50.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00051/1.518, allocations: 32.03 kB / 0.8198 GB, free: 50.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.296e-05/1.518, allocations: 35.94 kB / 0.8198 GB, free: 50.01 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.0001923/1.518, allocations: 128.6 kB / 0.8199 GB, free: 49.88 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001624/1.52, allocations: 0.741 MB / 0.8206 GB, free: 49.12 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.398e-05/1.52, allocations: 75.09 kB / 0.8207 GB, free: 49.05 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001612/1.522, allocations: 0.8072 MB / 0.8215 GB, free: 48.23 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/1.522, allocations: 8 kB / 0.8215 GB, free: 48.22 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/1.522, allocations: 7.953 kB / 0.8215 GB, free: 48.21 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/1.522, allocations: 3.984 kB / 0.8215 GB, free: 48.21 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002411/1.524, allocations: 1.559 MB / 0.823 GB, free: 46.61 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/1.524, allocations: 4 kB / 0.8231 GB, free: 46.61 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004568/1.525, allocations: 111.8 kB / 0.8232 GB, free: 46.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004423/1.525, allocations: 164.8 kB / 0.8233 GB, free: 46.33 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.891e-05/1.525, allocations: 8 kB / 0.8233 GB, free: 46.32 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009663/1.526, allocations: 0.8723 MB / 0.8242 GB, free: 45.43 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/1.526, allocations: 4.031 kB / 0.8242 GB, free: 45.42 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001851/1.528, allocations: 1.24 MB / 0.8254 GB, free: 44.14 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001612/1.528, allocations: 156.2 kB / 0.8255 GB, free: 43.97 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.655e-05/1.528, allocations: 4 kB / 0.8255 GB, free: 43.97 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004262/1.529, allocations: 31.97 kB / 0.8256 GB, free: 43.94 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.936e-05/1.529, allocations: 48.55 kB / 0.8256 GB, free: 43.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.108e-05/1.529, allocations: 31.98 kB / 0.8257 GB, free: 43.86 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003367/1.529, allocations: 342.9 kB / 0.826 GB, free: 43.53 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.529, allocations: 0 / 0.826 GB, free: 43.53 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001695/1.531, allocations: 0.5463 MB / 0.8265 GB, free: 42.98 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.003186/1.534, allocations: 2.394 MB / 0.8288 GB, free: 40.57 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001673/1.536, allocations: 1.082 MB / 0.8299 GB, free: 39.49 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/1.536, allocations: 0 / 0.8299 GB, free: 39.49 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000462/1.536, allocations: 351.8 kB / 0.8302 GB, free: 39.15 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001346/1.538, allocations: 293.9 kB / 0.8305 GB, free: 38.87 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002314/1.54, allocations: 1.462 MB / 0.8319 GB, free: 37.35 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003547/1.54, allocations: 0.9795 MB / 0.8329 GB, free: 36.34 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.000901/1.541, allocations: 297.5 kB / 0.8332 GB, free: 36.04 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002936/1.542, allocations: 243.3 kB / 0.8334 GB, free: 35.81 MB / 426.7 MB Notification: Performance of SimCode: time 5.81e-07/1.542, allocations: 0 / 0.8334 GB, free: 35.81 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0442/1.586, allocations: 24.59 MB / 0.8574 GB, free: 11.17 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001513/1.586, allocations: 140.4 kB / 0.8576 GB, free: 10.98 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.617/4.203, allocations: 3.938 kB / 0.8576 GB, free: 10.98 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