Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.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.OneTank,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",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.002499/0.002499, allocations: 182.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.067/2.067, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001095/0.001094, allocations: 90.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.362e-05/3.381e-05, allocations: 8 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0957/0.09576, allocations: 47.57 MB / 369.2 MB, free: 2.121 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.111/1.206, allocations: 326.2 MB / 0.6791 GB, free: 14.67 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004196/1.207, allocations: 86.58 kB / 0.6792 GB, free: 14.63 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.826/2.033, allocations: 143.1 MB / 0.8189 GB, free: 46.9 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.216e-06/2.033, allocations: 0 / 0.8189 GB, free: 46.9 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.008e-05/2.033, allocations: 23.94 kB / 0.8189 GB, free: 46.88 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002962/2.036, allocations: 1.069 MB / 0.82 GB, free: 45.76 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.062e-05/2.036, allocations: 15.97 kB / 0.82 GB, free: 45.74 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002201/2.036, allocations: 90.5 kB / 0.8201 GB, free: 45.64 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000535/2.037, allocations: 103 kB / 0.8202 GB, free: 45.54 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001808/2.039, allocations: 0.6125 MB / 0.8208 GB, free: 44.89 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001062/2.039, allocations: 92.39 kB / 0.8209 GB, free: 44.79 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001349/2.039, allocations: 51.98 kB / 0.8209 GB, free: 44.73 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001831/2.041, allocations: 0.8026 MB / 0.8217 GB, free: 43.88 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.713e-05/2.041, allocations: 4 kB / 0.8217 GB, free: 43.87 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001134/2.041, allocations: 35.97 kB / 0.8217 GB, free: 43.84 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.121e-05/2.041, allocations: 36.98 kB / 0.8218 GB, free: 43.8 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001574/2.043, allocations: 0.6714 MB / 0.8224 GB, free: 43.13 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006874/2.05, allocations: 3.419 MB / 0.8258 GB, free: 39.5 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009906/2.051, allocations: 427.1 kB / 0.8262 GB, free: 39.07 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005378/2.051, allocations: 261 kB / 0.8264 GB, free: 38.82 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002663/2.054, allocations: 1.409 MB / 0.8278 GB, free: 37.27 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007095/2.055, allocations: 373 kB / 0.8281 GB, free: 36.87 MB / 426.7 MB Notification: Performance of pre-optimization done (n=35): time 2.594e-06/2.055, allocations: 0 / 0.8281 GB, free: 36.87 MB / 426.7 MB Notification: Performance of matching and sorting (n=40): time 0.004846/2.059, allocations: 1.586 MB / 0.8297 GB, free: 35.21 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.937e-05/2.06, allocations: 269 kB / 0.83 GB, free: 34.89 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001256/2.061, allocations: 0.6756 MB / 0.8306 GB, free: 34.2 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001583/2.061, allocations: 41.64 kB / 0.8307 GB, free: 34.16 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002887/2.061, allocations: 409.6 kB / 0.831 GB, free: 33.75 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001583/2.062, allocations: 138.1 kB / 0.8312 GB, free: 33.62 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.74e-05/2.062, allocations: 12 kB / 0.8312 GB, free: 33.61 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.432e-05/2.062, allocations: 342.8 kB / 0.8315 GB, free: 33.26 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006326/2.062, allocations: 261.5 kB / 0.8318 GB, free: 33 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007664/2.063, allocations: 0.4906 MB / 0.8322 GB, free: 32.41 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007324/2.064, allocations: 356.7 kB / 0.8326 GB, free: 32.06 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.621e-06/2.064, allocations: 0 / 0.8326 GB, free: 32.06 MB / 426.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002489/2.066, allocations: 0.9185 MB / 0.8335 GB, free: 31.12 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005495/2.067, allocations: 2.476 MB / 0.8359 GB, free: 28.45 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.654e-05/2.067, allocations: 8 kB / 0.8359 GB, free: 28.45 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008478/2.068, allocations: 128.8 kB / 0.836 GB, free: 28.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009995/2.069, allocations: 131.8 kB / 0.8362 GB, free: 28.19 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007671/2.07, allocations: 0.6849 MB / 0.8368 GB, free: 27.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001317/2.071, allocations: 55.94 kB / 0.8369 GB, free: 27.42 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001296/2.071, allocations: 43.98 kB / 0.8369 GB, free: 27.38 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/2.071, allocations: 4 kB / 0.8369 GB, free: 27.38 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002707/2.074, allocations: 0.8975 MB / 0.8378 GB, free: 26.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/2.074, allocations: 12.06 kB / 0.8378 GB, free: 26.45 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005771/2.075, allocations: 104.8 kB / 0.8379 GB, free: 26.35 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008965/2.075, allocations: 139.7 kB / 0.838 GB, free: 26.21 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006019/2.076, allocations: 0.6538 MB / 0.8387 GB, free: 25.53 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008858/2.077, allocations: 51.88 kB / 0.8387 GB, free: 25.48 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.424e-05/2.077, allocations: 35.98 kB / 0.8388 GB, free: 25.45 MB / 426.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = tank.T_start unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003817/2.077, allocations: 207.7 kB / 0.839 GB, free: 25.23 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002256/2.078, allocations: 79.06 kB / 0.839 GB, free: 25.15 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00211/2.08, allocations: 0.7362 MB / 0.8398 GB, free: 24.4 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.208e-06/2.08, allocations: 8 kB / 0.8398 GB, free: 24.39 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/2.08, allocations: 0 / 0.8398 GB, free: 24.39 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.126e-06/2.08, allocations: 3.984 kB / 0.8398 GB, free: 24.39 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00339/2.083, allocations: 1.466 MB / 0.8412 GB, free: 22.85 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/2.083, allocations: 4 kB / 0.8412 GB, free: 22.85 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005502/2.084, allocations: 67.94 kB / 0.8413 GB, free: 22.78 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000751/2.085, allocations: 120.8 kB / 0.8414 GB, free: 22.66 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.113e-05/2.085, allocations: 12 kB / 0.8414 GB, free: 22.65 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006413/2.085, allocations: 0.6694 MB / 0.842 GB, free: 21.95 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/2.085, allocations: 0 / 0.842 GB, free: 21.95 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002355/2.088, allocations: 1.091 MB / 0.8431 GB, free: 20.82 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003242/2.088, allocations: 156.2 kB / 0.8433 GB, free: 20.65 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002218/2.088, allocations: 24.11 kB / 0.8433 GB, free: 20.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008874/2.089, allocations: 39.95 kB / 0.8433 GB, free: 20.59 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001344/2.089, allocations: 35.91 kB / 0.8434 GB, free: 20.55 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.48e-05/2.09, allocations: 19.98 kB / 0.8434 GB, free: 20.53 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009355/2.09, allocations: 0.5226 MB / 0.8439 GB, free: 20.01 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.91e-07/2.09, allocations: 4 kB / 0.8439 GB, free: 20.01 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002341/2.093, allocations: 0.5894 MB / 0.8445 GB, free: 19.42 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 8 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.00401/2.097, allocations: 2.123 MB / 0.8465 GB, free: 17.25 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003037/2.1, allocations: 1.123 MB / 0.8476 GB, free: 16.11 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.722e-06/2.1, allocations: 0 / 0.8476 GB, free: 16.11 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009592/2.101, allocations: 352.6 kB / 0.848 GB, free: 15.75 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002595/2.104, allocations: 310.9 kB / 0.8483 GB, free: 15.45 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004118/2.108, allocations: 1.416 MB / 0.8497 GB, free: 13.98 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005037/2.108, allocations: 0.9737 MB / 0.8506 GB, free: 12.98 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006058/2.109, allocations: 267.3 kB / 0.8509 GB, free: 12.71 MB / 426.7 MB Notification: Performance of SimCode: time 1.383e-06/2.109, allocations: 0 / 0.8509 GB, free: 12.71 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.474/5.583, allocations: 21.21 MB / 0.8716 GB, free: 89.85 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat does not exist to compare? outputFormat=mat