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.002184/0.002184, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.981/1.981, allocations: 205.3 MB / 214.1 MB, free: 14.12 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001105/0.001105, allocations: 91.59 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.836e-05/2.84e-05, allocations: 4 kB / 314.9 MB, free: 9.035 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3279/0.3279, allocations: 47.57 MB / 362.4 MB, free: 45.83 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.06/1.388, allocations: 325.5 MB / 0.6719 GB, free: 119.2 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002729/1.388, allocations: 95.39 kB / 0.6719 GB, free: 119.2 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.4862/1.874, allocations: 142.1 MB / 0.8107 GB, free: 17.21 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.793e-06/1.874, allocations: 0 / 0.8107 GB, free: 17.21 MB / 427.1 MB Notification: Performance of Transformations before backend: time 7.614e-05/1.875, allocations: 23.94 kB / 0.8107 GB, free: 17.18 MB / 427.1 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.002717/1.877, allocations: 1.076 MB / 0.8118 GB, free: 16.06 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/1.877, allocations: 12.03 kB / 0.8118 GB, free: 16.05 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000466/1.878, allocations: 95.05 kB / 0.8119 GB, free: 15.95 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001597/1.879, allocations: 0.6128 MB / 0.8125 GB, free: 15.3 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.611e-05/1.88, allocations: 76.7 kB / 0.8126 GB, free: 15.21 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001088/1.88, allocations: 28 kB / 0.8126 GB, free: 15.18 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00135/1.881, allocations: 0.5961 MB / 0.8132 GB, free: 14.59 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001462/1.883, allocations: 0.7538 MB / 0.8139 GB, free: 13.78 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.545e-05/1.883, allocations: 4 kB / 0.8139 GB, free: 13.77 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.667e-05/1.883, allocations: 4 kB / 0.8139 GB, free: 13.77 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.935e-05/1.883, allocations: 37.3 kB / 0.814 GB, free: 13.73 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006013/1.889, allocations: 3.298 MB / 0.8172 GB, free: 10.25 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008563/1.89, allocations: 403.2 kB / 0.8176 GB, free: 9.84 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000481/1.89, allocations: 257.1 kB / 0.8178 GB, free: 9.586 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002302/1.892, allocations: 1.374 MB / 0.8191 GB, free: 8.074 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005992/1.893, allocations: 357.3 kB / 0.8195 GB, free: 7.691 MB / 427.1 MB Notification: Performance of pre-optimization done (n=35): time 2.524e-06/1.893, allocations: 0 / 0.8195 GB, free: 7.691 MB / 427.1 MB Notification: Performance of matching and sorting (n=40): time 0.004352/1.898, allocations: 1.431 MB / 0.8209 GB, free: 6.203 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.494e-05/1.898, allocations: 273 kB / 0.8211 GB, free: 5.875 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008525/1.898, allocations: 0.5308 MB / 0.8217 GB, free: 5.34 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 6.79e-05/1.899, allocations: 29.7 kB / 0.8217 GB, free: 5.305 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002861/1.899, allocations: 441.7 kB / 0.8221 GB, free: 4.867 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001346/1.899, allocations: 130.2 kB / 0.8222 GB, free: 4.738 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.304e-05/1.899, allocations: 7.938 kB / 0.8222 GB, free: 4.73 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 7.861e-05/1.899, allocations: 338.8 kB / 0.8226 GB, free: 4.391 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000536/1.9, allocations: 245.5 kB / 0.8228 GB, free: 4.152 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000677/1.9, allocations: 494.3 kB / 0.8233 GB, free: 3.562 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005349/1.906, allocations: 0.7622 MB / 0.824 GB, free: 2.801 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/1.906, allocations: 7.938 kB / 0.824 GB, free: 2.793 MB / 427.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.00684/1.913, allocations: 1.291 MB / 0.8253 GB, free: 1.488 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.277/2.19, allocations: 2.469 MB / 0.8277 GB, free: 90.59 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.234e-05/2.19, allocations: 8.469 kB / 0.8277 GB, free: 90.59 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006626/2.19, allocations: 112 kB / 0.8278 GB, free: 90.59 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009822/2.191, allocations: 134.3 kB / 0.8279 GB, free: 90.59 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009501/2.192, allocations: 0.7204 MB / 0.8286 GB, free: 90.07 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001214/2.194, allocations: 34.5 kB / 0.8287 GB, free: 90.07 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001139/2.194, allocations: 38.47 kB / 0.8287 GB, free: 90.07 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/2.194, allocations: 3.844 kB / 0.8287 GB, free: 90.07 MB / 427.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007254/2.201, allocations: 1.233 MB / 0.8299 GB, free: 90.06 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.816e-05/2.201, allocations: 12.27 kB / 0.8299 GB, free: 90.05 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004874/2.202, allocations: 106.2 kB / 0.83 GB, free: 90.05 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008982/2.202, allocations: 135.1 kB / 0.8302 GB, free: 90.05 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006718/2.203, allocations: 0.6612 MB / 0.8308 GB, free: 89.53 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008701/2.204, allocations: 34.66 kB / 0.8308 GB, free: 89.53 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.566e-05/2.204, allocations: 40.06 kB / 0.8309 GB, free: 89.53 MB / 427.1 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.0003868/2.205, allocations: 185.3 kB / 0.8311 GB, free: 89.39 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002035/2.207, allocations: 0.6251 MB / 0.8317 GB, free: 89.35 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001435/2.207, allocations: 69.53 kB / 0.8317 GB, free: 89.35 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002118/2.209, allocations: 0.6776 MB / 0.8324 GB, free: 89.3 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-06/2.209, allocations: 3.688 kB / 0.8324 GB, free: 89.3 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/2.209, allocations: 0 / 0.8324 GB, free: 89.3 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.766e-06/2.209, allocations: 3.953 kB / 0.8324 GB, free: 89.29 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003372/2.212, allocations: 1.353 MB / 0.8337 GB, free: 89.01 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.561e-06/2.212, allocations: 3.875 kB / 0.8337 GB, free: 89.01 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005113/2.213, allocations: 63.47 kB / 0.8338 GB, free: 89.01 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005471/2.214, allocations: 105 kB / 0.8339 GB, free: 89 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.565e-05/2.214, allocations: 11.39 kB / 0.8339 GB, free: 89 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008181/2.214, allocations: 0.6831 MB / 0.8346 GB, free: 88.48 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/2.214, allocations: 3.688 kB / 0.8346 GB, free: 88.48 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00239/2.217, allocations: 1.037 MB / 0.8356 GB, free: 88.3 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003069/2.217, allocations: 148.5 kB / 0.8357 GB, free: 88.17 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001849/2.217, allocations: 7.719 kB / 0.8357 GB, free: 88.17 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000821/2.218, allocations: 33 kB / 0.8358 GB, free: 88.17 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001375/2.218, allocations: 37.34 kB / 0.8358 GB, free: 88.17 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.342e-05/2.218, allocations: 24.91 kB / 0.8358 GB, free: 88.17 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.00068/2.219, allocations: 423.4 kB / 0.8362 GB, free: 88.08 MB / 427.1 MB Notification: Performance of sort global known variables: time 4.41e-07/2.219, allocations: 0 / 0.8362 GB, free: 88.08 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.002414/2.222, allocations: 0.5495 MB / 0.8368 GB, free: 88.08 MB / 427.1 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.00411/2.226, allocations: 2.05 MB / 0.8388 GB, free: 87.27 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.002605/2.228, allocations: 1.058 MB / 0.8398 GB, free: 87.14 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/2.228, allocations: 2.281 kB / 0.8398 GB, free: 87.14 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006854/2.229, allocations: 307.5 kB / 0.8401 GB, free: 87.07 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002013/2.231, allocations: 240 kB / 0.8403 GB, free: 87.07 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003924/2.235, allocations: 1.34 MB / 0.8416 GB, free: 86.74 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004957/2.236, allocations: 0.9785 MB / 0.8426 GB, free: 86.04 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005285/2.236, allocations: 254.6 kB / 0.8428 GB, free: 86.03 MB / 427.1 MB Notification: Performance of SimCode: time 1.152e-06/2.236, allocations: 0 / 0.8428 GB, free: 86.03 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.257/5.493, allocations: 20.28 MB / 0.8626 GB, free: 85.28 MB / 427.1 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