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.001164/0.001164, allocations: 87.08 kB / 16.65 MB, free: 6.535 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.001416/0.001416, allocations: 174.6 kB / 17.56 MB, free: 6.184 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.326/1.326, allocations: 223.3 MB / 241.6 MB, free: 104 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002671/0.0002671, allocations: 8 kB / 301.5 MB, free: 6.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09285/0.09314, allocations: 50.41 MB / 351.9 MB, free: 3.605 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank): time 0.02189/0.1151, allocations: 17.45 MB / 369.4 MB, free: 2.078 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.186/0.3011, allocations: 6.84 MB / 376.2 MB, free: 8.449 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009301/0.3021, allocations: 32 kB / 376.3 MB, free: 8.445 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009961/0.3031, allocations: 334.3 kB / 376.6 MB, free: 8.438 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002683/0.3058, allocations: 0.9568 MB / 377.5 MB, free: 8.387 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005061/0.3108, allocations: 1.593 MB / 379.1 MB, free: 8.254 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00435/0.3152, allocations: 2.88 MB / 382 MB, free: 7.965 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009863/0.3162, allocations: 450.3 kB / 382.5 MB, free: 7.906 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001451/0.3177, allocations: 0.6598 MB / 383.1 MB, free: 7.824 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001374/0.3191, allocations: 0.754 MB / 383.9 MB, free: 7.699 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001418/0.3192, allocations: 33.66 kB / 383.9 MB, free: 7.699 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002499/0.3217, allocations: 1.094 MB / 385 MB, free: 7.656 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002799/0.322, allocations: 239 kB / 385.2 MB, free: 7.625 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000457/0.3225, allocations: 423.7 kB / 385.6 MB, free: 7.469 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002072/0.3246, allocations: 1.666 MB / 387.3 MB, free: 7.152 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.3246, allocations: 0 / 387.3 MB, free: 7.152 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.3246, allocations: 0 / 387.3 MB, free: 7.152 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.888e-06/0.3246, allocations: 0 / 387.3 MB, free: 7.152 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.001935/0.3265, allocations: 1.095 MB / 388.4 MB, free: 6.324 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.3266, allocations: 8.625 kB / 388.4 MB, free: 6.324 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001283/0.3267, allocations: 95.91 kB / 388.5 MB, free: 6.273 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003241/0.3271, allocations: 103.9 kB / 388.6 MB, free: 6.227 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007517/0.3278, allocations: 0.5674 MB / 389.2 MB, free: 5.836 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.753e-05/0.3279, allocations: 100 kB / 389.3 MB, free: 5.766 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.503e-05/0.328, allocations: 46.72 kB / 389.3 MB, free: 5.766 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00113/0.3291, allocations: 0.8007 MB / 390.1 MB, free: 5.473 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.15e-05/0.3292, allocations: 5.625 kB / 390.1 MB, free: 5.469 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.767e-05/0.3292, allocations: 20.97 kB / 390.1 MB, free: 5.469 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.708e-05/0.3293, allocations: 38.11 kB / 390.2 MB, free: 5.465 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001015/0.3303, allocations: 0.6823 MB / 390.9 MB, free: 5.34 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.003869/0.3342, allocations: 3.439 MB / 394.3 MB, free: 2.453 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006287/0.3349, allocations: 421.9 kB / 394.7 MB, free: 2.23 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003659/0.3352, allocations: 261 kB / 395 MB, free: 2.098 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001362/0.3366, allocations: 1.336 MB / 396.3 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004566/0.3371, allocations: 359.5 kB / 396.7 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of pre-optimization done (n=35): time 2.054e-06/0.3371, allocations: 0 / 396.7 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.004059/0.3412, allocations: 1.791 MB / 398.5 MB, free: 15.47 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001817/0.3414, allocations: 266.3 kB / 398.7 MB, free: 15.16 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00112/0.3425, allocations: 0.7739 MB / 399.5 MB, free: 14.72 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.602e-05/0.3426, allocations: 39.86 kB / 399.5 MB, free: 14.68 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003584/0.3429, allocations: 405.3 kB / 399.9 MB, free: 14.33 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000128/0.3431, allocations: 134.5 kB / 400.1 MB, free: 14.22 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001181/0.3432, allocations: 66.98 kB / 400.1 MB, free: 14.17 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001828/0.3434, allocations: 387.2 kB / 400.5 MB, free: 13.8 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004058/0.3438, allocations: 256.3 kB / 400.7 MB, free: 13.69 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006087/0.3444, allocations: 0.5054 MB / 401.3 MB, free: 13.24 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006584/0.351, allocations: 1.847 MB / 403.1 MB, free: 12.18 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.351, allocations: 0 / 403.1 MB, free: 12.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.00176/0.3528, allocations: 0.9542 MB / 404.1 MB, free: 11.64 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002369/0.3531, allocations: 315.1 kB / 404.4 MB, free: 11.24 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.572e-05/0.3531, allocations: 8 kB / 404.4 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005223/0.3536, allocations: 136.7 kB / 404.5 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004882/0.3541, allocations: 147.7 kB / 404.6 MB, free: 10.95 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006515/0.3548, allocations: 0.685 MB / 405.3 MB, free: 10.24 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008074/0.3556, allocations: 39.97 kB / 405.4 MB, free: 10.2 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.948e-05/0.3557, allocations: 36.06 kB / 405.4 MB, free: 10.16 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.348e-06/0.3557, allocations: 10.66 kB / 405.4 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001607/0.3573, allocations: 0.8777 MB / 406.3 MB, free: 9.266 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.539e-05/0.3573, allocations: 4 kB / 406.3 MB, free: 9.262 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003964/0.3577, allocations: 129.1 kB / 406.4 MB, free: 9.133 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004666/0.3582, allocations: 131.8 kB / 406.6 MB, free: 9.004 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005497/0.3588, allocations: 0.6693 MB / 407.2 MB, free: 8.309 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007243/0.3595, allocations: 47.98 kB / 407.3 MB, free: 8.262 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.45e-05/0.3596, allocations: 35.98 kB / 407.3 MB, free: 8.227 MB / 318.1 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" fixed = true 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" fixed = true 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: 29 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.tank.aboveLevel[1],timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,tank.aboveLevel[1],tank.ports_m_flow_out[1],$PRE.tank.ports_m_flow_out[1],$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0006171/0.3602, allocations: 387.2 kB / 407.7 MB, free: 7.836 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001931/0.3604, allocations: 86.91 kB / 407.8 MB, free: 7.75 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001324/0.3617, allocations: 0.6996 MB / 408.5 MB, free: 7.035 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-06/0.3618, allocations: 4 kB / 408.5 MB, free: 7.031 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.3618, allocations: 0 / 408.5 MB, free: 7.031 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.3618, allocations: 0 / 408.5 MB, free: 7.031 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002331/0.3641, allocations: 1.394 MB / 409.9 MB, free: 5.578 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/0.3641, allocations: 0 / 409.9 MB, free: 5.578 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002948/0.3644, allocations: 63.94 kB / 409.9 MB, free: 5.516 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004601/0.3649, allocations: 128.8 kB / 410.1 MB, free: 5.387 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.862e-05/0.365, allocations: 16 kB / 410.1 MB, free: 5.371 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005691/0.3655, allocations: 0.6615 MB / 410.7 MB, free: 4.684 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.3656, allocations: 0 / 410.7 MB, free: 4.684 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001484/0.367, allocations: 1.029 MB / 411.8 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002872/0.3673, allocations: 160.3 kB / 411.9 MB, free: 3.449 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001902/0.3675, allocations: 19.92 kB / 411.9 MB, free: 3.43 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005438/0.3681, allocations: 31.98 kB / 412 MB, free: 3.398 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.3682, allocations: 35.94 kB / 412 MB, free: 3.363 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.567e-05/0.3683, allocations: 16 kB / 412 MB, free: 3.348 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007613/0.369, allocations: 0.5381 MB / 412.6 MB, free: 2.816 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.369, allocations: 4 kB / 412.6 MB, free: 2.812 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002156/0.3712, allocations: 0.531 MB / 413.1 MB, free: 2.281 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003254/0.3745, allocations: 1.906 MB / 415 MB, free: 372 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0024/0.3769, allocations: 1.202 MB / 416.2 MB, free: 15.15 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.3769, allocations: 4.062 kB / 416.2 MB, free: 15.15 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006293/0.3775, allocations: 352.1 kB / 416.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001844/0.3794, allocations: 318.4 kB / 416.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01222/0.3916, allocations: 7.723 MB / 424.6 MB, free: 6.434 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007007/0.3924, allocations: 0.9676 MB / 425.5 MB, free: 5.441 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0009808/0.3934, allocations: 253.9 kB / 425.8 MB, free: 5.191 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003903/0.3938, allocations: 259.3 kB / 426 MB, free: 4.938 MB / 334.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3938, allocations: 0 / 426 MB, free: 4.938 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6177/1.012, allocations: 25.18 MB / 451.2 MB, free: 12.08 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002896/1.012, allocations: 285.1 kB / 451.5 MB, free: 11.7 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.529/3.541, allocations: 0 / 451.5 MB, free: 11.7 MB / 366.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/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)