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.0008541/0.000854, allocations: 92.83 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000988/0.0009879, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.195/1.195, allocations: 227.7 MB / 246.8 MB, free: 11.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001972/0.0001972, allocations: 8 kB / 307.8 MB, free: 0.707 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07806/0.07827, allocations: 51.53 MB / 359.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank): time 0.1605/0.2388, allocations: 17.56 MB / 376.9 MB, free: 8.523 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007773/0.2466, allocations: 6.885 MB / 383.8 MB, free: 8.059 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005575/0.2472, allocations: 23.12 kB / 383.8 MB, free: 8.047 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007448/0.2479, allocations: 342.9 kB / 384.2 MB, free: 7.965 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001932/0.2499, allocations: 0.9557 MB / 385.1 MB, free: 7.613 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003865/0.2537, allocations: 1.595 MB / 386.7 MB, free: 7.273 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00298/0.2567, allocations: 2.88 MB / 389.6 MB, free: 6.523 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005843/0.2573, allocations: 449.7 kB / 390 MB, free: 6.367 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009434/0.2583, allocations: 0.6708 MB / 390.7 MB, free: 6.121 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008231/0.2591, allocations: 0.7448 MB / 391.4 MB, free: 5.875 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.711e-05/0.2592, allocations: 37.03 kB / 391.5 MB, free: 5.871 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001939/0.2611, allocations: 1.119 MB / 392.6 MB, free: 5.492 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002115/0.2614, allocations: 235.8 kB / 392.8 MB, free: 5.344 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003348/0.2617, allocations: 423.7 kB / 393.2 MB, free: 5.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001531/0.2633, allocations: 1.675 MB / 394.9 MB, free: 3.996 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.2633, allocations: 3.938 kB / 394.9 MB, free: 3.992 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2633, allocations: 0.9688 kB / 394.9 MB, free: 3.992 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.416e-06/0.2633, allocations: 4 kB / 394.9 MB, free: 3.988 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.001659/0.2649, allocations: 1.096 MB / 396 MB, free: 3.094 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.265, allocations: 9.719 kB / 396 MB, free: 3.094 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001047/0.2651, allocations: 103.2 kB / 396.1 MB, free: 3.004 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002979/0.2654, allocations: 98.92 kB / 396.2 MB, free: 2.957 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006212/0.266, allocations: 0.5648 MB / 396.8 MB, free: 2.484 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.517e-05/0.2661, allocations: 95.39 kB / 396.9 MB, free: 2.402 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.64e-05/0.2662, allocations: 47.62 kB / 396.9 MB, free: 2.387 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009968/0.2672, allocations: 0.8004 MB / 397.7 MB, free: 1.867 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.7e-05/0.2672, allocations: 1.375 kB / 397.7 MB, free: 1.867 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.516e-05/0.2673, allocations: 26.86 kB / 397.8 MB, free: 1.848 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.256e-05/0.2674, allocations: 45.78 kB / 397.8 MB, free: 1.828 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009318/0.2683, allocations: 0.6769 MB / 398.5 MB, free: 1.5 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.003819/0.2721, allocations: 3.443 MB / 401.9 MB, free: 14.49 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006048/0.2727, allocations: 420.7 kB / 402.3 MB, free: 14.27 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003281/0.2731, allocations: 254.2 kB / 402.6 MB, free: 14.15 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001438/0.2745, allocations: 1.351 MB / 403.9 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004455/0.275, allocations: 359 kB / 404.3 MB, free: 12.62 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 1.944e-06/0.275, allocations: 0 / 404.3 MB, free: 12.62 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.003217/0.2782, allocations: 1.787 MB / 406.1 MB, free: 11.49 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/0.2783, allocations: 267.7 kB / 406.3 MB, free: 11.18 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008357/0.2792, allocations: 0.7762 MB / 407.1 MB, free: 10.73 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.245e-05/0.2792, allocations: 35.86 kB / 407.1 MB, free: 10.7 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002732/0.2795, allocations: 400.6 kB / 407.5 MB, free: 10.35 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001192/0.2796, allocations: 137.6 kB / 407.7 MB, free: 10.23 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.07e-05/0.2797, allocations: 69.12 kB / 407.7 MB, free: 10.18 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.2799, allocations: 387.1 kB / 408.1 MB, free: 9.812 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004035/0.2803, allocations: 253 kB / 408.4 MB, free: 9.699 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005479/0.2809, allocations: 0.5118 MB / 408.9 MB, free: 9.141 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006584/0.2875, allocations: 1.883 MB / 410.8 MB, free: 7.141 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.788e-06/0.2875, allocations: 4 kB / 410.8 MB, free: 7.137 MB / 318.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001542/0.289, allocations: 0.9522 MB / 411.7 MB, free: 6.164 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001817/0.2892, allocations: 309.6 kB / 412 MB, free: 5.766 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/0.2892, allocations: 15.88 kB / 412 MB, free: 5.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004738/0.2897, allocations: 144.7 kB / 412.2 MB, free: 5.605 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004568/0.2902, allocations: 131.8 kB / 412.3 MB, free: 5.477 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005584/0.2908, allocations: 0.681 MB / 413 MB, free: 4.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006186/0.2914, allocations: 51.88 kB / 413 MB, free: 4.719 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.881e-05/0.2915, allocations: 36.06 kB / 413.1 MB, free: 4.684 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.965e-06/0.2915, allocations: 4 kB / 413.1 MB, free: 4.68 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001487/0.293, allocations: 0.8854 MB / 414 MB, free: 3.781 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.293, allocations: 7.984 kB / 414 MB, free: 3.773 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000357/0.2934, allocations: 121.3 kB / 414.1 MB, free: 3.652 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004398/0.2938, allocations: 139.8 kB / 414.2 MB, free: 3.516 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004804/0.2943, allocations: 0.6616 MB / 414.9 MB, free: 2.828 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005305/0.2948, allocations: 47.88 kB / 414.9 MB, free: 2.781 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.324e-05/0.2949, allocations: 28.97 kB / 415 MB, free: 2.754 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.0004685/0.2954, allocations: 406 kB / 415.4 MB, free: 2.344 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001132/0.2955, allocations: 83 kB / 415.4 MB, free: 2.262 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001164/0.2967, allocations: 0.6989 MB / 416.1 MB, free: 1.543 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.2967, allocations: 4 kB / 416.1 MB, free: 1.539 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.2967, allocations: 0 / 416.1 MB, free: 1.539 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.2967, allocations: 0 / 416.1 MB, free: 1.539 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00189/0.2986, allocations: 1.391 MB / 417.5 MB, free: 80 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.2986, allocations: 4.031 kB / 417.5 MB, free: 76 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002675/0.2989, allocations: 55.97 kB / 417.6 MB, free: 20 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004362/0.2993, allocations: 136.7 kB / 417.7 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.473e-05/0.2994, allocations: 12 kB / 417.7 MB, free: 15.87 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004883/0.2999, allocations: 0.6615 MB / 418.4 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.2999, allocations: 32 / 418.4 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001291/0.3012, allocations: 1.029 MB / 419.4 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001792/0.3014, allocations: 152.2 kB / 419.6 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001207/0.3015, allocations: 23.92 kB / 419.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004428/0.3019, allocations: 35.89 kB / 419.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.708e-05/0.302, allocations: 35.89 kB / 419.7 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.288e-05/0.3021, allocations: 19.98 kB / 419.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006101/0.3027, allocations: 0.5459 MB / 420.2 MB, free: 13.3 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3027, allocations: 0 / 420.2 MB, free: 13.3 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001357/0.3041, allocations: 0.531 MB / 420.8 MB, free: 12.77 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 (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.002549/0.3066, allocations: 1.907 MB / 422.7 MB, free: 10.83 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00197/0.3086, allocations: 1.194 MB / 423.9 MB, free: 9.617 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.3086, allocations: 0 / 423.9 MB, free: 9.617 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005647/0.3092, allocations: 363.1 kB / 424.2 MB, free: 9.25 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001533/0.3108, allocations: 331.9 kB / 424.5 MB, free: 8.934 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009748/0.3205, allocations: 7.726 MB / 432.3 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004875/0.321, allocations: 0.9699 MB / 433.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008065/0.3218, allocations: 246 kB / 433.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003368/0.3222, allocations: 259.4 kB / 433.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of SimCode: time 9.01e-07/0.3222, allocations: 0 / 433.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04187/0.3641, allocations: 25.24 MB / 459 MB, free: 6.395 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002425/0.3643, allocations: 272.6 kB / 459.2 MB, free: 6.039 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.239/2.603, allocations: 0 / 459.2 MB, free: 6.039 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/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)