Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,fileNamePrefix="Modelica_3_2_3_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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009767/0.0009764, allocations: 101.2 kB / 16.94 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 180.1 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.668/1.668, allocations: 205.4 MB / 224 MB, free: 13.15 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004802/0.0004802, allocations: 8 kB / 280.8 MB, free: 3.641 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1038, allocations: 47.58 MB / 328.4 MB, free: 3.992 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank): time 0.01556/0.1194, allocations: 15.03 MB / 343.5 MB, free: 4.898 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008493/0.128, allocations: 5.861 MB / 349.3 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008567/0.1289, allocations: 27.75 kB / 349.3 MB, free: 15 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009445/0.1298, allocations: 338.5 kB / 349.7 MB, free: 14.67 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002213/0.132, allocations: 0.8179 MB / 350.5 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003965/0.136, allocations: 1.462 MB / 352 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001864/0.1379, allocations: 1.086 MB / 353 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006659/0.1386, allocations: 453 kB / 353.5 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009851/0.1396, allocations: 0.5998 MB / 354.1 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006449/0.1402, allocations: 498.3 kB / 354.6 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.921e-05/0.1403, allocations: 32 kB / 354.6 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00204/0.1424, allocations: 0.9908 MB / 355.6 MB, free: 8.734 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002645/0.1427, allocations: 227.3 kB / 355.8 MB, free: 8.512 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002089/0.1429, allocations: 173.3 kB / 356 MB, free: 8.336 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001611/0.1445, allocations: 1.216 MB / 357.2 MB, free: 7.117 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.1445, allocations: 0 / 357.2 MB, free: 7.117 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.1445, allocations: 0 / 357.2 MB, free: 7.117 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.137e-06/0.1445, allocations: 0 / 357.2 MB, free: 7.117 MB / 302.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.002072/0.1466, allocations: 1.096 MB / 358.3 MB, free: 5.961 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.1467, allocations: 12.03 kB / 358.3 MB, free: 5.949 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001178/0.1468, allocations: 90.52 kB / 358.4 MB, free: 5.852 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003285/0.1471, allocations: 98.95 kB / 358.5 MB, free: 5.754 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008707/0.148, allocations: 0.5503 MB / 359 MB, free: 5.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.9e-05/0.1481, allocations: 92.36 kB / 359.1 MB, free: 5.059 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.026e-05/0.1482, allocations: 51.92 kB / 359.2 MB, free: 5.008 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001152/0.1494, allocations: 0.793 MB / 360 MB, free: 4.168 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.1494, allocations: 0 / 360 MB, free: 4.168 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.034e-05/0.1495, allocations: 24 kB / 360 MB, free: 4.145 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.687e-05/0.1496, allocations: 40.97 kB / 360 MB, free: 4.102 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001016/0.1506, allocations: 0.6869 MB / 360.7 MB, free: 3.418 MB / 302.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004536/0.1551, allocations: 3.471 MB / 364.2 MB, free: 15.72 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006294/0.1558, allocations: 434.8 kB / 364.6 MB, free: 15.29 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001628/0.1574, allocations: 1.35 MB / 366 MB, free: 13.8 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005018/0.1579, allocations: 357.1 kB / 366.3 MB, free: 13.42 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 2.013e-06/0.1579, allocations: 0 / 366.3 MB, free: 13.42 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.003474/0.1614, allocations: 1.865 MB / 368.2 MB, free: 11.44 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001153/0.1616, allocations: 269 kB / 368.5 MB, free: 11.12 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009115/0.1625, allocations: 0.77 MB / 369.2 MB, free: 10.34 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.469e-05/0.1625, allocations: 37.7 kB / 369.3 MB, free: 10.3 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002865/0.1628, allocations: 399.1 kB / 369.6 MB, free: 9.898 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/0.1629, allocations: 134.2 kB / 369.8 MB, free: 9.766 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.521e-05/0.163, allocations: 16 kB / 369.8 MB, free: 9.75 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.1632, allocations: 390.7 kB / 370.2 MB, free: 9.359 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000381/0.1635, allocations: 249.5 kB / 370.4 MB, free: 9.113 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005454/0.1641, allocations: 0.4919 MB / 370.9 MB, free: 8.516 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004826/0.1646, allocations: 348.4 kB / 371.3 MB, free: 8.164 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-06/0.1646, allocations: 0 / 371.3 MB, free: 8.164 MB / 318.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001562/0.1662, allocations: 0.9488 MB / 372.2 MB, free: 7.199 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001006/0.1672, allocations: 2.559 MB / 374.8 MB, free: 4.434 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.1672, allocations: 8 kB / 374.8 MB, free: 4.426 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005825/0.1678, allocations: 132.8 kB / 374.9 MB, free: 4.293 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005037/0.1683, allocations: 135.8 kB / 375 MB, free: 4.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005934/0.1689, allocations: 0.6888 MB / 375.7 MB, free: 3.445 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006304/0.1696, allocations: 48.05 kB / 375.8 MB, free: 3.398 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.054e-05/0.1697, allocations: 31.98 kB / 375.8 MB, free: 3.367 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.566e-06/0.1697, allocations: 4 kB / 375.8 MB, free: 3.363 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001415/0.1711, allocations: 0.8579 MB / 376.7 MB, free: 2.496 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.192e-05/0.1711, allocations: 12 kB / 376.7 MB, free: 2.484 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003856/0.1715, allocations: 117.5 kB / 376.8 MB, free: 2.367 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004645/0.172, allocations: 139.8 kB / 376.9 MB, free: 2.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000528/0.1725, allocations: 0.6693 MB / 377.6 MB, free: 1.535 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005811/0.1731, allocations: 39.98 kB / 377.6 MB, free: 1.496 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.765e-05/0.1732, allocations: 35.98 kB / 377.7 MB, free: 1.461 MB / 318.1 MB Warning: Assuming fixed start value for the following 2 variables: 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" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank.level:VARIABLE(start = tank.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 77 * 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.0006152/0.1738, allocations: 395.5 kB / 378.1 MB, free: 1.059 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001202/0.1739, allocations: 83.06 kB / 378.1 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001256/0.1752, allocations: 0.7018 MB / 378.8 MB, free: 260 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/0.1752, allocations: 7.938 kB / 378.8 MB, free: 252 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.1752, allocations: 3.938 kB / 378.8 MB, free: 248 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.1752, allocations: 3.984 kB / 378.9 MB, free: 244 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1985/0.3737, allocations: 1.386 MB / 380.2 MB, free: 53.56 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/0.3738, allocations: 3.062 kB / 380.2 MB, free: 53.56 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003076/0.3741, allocations: 59.77 kB / 380.3 MB, free: 53.56 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005105/0.3746, allocations: 131 kB / 380.4 MB, free: 53.55 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.537e-05/0.3746, allocations: 11.19 kB / 380.4 MB, free: 53.55 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004902/0.3751, allocations: 0.6596 MB / 381.1 MB, free: 53.04 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.3751, allocations: 0 / 381.1 MB, free: 53.04 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001815/0.377, allocations: 1.037 MB / 382.1 MB, free: 52.84 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000247/0.3772, allocations: 159.2 kB / 382.3 MB, free: 52.74 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001278/0.3774, allocations: 18.36 kB / 382.3 MB, free: 52.74 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004544/0.3778, allocations: 35.36 kB / 382.3 MB, free: 52.74 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001191/0.378, allocations: 36.59 kB / 382.4 MB, free: 52.74 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.565e-05/0.378, allocations: 20.72 kB / 382.4 MB, free: 52.74 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006845/0.3787, allocations: 0.5325 MB / 382.9 MB, free: 52.65 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.3787, allocations: 3.281 kB / 382.9 MB, free: 52.65 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001624/0.3803, allocations: 0.5292 MB / 383.5 MB, free: 52.65 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.level,tank.medium.T) * 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) * Number of clocked states: 0 () * 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.002808/0.3832, allocations: 1.981 MB / 385.4 MB, free: 51.69 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00226/0.3854, allocations: 1.176 MB / 386.6 MB, free: 51.25 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/0.3855, allocations: 1.25 kB / 386.6 MB, free: 51.25 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006357/0.3861, allocations: 354.2 kB / 387 MB, free: 51.1 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001549/0.3877, allocations: 305.8 kB / 387.3 MB, free: 51.04 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004145/0.3918, allocations: 6.701 MB / 394 MB, free: 45.39 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005629/0.3924, allocations: 0.9812 MB / 394.9 MB, free: 44.67 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.00103/0.3934, allocations: 254 kB / 395.2 MB, free: 44.63 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003156/0.3938, allocations: 255.4 kB / 395.4 MB, free: 44.45 MB / 318.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3938, allocations: 1.312 kB / 395.4 MB, free: 44.45 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04039/0.4342, allocations: 24.43 MB / 419.9 MB, free: 24.6 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001357/0.4343, allocations: 251.2 kB / 420.1 MB, free: 24.26 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.341/2.775, allocations: 0 / 420.1 MB, free: 24.26 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1) Environment - environmentSimulation: