Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.Tanks.EmptyTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_EmptyTanks",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.001233/0.001233, allocations: 113.4 kB / 17.06 MB, free: 6.012 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.001158/0.001158, allocations: 189.4 kB / 18 MB, free: 5.098 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.393/1.393, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 47.92 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2467/0.2481, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01911/0.2673, allocations: 15.84 MB / 416.1 MB, free: 8.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01087/0.2782, allocations: 6.893 MB / 423 MB, free: 2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008415/0.2791, allocations: 23.88 kB / 423 MB, free: 1.977 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009836/0.2801, allocations: 330 kB / 423.3 MB, free: 1.652 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002912/0.2831, allocations: 1.08 MB / 424.4 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004757/0.2878, allocations: 1.791 MB / 426.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003774/0.2916, allocations: 2.144 MB / 428.3 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001047/0.2927, allocations: 0.5958 MB / 428.9 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00151/0.2942, allocations: 0.7942 MB / 429.7 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001232/0.2954, allocations: 0.7941 MB / 430.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001547/0.2956, allocations: 83.94 kB / 430.6 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002678/0.2983, allocations: 1.221 MB / 431.8 MB, free: 9.125 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003903/0.2987, allocations: 319.1 kB / 432.1 MB, free: 8.812 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005641/0.2993, allocations: 450 kB / 432.6 MB, free: 8.371 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00308/0.3024, allocations: 1.849 MB / 434.4 MB, free: 6.516 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.3024, allocations: 4 kB / 434.4 MB, free: 6.512 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.3024, allocations: 0 / 434.4 MB, free: 6.512 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.186e-05/0.3024, allocations: 0 / 434.4 MB, free: 6.512 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002914/0.3053, allocations: 1.299 MB / 435.7 MB, free: 5.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.184e-05/0.3054, allocations: 12.03 kB / 435.7 MB, free: 5.148 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001524/0.3056, allocations: 102.7 kB / 435.8 MB, free: 5.039 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003429/0.3059, allocations: 100.4 kB / 435.9 MB, free: 4.941 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001053/0.307, allocations: 0.6366 MB / 436.6 MB, free: 4.262 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001181/0.3071, allocations: 108.7 kB / 436.7 MB, free: 4.145 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001036/0.3072, allocations: 55.97 kB / 436.7 MB, free: 4.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001599/0.3088, allocations: 0.8962 MB / 437.6 MB, free: 3.168 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.275e-05/0.3089, allocations: 0 / 437.6 MB, free: 3.168 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.594e-05/0.309, allocations: 23.98 kB / 437.6 MB, free: 3.145 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.618e-05/0.3091, allocations: 61.27 kB / 437.7 MB, free: 3.086 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001486/0.3105, allocations: 0.8405 MB / 438.5 MB, free: 2.246 MB / 350.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.005914/0.3165, allocations: 3.447 MB / 442 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001124/0.3176, allocations: 0.6766 MB / 442.7 MB, free: 13.92 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005803/0.3182, allocations: 362.3 kB / 443 MB, free: 13.57 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00292/0.3211, allocations: 2.047 MB / 445.1 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.296e-05/0.3212, allocations: 39.12 kB / 445.1 MB, free: 11.28 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.044e-06/0.3212, allocations: 3.938 kB / 445.1 MB, free: 11.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.007195/0.3284, allocations: 2.845 MB / 447.9 MB, free: 8.363 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.49e-05/0.3285, allocations: 85.67 kB / 448 MB, free: 8.262 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000979/0.3295, allocations: 0.6799 MB / 448.7 MB, free: 7.574 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.735e-05/0.3296, allocations: 45.64 kB / 448.8 MB, free: 7.523 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003019/0.3299, allocations: 337 kB / 449.1 MB, free: 7.188 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000236/0.3301, allocations: 242 kB / 449.3 MB, free: 6.949 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002659/0.3304, allocations: 146.6 kB / 449.5 MB, free: 6.801 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002237/0.3306, allocations: 386.8 kB / 449.8 MB, free: 6.414 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006448/0.3313, allocations: 376.6 kB / 450.2 MB, free: 6.043 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007893/0.3321, allocations: 0.5152 MB / 450.7 MB, free: 5.465 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00147/0.3336, allocations: 0.8638 MB / 451.6 MB, free: 4.539 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.3336, allocations: 0 / 451.6 MB, free: 4.539 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002223/0.3358, allocations: 1.169 MB / 452.8 MB, free: 3.359 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.473e-05/0.3358, allocations: 8 kB / 452.8 MB, free: 3.352 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.509e-05/0.3359, allocations: 7.984 kB / 452.8 MB, free: 3.344 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001354/0.3372, allocations: 448.6 kB / 453.2 MB, free: 2.902 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006639/0.3379, allocations: 163.8 kB / 453.4 MB, free: 2.742 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001335/0.3392, allocations: 1.024 MB / 454.4 MB, free: 1.695 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005949/0.3399, allocations: 32.03 kB / 454.4 MB, free: 1.664 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.037e-05/0.34, allocations: 31.98 kB / 454.5 MB, free: 1.633 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000924/0.3409, allocations: 0.5331 MB / 455 MB, free: 1.094 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007913/0.3417, allocations: 0.5121 MB / 455.5 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001375/0.3431, allocations: 0.8451 MB / 456.3 MB, free: 15.62 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.8e-06/0.3431, allocations: 4 kB / 456.4 MB, free: 15.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002073/0.3452, allocations: 1.103 MB / 457.5 MB, free: 14.5 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.3452, allocations: 8 kB / 457.5 MB, free: 14.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.3452, allocations: 4 kB / 457.5 MB, free: 14.49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007594/0.346, allocations: 316.9 kB / 457.8 MB, free: 14.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006423/0.3466, allocations: 167.8 kB / 457.9 MB, free: 14.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001112/0.3478, allocations: 0.919 MB / 458.9 MB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005706/0.3483, allocations: 31.98 kB / 458.9 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.856e-05/0.3484, allocations: 31.98 kB / 458.9 MB, free: 13 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (tank2.inFlow[1],tank2.regularFlow[1],tank1.inFlow[1],tank1.regularFlow[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 {(4,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0002912/0.3487, allocations: 226.3 kB / 459.1 MB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001905/0.3489, allocations: 83.47 kB / 459.2 MB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002171/0.3511, allocations: 1.091 MB / 460.3 MB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/0.3511, allocations: 8 kB / 460.3 MB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.3511, allocations: 4 kB / 460.3 MB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.317e-06/0.3512, allocations: 7.922 kB / 460.3 MB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003426/0.3546, allocations: 2 MB / 462.3 MB, free: 9.508 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.3546, allocations: 0 / 462.3 MB, free: 9.508 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005837/0.3552, allocations: 119.8 kB / 462.5 MB, free: 9.391 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001212/0.3564, allocations: 451.8 kB / 462.9 MB, free: 8.949 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.304e-05/0.3565, allocations: 19.98 kB / 462.9 MB, free: 8.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001296/0.3578, allocations: 1.028 MB / 463.9 MB, free: 7.875 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3578, allocations: 0 / 463.9 MB, free: 7.875 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002657/0.3605, allocations: 1.597 MB / 465.5 MB, free: 6.258 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004406/0.3609, allocations: 248.5 kB / 465.8 MB, free: 5.996 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001539/0.3611, allocations: 15.98 kB / 465.8 MB, free: 5.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00059/0.3617, allocations: 35.91 kB / 465.8 MB, free: 5.945 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001432/0.3618, allocations: 56.58 kB / 465.9 MB, free: 5.891 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.377e-05/0.3619, allocations: 23.98 kB / 465.9 MB, free: 5.867 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006782/0.3626, allocations: 483 kB / 466.4 MB, free: 5.402 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3626, allocations: 3.938 kB / 466.4 MB, free: 5.398 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001557/0.3642, allocations: 0.5849 MB / 467 MB, free: 4.812 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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 {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004107/0.3683, allocations: 2.53 MB / 469.5 MB, free: 2.246 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003108/0.3714, allocations: 1.404 MB / 470.9 MB, free: 0.8438 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.764e-06/0.3715, allocations: 4 kB / 470.9 MB, free: 0.8398 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009966/0.3725, allocations: 472 kB / 471.4 MB, free: 392 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001811/0.3743, allocations: 386.5 kB / 471.7 MB, free: 12 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01316/0.3875, allocations: 7.756 MB / 479.5 MB, free: 8.043 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007745/0.3883, allocations: 0.9988 MB / 480.5 MB, free: 7.016 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001072/0.3893, allocations: 310.5 kB / 480.8 MB, free: 6.707 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004901/0.3899, allocations: 283.3 kB / 481.1 MB, free: 6.43 MB / 398.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3899, allocations: 0 / 481.1 MB, free: 6.43 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07421/0.4641, allocations: 30.83 MB / 0.4999 GB, free: 7.891 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.36/13.82, allocations: 7.969 kB / 0.4999 GB, free: 7.883 MB / 430.1 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.csv --start-time 0 --stop-time 50 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_EmptyTanks.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1)