Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0009792/0.0009792, allocations: 99.31 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001105/0.001105, allocations: 199.6 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002277/0.0002277, allocations: 4 kB / 306.7 MB, free: 1.277 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1189, allocations: 51.49 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank): time 0.2522/0.3711, allocations: 15.08 MB / 373.3 MB, free: 9.117 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01043/0.3816, allocations: 5.945 MB / 379.2 MB, free: 9.004 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009678/0.3826, allocations: 24.19 kB / 379.3 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001126/0.3837, allocations: 336.6 kB / 379.6 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003293/0.387, allocations: 0.8306 MB / 380.4 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005918/0.393, allocations: 1.459 MB / 381.9 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003542/0.3965, allocations: 1.09 MB / 383 MB, free: 8.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001161/0.3977, allocations: 434.4 kB / 383.4 MB, free: 8.691 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001828/0.3995, allocations: 0.6112 MB / 384 MB, free: 8.605 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000996/0.4006, allocations: 499.3 kB / 384.5 MB, free: 8.523 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.925e-05/0.4007, allocations: 33.41 kB / 384.5 MB, free: 8.523 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003287/0.404, allocations: 1.01 MB / 385.5 MB, free: 8.316 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003912/0.4044, allocations: 219.6 kB / 385.7 MB, free: 8.246 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003505/0.4047, allocations: 176.6 kB / 385.9 MB, free: 8.145 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002958/0.4077, allocations: 1.229 MB / 387.1 MB, free: 7.941 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.4077, allocations: 1.125 kB / 387.1 MB, free: 7.941 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4077, allocations: 0 / 387.1 MB, free: 7.941 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.962e-05/0.4078, allocations: 0 / 387.1 MB, free: 7.941 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.00295/0.4107, allocations: 1.101 MB / 388.2 MB, free: 7.152 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.4108, allocations: 9.531 kB / 388.3 MB, free: 7.152 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001575/0.4109, allocations: 93.61 kB / 388.3 MB, free: 7.086 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003797/0.4113, allocations: 107.2 kB / 388.5 MB, free: 7.035 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009812/0.4123, allocations: 0.5494 MB / 389 MB, free: 6.676 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.12e-05/0.4124, allocations: 98.23 kB / 389.1 MB, free: 6.594 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.686e-05/0.4125, allocations: 49.86 kB / 389.1 MB, free: 6.578 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001405/0.4139, allocations: 0.7909 MB / 389.9 MB, free: 6.207 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.526e-05/0.414, allocations: 5.125 kB / 389.9 MB, free: 6.203 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.785e-05/0.414, allocations: 23.45 kB / 390 MB, free: 6.191 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.702e-05/0.4141, allocations: 41.53 kB / 390 MB, free: 6.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001221/0.4154, allocations: 0.6782 MB / 390.7 MB, free: 5.852 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.004526/0.4199, allocations: 3.482 MB / 394.2 MB, free: 2.828 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006666/0.4206, allocations: 423.2 kB / 394.6 MB, free: 2.605 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001662/0.4222, allocations: 1.348 MB / 395.9 MB, free: 1.348 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005027/0.4228, allocations: 361.2 kB / 396.3 MB, free: 1.082 MB / 302.1 MB Notification: Performance of pre-optimization done (n=35): time 2.164e-06/0.4228, allocations: 0 / 396.3 MB, free: 1.082 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003952/0.4267, allocations: 1.851 MB / 398.1 MB, free: 15.87 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00016/0.4269, allocations: 278.7 kB / 398.4 MB, free: 15.54 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001175/0.4281, allocations: 0.769 MB / 399.2 MB, free: 15.1 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.655e-05/0.4282, allocations: 39.2 kB / 399.2 MB, free: 15.06 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003075/0.4285, allocations: 404.4 kB / 399.6 MB, free: 14.71 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001254/0.4286, allocations: 134.6 kB / 399.7 MB, free: 14.6 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.588e-05/0.4287, allocations: 11.53 kB / 399.7 MB, free: 14.59 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.4289, allocations: 390.2 kB / 400.1 MB, free: 14.23 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004048/0.4293, allocations: 249.2 kB / 400.4 MB, free: 14.11 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005956/0.4299, allocations: 0.4987 MB / 400.9 MB, free: 13.67 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005207/0.4304, allocations: 334.7 kB / 401.2 MB, free: 13.49 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.4304, allocations: 1.938 kB / 401.2 MB, free: 13.49 MB / 318.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001784/0.4322, allocations: 0.9486 MB / 402.1 MB, free: 13 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001048/0.4333, allocations: 2.563 MB / 404.7 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/0.4333, allocations: 9.062 kB / 404.7 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005969/0.4339, allocations: 131.6 kB / 404.8 MB, free: 10.19 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005015/0.4344, allocations: 138 kB / 405 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006153/0.435, allocations: 0.6824 MB / 405.7 MB, free: 9.539 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007776/0.4358, allocations: 48.41 kB / 405.7 MB, free: 9.516 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.576e-05/0.4359, allocations: 32.25 kB / 405.7 MB, free: 9.512 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.628e-06/0.4359, allocations: 2.156 kB / 405.7 MB, free: 9.512 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001454/0.4374, allocations: 0.8653 MB / 406.6 MB, free: 9.086 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.4374, allocations: 6.531 kB / 406.6 MB, free: 9.086 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000404/0.4378, allocations: 127.2 kB / 406.7 MB, free: 9.027 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004714/0.4383, allocations: 137 kB / 406.9 MB, free: 9 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005413/0.4389, allocations: 0.6627 MB / 407.5 MB, free: 8.387 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007058/0.4396, allocations: 47.12 kB / 407.6 MB, free: 8.367 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.517e-05/0.4396, allocations: 31.53 kB / 407.6 MB, free: 8.359 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.0006428/0.4403, allocations: 395.8 kB / 408 MB, free: 8.035 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001245/0.4404, allocations: 79.25 kB / 408.1 MB, free: 7.996 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001239/0.4417, allocations: 0.7024 MB / 408.8 MB, free: 7.594 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.632e-06/0.4417, allocations: 4.969 kB / 408.8 MB, free: 7.594 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.4417, allocations: 0 / 408.8 MB, free: 7.594 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.4417, allocations: 3.984 kB / 408.8 MB, free: 7.59 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002175/0.4439, allocations: 1.401 MB / 410.2 MB, free: 6.562 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.4439, allocations: 4.031 kB / 410.2 MB, free: 6.559 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003012/0.4442, allocations: 63.91 kB / 410.3 MB, free: 6.496 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004759/0.4447, allocations: 116.8 kB / 410.4 MB, free: 6.379 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.6e-05/0.4447, allocations: 19.98 kB / 410.4 MB, free: 6.359 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005361/0.4453, allocations: 0.6655 MB / 411.1 MB, free: 5.668 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.4453, allocations: 0 / 411.1 MB, free: 5.668 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001353/0.4467, allocations: 1.03 MB / 412.1 MB, free: 4.605 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002857/0.447, allocations: 156.1 kB / 412.2 MB, free: 4.434 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001314/0.4471, allocations: 19.98 kB / 412.3 MB, free: 4.414 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004568/0.4476, allocations: 27.98 kB / 412.3 MB, free: 4.387 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/0.4477, allocations: 47.88 kB / 412.3 MB, free: 4.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.674e-05/0.4477, allocations: 16.73 kB / 412.3 MB, free: 4.324 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006659/0.4484, allocations: 0.5381 MB / 412.9 MB, free: 3.793 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4484, allocations: 3.938 kB / 412.9 MB, free: 3.789 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001844/0.4503, allocations: 0.5349 MB / 413.4 MB, free: 3.254 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.002781/0.453, allocations: 1.98 MB / 415.4 MB, free: 1.262 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002144/0.4552, allocations: 1.182 MB / 416.6 MB, free: 60 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.4552, allocations: 4.125 kB / 416.6 MB, free: 56 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005974/0.4558, allocations: 348.2 kB / 416.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001505/0.4573, allocations: 312.4 kB / 417.2 MB, free: 15.4 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005141/0.4625, allocations: 6.695 MB / 423.9 MB, free: 8.527 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000611/0.4631, allocations: 0.9839 MB / 424.9 MB, free: 7.52 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0009201/0.4641, allocations: 253.9 kB / 425.2 MB, free: 7.27 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003404/0.4644, allocations: 259.3 kB / 425.4 MB, free: 7.016 MB / 334.1 MB Notification: Performance of SimCode: time 4.128e-06/0.4644, allocations: 0 / 425.4 MB, free: 7.016 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04722/0.5116, allocations: 24.51 MB / 449.9 MB, free: 14.75 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000189/0.5119, allocations: 248.8 kB / 450.2 MB, free: 14.42 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.352/2.864, allocations: 0 / 450.2 MB, free: 14.42 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank.fmu > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1)