Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.Tanks.EmptyTanks,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001362/0.001362, allocations: 122.8 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001304/0.001304, allocations: 202 kB / 18.74 MB, free: 4.312 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.417/1.417, allocations: 227.7 MB / 247.2 MB, free: 10.25 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.001871/0.001871, allocations: 63.89 kB / 358.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2843/0.2861, allocations: 50.55 MB / 409.1 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01883/0.305, allocations: 15.94 MB / 425 MB, free: 1.359 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01193/0.317, allocations: 6.92 MB / 431.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001172/0.3182, allocations: 19.88 kB / 431.9 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001337/0.3196, allocations: 330 kB / 432.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003601/0.3233, allocations: 1.085 MB / 433.3 MB, free: 8.988 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005625/0.3289, allocations: 1.787 MB / 435.1 MB, free: 7.211 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003415/0.3323, allocations: 2.151 MB / 437.3 MB, free: 5.051 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001244/0.3336, allocations: 0.6101 MB / 437.9 MB, free: 4.434 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00179/0.3354, allocations: 0.7981 MB / 438.7 MB, free: 3.633 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001582/0.337, allocations: 0.798 MB / 439.5 MB, free: 2.832 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002892/0.3373, allocations: 80 kB / 439.6 MB, free: 2.754 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002971/0.3403, allocations: 1.252 MB / 440.8 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005347/0.3408, allocations: 319.1 kB / 441.1 MB, free: 1.188 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008409/0.3417, allocations: 461.9 kB / 441.6 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003655/0.3454, allocations: 1.881 MB / 443.5 MB, free: 14.85 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.3454, allocations: 0 / 443.5 MB, free: 14.85 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3454, allocations: 4 kB / 443.5 MB, free: 14.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.37e-05/0.3454, allocations: 0 / 443.5 MB, free: 14.84 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.003652/0.3491, allocations: 1.307 MB / 444.8 MB, free: 13.48 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.982e-05/0.3492, allocations: 8.031 kB / 444.8 MB, free: 13.47 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002088/0.3494, allocations: 98.69 kB / 444.9 MB, free: 13.37 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00043/0.3498, allocations: 104.4 kB / 445 MB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001319/0.3511, allocations: 0.6289 MB / 445.6 MB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001407/0.3513, allocations: 108.7 kB / 445.7 MB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001133/0.3514, allocations: 55.92 kB / 445.8 MB, free: 12.42 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001704/0.3531, allocations: 0.9 MB / 446.7 MB, free: 11.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.754e-05/0.3532, allocations: 7.953 kB / 446.7 MB, free: 11.49 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.878e-05/0.3533, allocations: 23.98 kB / 446.7 MB, free: 11.46 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.505e-05/0.3534, allocations: 53.27 kB / 446.8 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001555/0.3549, allocations: 0.8444 MB / 447.6 MB, free: 10.57 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.006196/0.3611, allocations: 3.451 MB / 451.1 MB, free: 6.922 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001174/0.3623, allocations: 0.6666 MB / 451.7 MB, free: 6.25 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005808/0.3629, allocations: 366.3 kB / 452.1 MB, free: 5.891 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003179/0.3661, allocations: 2.039 MB / 454.1 MB, free: 3.656 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.809e-05/0.3662, allocations: 39.12 kB / 454.2 MB, free: 3.609 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.254e-06/0.3662, allocations: 0 / 454.2 MB, free: 3.609 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.007333/0.3735, allocations: 2.841 MB / 457 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.894e-05/0.3736, allocations: 85.67 kB / 457.1 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001043/0.3747, allocations: 0.6799 MB / 457.8 MB, free: 15.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.128e-05/0.3748, allocations: 41.7 kB / 457.8 MB, free: 15.86 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003126/0.3751, allocations: 349 kB / 458.1 MB, free: 15.51 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002357/0.3753, allocations: 230 kB / 458.4 MB, free: 15.29 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002796/0.3756, allocations: 150.6 kB / 458.5 MB, free: 15.13 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002265/0.3758, allocations: 386.8 kB / 458.9 MB, free: 14.75 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006555/0.3765, allocations: 380.5 kB / 459.3 MB, free: 14.37 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008139/0.3773, allocations: 0.5152 MB / 459.8 MB, free: 13.79 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001413/0.3787, allocations: 0.8599 MB / 460.6 MB, free: 12.88 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.3788, allocations: 0 / 460.6 MB, free: 12.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002285/0.3811, allocations: 1.169 MB / 461.8 MB, free: 11.7 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.946e-05/0.3811, allocations: 11.94 kB / 461.8 MB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/0.3811, allocations: 4 kB / 461.8 MB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001365/0.3825, allocations: 460.4 kB / 462.3 MB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006646/0.3832, allocations: 163.8 kB / 462.4 MB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001414/0.3846, allocations: 1.017 MB / 463.4 MB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006368/0.3852, allocations: 27.98 kB / 463.5 MB, free: 10 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.218e-05/0.3853, allocations: 35.98 kB / 463.5 MB, free: 9.965 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009017/0.3863, allocations: 0.5292 MB / 464 MB, free: 9.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007952/0.3871, allocations: 0.516 MB / 464.6 MB, free: 8.852 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001405/0.3885, allocations: 0.849 MB / 465.4 MB, free: 7.945 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.098e-06/0.3885, allocations: 0 / 465.4 MB, free: 7.945 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002128/0.3906, allocations: 1.107 MB / 466.5 MB, free: 6.828 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.439e-05/0.3907, allocations: 4 kB / 466.5 MB, free: 6.824 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.3907, allocations: 4 kB / 466.5 MB, free: 6.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007697/0.3915, allocations: 316.8 kB / 466.8 MB, free: 6.508 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006578/0.3921, allocations: 167.8 kB / 467 MB, free: 6.344 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001138/0.3933, allocations: 0.9152 MB / 467.9 MB, free: 5.402 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005987/0.3939, allocations: 31.98 kB / 467.9 MB, free: 5.371 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.404e-05/0.394, allocations: 35.98 kB / 468 MB, free: 5.336 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.0003038/0.3943, allocations: 220.1 kB / 468.2 MB, free: 5.113 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002229/0.3945, allocations: 87.42 kB / 468.3 MB, free: 5.027 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002177/0.3967, allocations: 1.095 MB / 469.4 MB, free: 3.918 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.725e-06/0.3967, allocations: 4 kB / 469.4 MB, free: 3.914 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.3967, allocations: 4 kB / 469.4 MB, free: 3.91 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.248e-06/0.3968, allocations: 7.984 kB / 469.4 MB, free: 3.902 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00344/0.4002, allocations: 2 MB / 471.4 MB, free: 1.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.4002, allocations: 0 / 471.4 MB, free: 1.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006044/0.4008, allocations: 119.8 kB / 471.5 MB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001236/0.4021, allocations: 444 kB / 471.9 MB, free: 1.289 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.738e-05/0.4022, allocations: 19.98 kB / 472 MB, free: 1.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001363/0.4035, allocations: 1.028 MB / 473 MB, free: 220 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.4035, allocations: 0 / 473 MB, free: 220 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002724/0.4063, allocations: 1.605 MB / 474.6 MB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000466/0.4068, allocations: 248.5 kB / 474.8 MB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000185/0.407, allocations: 27.98 kB / 474.9 MB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005966/0.4076, allocations: 31.92 kB / 474.9 MB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001471/0.4077, allocations: 56.56 kB / 474.9 MB, free: 14.22 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.858e-05/0.4078, allocations: 27.98 kB / 475 MB, free: 14.19 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006931/0.4085, allocations: 479 kB / 475.4 MB, free: 13.73 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4085, allocations: 0 / 475.4 MB, free: 13.73 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00174/0.4103, allocations: 0.5927 MB / 476 MB, free: 13.14 MB / 398.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.004167/0.4144, allocations: 2.534 MB / 478.6 MB, free: 10.56 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003156/0.4176, allocations: 1.399 MB / 480 MB, free: 9.164 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/0.4176, allocations: 1.812 kB / 480 MB, free: 9.164 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001002/0.4186, allocations: 471.5 kB / 480.4 MB, free: 8.707 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001907/0.4206, allocations: 397.1 kB / 480.8 MB, free: 8.328 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01333/0.4339, allocations: 7.753 MB / 488.6 MB, free: 376 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007194/0.4347, allocations: 0.9988 MB / 489.6 MB, free: 15.34 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00105/0.4357, allocations: 306.6 kB / 489.9 MB, free: 15.04 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004281/0.4362, allocations: 283.3 kB / 490.1 MB, free: 14.76 MB / 414.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4362, allocations: 0 / 490.1 MB, free: 14.76 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07379/0.51, allocations: 30.92 MB / 0.5088 GB, free: 152 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.26/13.77, allocations: 12 kB / 0.5089 GB, free: 140 kB / 430.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_1_0-beta_om_Modelica_Fluid_Examples_Tanks_EmptyTanks.fmu > Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1)