Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.TwoTanks,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001443/0.001443, allocations: 121.5 kB / 17.78 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001774/0.001773, allocations: 199.9 kB / 18.73 MB, free: 4.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.43/1.43, allocations: 227.7 MB / 247.2 MB, free: 10.26 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001986/0.001986, allocations: 71.88 kB / 358.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3053/0.3073, allocations: 50.54 MB / 409.1 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.02001/0.3274, allocations: 17.64 MB / 426.7 MB, free: 15.65 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01052/0.338, allocations: 6.043 MB / 432.8 MB, free: 9.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001205/0.3392, allocations: 23.88 kB / 432.8 MB, free: 9.566 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001141/0.3404, allocations: 325.9 kB / 433.1 MB, free: 9.246 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003098/0.3435, allocations: 1.042 MB / 434.1 MB, free: 8.199 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004225/0.3478, allocations: 1.646 MB / 435.8 MB, free: 6.562 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003128/0.3509, allocations: 1.945 MB / 437.7 MB, free: 4.609 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000925/0.3519, allocations: 485.6 kB / 438.2 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001601/0.3535, allocations: 0.7202 MB / 438.9 MB, free: 3.398 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001365/0.3549, allocations: 0.7318 MB / 439.7 MB, free: 2.664 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001631/0.355, allocations: 68 kB / 439.7 MB, free: 2.598 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002743/0.3578, allocations: 1.154 MB / 440.9 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003376/0.3581, allocations: 251.3 kB / 441.1 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000542/0.3587, allocations: 406.1 kB / 441.5 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003243/0.3619, allocations: 1.729 MB / 443.2 MB, free: 15.06 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.362, allocations: 0 / 443.2 MB, free: 15.06 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.362, allocations: 3.938 kB / 443.3 MB, free: 15.05 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.248e-05/0.362, allocations: 0 / 443.3 MB, free: 15.05 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.00242/0.3644, allocations: 1.202 MB / 444.5 MB, free: 13.8 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.3645, allocations: 8.031 kB / 444.5 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001225/0.3646, allocations: 90.7 kB / 444.6 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002972/0.3649, allocations: 92.41 kB / 444.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009136/0.3658, allocations: 0.5911 MB / 445.2 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.223e-05/0.3659, allocations: 36.98 kB / 445.3 MB, free: 12.94 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.647e-05/0.366, allocations: 47.98 kB / 445.3 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001211/0.3672, allocations: 0.7411 MB / 446.1 MB, free: 12.11 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.006e-05/0.3672, allocations: 0 / 446.1 MB, free: 12.11 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.64e-05/0.3673, allocations: 23.98 kB / 446.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.077e-05/0.3674, allocations: 40.97 kB / 446.1 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001192/0.3686, allocations: 0.6947 MB / 446.8 MB, free: 11.36 MB / 366.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.004554/0.3731, allocations: 3.042 MB / 449.9 MB, free: 8.102 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008398/0.374, allocations: 492.5 kB / 450.3 MB, free: 7.605 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004028/0.3744, allocations: 262 kB / 450.6 MB, free: 7.348 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003091/0.3747, allocations: 345.3 kB / 450.9 MB, free: 6.938 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.866e-05/0.3748, allocations: 43 kB / 451 MB, free: 6.887 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 2.134e-06/0.3748, allocations: 0 / 451 MB, free: 6.887 MB / 366.1 MB Notification: Performance of matching and sorting (n=58): time 0.005583/0.3804, allocations: 2.319 MB / 453.3 MB, free: 4.5 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.361e-05/0.3805, allocations: 85.67 kB / 453.4 MB, free: 4.398 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008044/0.3813, allocations: 0.625 MB / 454 MB, free: 3.762 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.669e-05/0.3814, allocations: 37.7 kB / 454 MB, free: 3.719 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002671/0.3816, allocations: 329.1 kB / 454.4 MB, free: 3.391 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001872/0.3818, allocations: 222.1 kB / 454.6 MB, free: 3.172 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000227/0.3821, allocations: 138.6 kB / 454.7 MB, free: 3.031 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002145/0.3823, allocations: 378.8 kB / 455.1 MB, free: 2.652 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005296/0.3828, allocations: 320.6 kB / 455.4 MB, free: 2.336 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006429/0.3835, allocations: 477.3 kB / 455.9 MB, free: 1.801 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001142/0.3846, allocations: 0.7444 MB / 456.6 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.105e-06/0.3846, allocations: 11.94 kB / 456.6 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001637/0.3863, allocations: 0.9664 MB / 457.6 MB, free: 4 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.785e-05/0.3863, allocations: 12.05 kB / 457.6 MB, free: 15.99 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.3863, allocations: 4 kB / 457.6 MB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002443/0.3888, allocations: 408.2 kB / 458 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005997/0.3894, allocations: 151.7 kB / 458.1 MB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00096/0.3904, allocations: 0.8294 MB / 459 MB, free: 14.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000473/0.3909, allocations: 35.92 kB / 459 MB, free: 14.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.823e-05/0.3909, allocations: 31.98 kB / 459 MB, free: 14.52 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007691/0.3917, allocations: 477.9 kB / 459.5 MB, free: 14.05 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000682/0.3924, allocations: 474.1 kB / 460 MB, free: 13.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001116/0.3935, allocations: 0.7241 MB / 460.7 MB, free: 12.73 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.789e-06/0.3936, allocations: 4 kB / 460.7 MB, free: 12.72 MB / 382.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001497/0.3951, allocations: 0.9096 MB / 461.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.3951, allocations: 8 kB / 461.6 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.802e-06/0.3951, allocations: 8 kB / 461.6 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00182/0.3969, allocations: 268.5 kB / 461.9 MB, free: 11.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005946/0.3975, allocations: 159.7 kB / 462 MB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006693/0.3982, allocations: 0.7084 MB / 462.7 MB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004913/0.3987, allocations: 40.03 kB / 462.8 MB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.209e-05/0.3988, allocations: 31.98 kB / 462.8 MB, free: 10.56 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 6 (tank2.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003025/0.3991, allocations: 232.1 kB / 463 MB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001458/0.3992, allocations: 83.47 kB / 463.1 MB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001719/0.401, allocations: 0.8581 MB / 464 MB, free: 9.375 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.204e-05/0.401, allocations: 7.984 kB / 464 MB, free: 9.367 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.864e-06/0.401, allocations: 4 kB / 464 MB, free: 9.363 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.401, allocations: 0 / 464 MB, free: 9.363 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003014/0.404, allocations: 1.702 MB / 465.7 MB, free: 7.594 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.4041, allocations: 3.938 kB / 465.7 MB, free: 7.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004977/0.4046, allocations: 111.9 kB / 465.8 MB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001436/0.406, allocations: 330.8 kB / 466.1 MB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.492e-05/0.4061, allocations: 23.97 kB / 466.2 MB, free: 7.133 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000914/0.407, allocations: 0.8099 MB / 467 MB, free: 6.297 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/0.407, allocations: 8.047 kB / 467 MB, free: 6.289 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00199/0.409, allocations: 1.292 MB / 468.3 MB, free: 4.969 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002222/0.4092, allocations: 148.7 kB / 468.4 MB, free: 4.805 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001028/0.4094, allocations: 15.94 kB / 468.4 MB, free: 4.789 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004188/0.4098, allocations: 31.97 kB / 468.5 MB, free: 4.758 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001331/0.4099, allocations: 52.44 kB / 468.5 MB, free: 4.707 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.646e-05/0.41, allocations: 23.98 kB / 468.5 MB, free: 4.684 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005836/0.4106, allocations: 447 kB / 469 MB, free: 4.25 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.4106, allocations: 0 / 469 MB, free: 4.25 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001395/0.412, allocations: 0.5419 MB / 469.5 MB, free: 3.707 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003267/0.4153, allocations: 2.19 MB / 471.7 MB, free: 1.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002527/0.4178, allocations: 1.192 MB / 472.9 MB, free: 300 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/0.4178, allocations: 0 / 472.9 MB, free: 300 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007497/0.4186, allocations: 402.8 kB / 473.3 MB, free: 15.9 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001877/0.4205, allocations: 377.2 kB / 473.7 MB, free: 15.54 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01064/0.4311, allocations: 6.956 MB / 480.6 MB, free: 8.355 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006135/0.4318, allocations: 0.9674 MB / 481.6 MB, free: 7.359 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009024/0.4327, allocations: 290 kB / 481.9 MB, free: 7.074 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004184/0.4331, allocations: 255.3 kB / 482.1 MB, free: 6.824 MB / 398.1 MB Notification: Performance of SimCode: time 9.11e-07/0.4331, allocations: 4 kB / 482.1 MB, free: 6.82 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06409/0.4972, allocations: 27.84 MB / 0.498 GB, free: 11.31 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.39/13.88, allocations: 11.83 kB / 0.498 GB, free: 11.3 MB / 430.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 Modelica_4_1_0-beta_om_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks.fmu > Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1)