Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,fileNamePrefix="Modelica_4_0_0_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.001195/0.001195, allocations: 94.11 kB / 16.3 MB, free: 5.996 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.001195/0.001195, allocations: 179.4 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 223.2 MB / 241.1 MB, free: 5.445 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002564/0.0002566, allocations: 7.109 kB / 300.8 MB, free: 5.914 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1037, allocations: 50.43 MB / 351.2 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank): time 0.01443/0.1181, allocations: 15.05 MB / 366.3 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008267/0.1265, allocations: 5.908 MB / 372.2 MB, free: 6.594 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008537/0.1274, allocations: 27.81 kB / 372.2 MB, free: 6.566 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009491/0.1283, allocations: 342.4 kB / 372.6 MB, free: 6.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002263/0.1306, allocations: 0.818 MB / 373.4 MB, free: 5.41 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003616/0.1342, allocations: 1.457 MB / 374.8 MB, free: 3.965 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001603/0.1358, allocations: 1.097 MB / 375.9 MB, free: 2.863 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005956/0.1364, allocations: 429.2 kB / 376.3 MB, free: 2.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000921/0.1374, allocations: 0.6076 MB / 377 MB, free: 1.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006199/0.138, allocations: 498.3 kB / 377.4 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.776e-05/0.1381, allocations: 32 kB / 377.5 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001673/0.1398, allocations: 0.9986 MB / 378.5 MB, free: 308 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002258/0.14, allocations: 219.4 kB / 378.7 MB, free: 88 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001883/0.1402, allocations: 173.3 kB / 378.9 MB, free: 15.91 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001348/0.1416, allocations: 1.224 MB / 380.1 MB, free: 14.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.1416, allocations: 0 / 380.1 MB, free: 14.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1416, allocations: 0 / 380.1 MB, free: 14.68 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.287e-06/0.1416, allocations: 4 kB / 380.1 MB, free: 14.68 MB / 318.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.00195/0.1436, allocations: 1.1 MB / 381.2 MB, free: 13.52 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.1436, allocations: 8.031 kB / 381.2 MB, free: 13.51 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001327/0.1438, allocations: 98.5 kB / 381.3 MB, free: 13.41 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003284/0.1441, allocations: 102.9 kB / 381.4 MB, free: 13.3 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008549/0.145, allocations: 0.5425 MB / 381.9 MB, free: 12.72 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.438e-05/0.145, allocations: 96.39 kB / 382 MB, free: 12.61 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.432e-05/0.1451, allocations: 44 kB / 382.1 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001157/0.1463, allocations: 0.793 MB / 382.9 MB, free: 11.73 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.976e-05/0.1463, allocations: 7.984 kB / 382.9 MB, free: 11.72 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.881e-05/0.1464, allocations: 23.92 kB / 382.9 MB, free: 11.7 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.173e-05/0.1465, allocations: 48.92 kB / 382.9 MB, free: 11.65 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001075/0.1475, allocations: 0.6713 MB / 383.6 MB, free: 10.98 MB / 318.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.004552/0.1521, allocations: 3.479 MB / 387.1 MB, free: 7.273 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006483/0.1528, allocations: 413.4 kB / 387.5 MB, free: 6.863 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001686/0.1545, allocations: 1.374 MB / 388.9 MB, free: 5.352 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005049/0.155, allocations: 345.2 kB / 389.2 MB, free: 4.98 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 2.304e-06/0.155, allocations: 0 / 389.2 MB, free: 4.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.003527/0.1585, allocations: 1.862 MB / 391.1 MB, free: 3.008 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001233/0.1587, allocations: 272.9 kB / 391.3 MB, free: 2.68 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009207/0.1596, allocations: 0.7701 MB / 392.1 MB, free: 1.902 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.92e-05/0.1597, allocations: 37.7 kB / 392.1 MB, free: 1.859 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003066/0.16, allocations: 407 kB / 392.5 MB, free: 1.457 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000152/0.1602, allocations: 130.2 kB / 392.7 MB, free: 1.328 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.615e-05/0.1602, allocations: 12 kB / 392.7 MB, free: 1.316 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001719/0.1604, allocations: 394.7 kB / 393.1 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003822/0.1608, allocations: 253.5 kB / 393.3 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005583/0.1613, allocations: 0.492 MB / 393.8 MB, free: 76 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004914/0.1618, allocations: 340.4 kB / 394.1 MB, free: 15.74 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.1618, allocations: 4 kB / 394.1 MB, free: 15.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001538/0.1634, allocations: 0.9372 MB / 395.1 MB, free: 14.79 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008707/0.1643, allocations: 2.579 MB / 397.7 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/0.1643, allocations: 4 kB / 397.7 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005545/0.1649, allocations: 132.7 kB / 397.8 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004992/0.1654, allocations: 151.7 kB / 397.9 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005974/0.166, allocations: 0.6733 MB / 398.6 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006221/0.1666, allocations: 39.97 kB / 398.6 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.398e-05/0.1667, allocations: 44.05 kB / 398.7 MB, free: 10.93 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.128e-06/0.1667, allocations: 4 kB / 398.7 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00143/0.1681, allocations: 0.8581 MB / 399.6 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.1682, allocations: 4 kB / 399.6 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003968/0.1686, allocations: 125.1 kB / 399.7 MB, free: 9.938 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004642/0.169, allocations: 135.8 kB / 399.8 MB, free: 9.805 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005132/0.1696, allocations: 0.6616 MB / 400.5 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000561/0.1701, allocations: 44.05 kB / 400.5 MB, free: 9.074 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.39e-05/0.1702, allocations: 39.92 kB / 400.6 MB, free: 9.035 MB / 334.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.0005992/0.1708, allocations: 399.2 kB / 400.9 MB, free: 8.629 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001128/0.1709, allocations: 79.06 kB / 401 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001247/0.1722, allocations: 0.6826 MB / 401.7 MB, free: 7.848 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.547e-05/0.1722, allocations: 4 kB / 401.7 MB, free: 7.844 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.1722, allocations: 4 kB / 401.7 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.989e-06/0.1722, allocations: 7.984 kB / 401.7 MB, free: 7.832 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001962/0.1742, allocations: 1.395 MB / 403.1 MB, free: 6.367 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.1742, allocations: 0 / 403.1 MB, free: 6.367 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000294/0.1745, allocations: 63.94 kB / 403.2 MB, free: 6.305 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004589/0.175, allocations: 132.7 kB / 403.3 MB, free: 6.172 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.319e-05/0.175, allocations: 12 kB / 403.3 MB, free: 6.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005205/0.1756, allocations: 0.6655 MB / 404 MB, free: 5.469 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.1756, allocations: 0 / 404 MB, free: 5.469 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001348/0.1769, allocations: 1.035 MB / 405 MB, free: 4.398 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002003/0.1771, allocations: 168.3 kB / 405.2 MB, free: 4.215 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000117/0.1773, allocations: 12 kB / 405.2 MB, free: 4.203 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004499/0.1777, allocations: 35.97 kB / 405.2 MB, free: 4.168 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.278e-05/0.1778, allocations: 31.95 kB / 405.3 MB, free: 4.137 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.105e-05/0.1779, allocations: 23.92 kB / 405.3 MB, free: 4.113 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006202/0.1785, allocations: 0.5302 MB / 405.8 MB, free: 3.59 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1785, allocations: 4 kB / 405.8 MB, free: 3.586 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001466/0.18, allocations: 0.5271 MB / 406.3 MB, free: 3.059 MB / 334.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.002541/0.1825, allocations: 1.98 MB / 408.3 MB, free: 1.043 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002131/0.1847, allocations: 1.181 MB / 409.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.1847, allocations: 0.9375 kB / 409.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005919/0.1853, allocations: 355.6 kB / 409.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001573/0.1869, allocations: 305 kB / 410.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004789/0.1917, allocations: 6.703 MB / 416.9 MB, free: 8.293 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000537/0.1923, allocations: 0.9816 MB / 417.8 MB, free: 7.285 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001018/0.1933, allocations: 244.5 kB / 418.1 MB, free: 7.047 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003634/0.1937, allocations: 259.3 kB / 418.3 MB, free: 6.793 MB / 350.1 MB Notification: Performance of SimCode: time 1.352e-06/0.1937, allocations: 3.938 kB / 418.3 MB, free: 6.789 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2047/0.3984, allocations: 24.41 MB / 442.7 MB, free: 61.1 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001604/0.3986, allocations: 256.5 kB / 443 MB, free: 60.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.453/2.851, allocations: 4 kB / 443 MB, free: 60.76 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1)