Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 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.Tanks.EmptyTanks,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_trunk_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.001363/0.001363, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00133/0.00133, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.424/1.424, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001759/0.001759, allocations: 59.91 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.29/0.2918, allocations: 50.56 MB / 408.7 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01933/0.3112, allocations: 15.96 MB / 424.7 MB, free: 1.508 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01146/0.3227, allocations: 6.912 MB / 431.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009948/0.3237, allocations: 19.88 kB / 431.6 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00107/0.3248, allocations: 338 kB / 432 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003032/0.3279, allocations: 1.073 MB / 433 MB, free: 9.152 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005224/0.3331, allocations: 1.798 MB / 434.8 MB, free: 7.363 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003522/0.3367, allocations: 2.148 MB / 437 MB, free: 5.207 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001071/0.3377, allocations: 0.5996 MB / 437.6 MB, free: 4.598 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001668/0.3394, allocations: 0.8059 MB / 438.4 MB, free: 3.789 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001275/0.3407, allocations: 0.7941 MB / 439.2 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001484/0.3409, allocations: 80 kB / 439.3 MB, free: 2.914 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002715/0.3436, allocations: 1.256 MB / 440.5 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000371/0.344, allocations: 319.1 kB / 440.8 MB, free: 1.344 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005739/0.3446, allocations: 454 kB / 441.3 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003293/0.3479, allocations: 1.888 MB / 443.2 MB, free: 15 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.3479, allocations: 0 / 443.2 MB, free: 15 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.3479, allocations: 0 / 443.2 MB, free: 15 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.841e-05/0.3479, allocations: 4 kB / 443.2 MB, free: 15 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.003325/0.3513, allocations: 1.295 MB / 444.5 MB, free: 13.65 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.044e-05/0.3513, allocations: 11.97 kB / 444.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001841/0.3515, allocations: 110.7 kB / 444.6 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000367/0.3519, allocations: 104.4 kB / 444.7 MB, free: 13.42 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001149/0.3531, allocations: 0.6172 MB / 445.3 MB, free: 12.76 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001435/0.3532, allocations: 104.7 kB / 445.4 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001217/0.3533, allocations: 63.86 kB / 445.5 MB, free: 12.58 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001613/0.355, allocations: 0.8963 MB / 446.4 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.284e-05/0.355, allocations: 3.953 kB / 446.4 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.874e-05/0.3551, allocations: 19.98 kB / 446.4 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.08e-05/0.3552, allocations: 61.2 kB / 446.4 MB, free: 11.57 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001502/0.3567, allocations: 0.8366 MB / 447.3 MB, free: 10.74 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.006221/0.3629, allocations: 3.463 MB / 450.7 MB, free: 7.082 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001096/0.364, allocations: 0.6657 MB / 451.4 MB, free: 6.41 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005768/0.3646, allocations: 370.3 kB / 451.8 MB, free: 6.047 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003177/0.3678, allocations: 2.035 MB / 453.8 MB, free: 3.816 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.937e-05/0.3679, allocations: 39.12 kB / 453.8 MB, free: 3.77 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 1.943e-06/0.3679, allocations: 0 / 453.8 MB, free: 3.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.007533/0.3754, allocations: 2.845 MB / 456.7 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.184e-05/0.3755, allocations: 85.67 kB / 456.8 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009818/0.3765, allocations: 0.6759 MB / 457.5 MB, free: 68 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.282e-05/0.3766, allocations: 41.7 kB / 457.5 MB, free: 20 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003125/0.3769, allocations: 345 kB / 457.8 MB, free: 15.68 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002244/0.3772, allocations: 238 kB / 458.1 MB, free: 15.44 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002697/0.3774, allocations: 150.6 kB / 458.2 MB, free: 15.29 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002193/0.3777, allocations: 382.8 kB / 458.6 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006448/0.3783, allocations: 380.5 kB / 459 MB, free: 14.53 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008017/0.3791, allocations: 0.5191 MB / 459.5 MB, free: 13.95 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001416/0.3805, allocations: 0.8599 MB / 460.3 MB, free: 13.03 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.3806, allocations: 8 kB / 460.3 MB, free: 13.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002213/0.3828, allocations: 1.161 MB / 461.5 MB, free: 11.85 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.636e-05/0.3828, allocations: 8 kB / 461.5 MB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/0.3828, allocations: 4 kB / 461.5 MB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001364/0.3842, allocations: 459.9 kB / 462 MB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006942/0.3849, allocations: 159.8 kB / 462.1 MB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001372/0.3863, allocations: 1.021 MB / 463.1 MB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006388/0.3869, allocations: 31.98 kB / 463.2 MB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.884e-05/0.387, allocations: 35.98 kB / 463.2 MB, free: 10.12 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009256/0.388, allocations: 0.5253 MB / 463.7 MB, free: 9.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007712/0.3887, allocations: 0.5199 MB / 464.3 MB, free: 9.008 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001347/0.3901, allocations: 0.8373 MB / 465.1 MB, free: 8.113 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.134e-06/0.3901, allocations: 8 kB / 465.1 MB, free: 8.105 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002097/0.3922, allocations: 1.107 MB / 466.2 MB, free: 6.988 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.3923, allocations: 8 kB / 466.2 MB, free: 6.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.3923, allocations: 4 kB / 466.2 MB, free: 6.977 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000752/0.393, allocations: 320.8 kB / 466.5 MB, free: 6.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006639/0.3937, allocations: 159.8 kB / 466.7 MB, free: 6.504 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001112/0.3948, allocations: 0.9113 MB / 467.6 MB, free: 5.566 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005918/0.3954, allocations: 35.92 kB / 467.6 MB, free: 5.531 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.883e-05/0.3955, allocations: 35.98 kB / 467.7 MB, free: 5.496 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.0003001/0.3958, allocations: 224.1 kB / 467.9 MB, free: 5.27 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001702/0.396, allocations: 87.42 kB / 468 MB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002113/0.3981, allocations: 1.091 MB / 469.1 MB, free: 4.078 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.227e-06/0.3981, allocations: 8 kB / 469.1 MB, free: 4.07 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.3982, allocations: 0 / 469.1 MB, free: 4.07 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.3982, allocations: 3.984 kB / 469.1 MB, free: 4.066 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003323/0.4015, allocations: 2.008 MB / 471.1 MB, free: 1.996 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.4015, allocations: 0 / 471.1 MB, free: 1.996 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000592/0.4021, allocations: 115.9 kB / 471.2 MB, free: 1.883 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001217/0.4033, allocations: 444.5 kB / 471.6 MB, free: 1.445 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.967e-05/0.4034, allocations: 19.98 kB / 471.6 MB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001343/0.4048, allocations: 1.035 MB / 472.7 MB, free: 376 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.4048, allocations: 0 / 472.7 MB, free: 376 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002698/0.4075, allocations: 1.597 MB / 474.3 MB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004575/0.4079, allocations: 248.5 kB / 474.5 MB, free: 14.49 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001178/0.4081, allocations: 15.98 kB / 474.5 MB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005692/0.4086, allocations: 39.92 kB / 474.6 MB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001496/0.4088, allocations: 60.56 kB / 474.6 MB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.675e-05/0.4089, allocations: 23.98 kB / 474.7 MB, free: 14.36 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006321/0.4095, allocations: 483 kB / 475.1 MB, free: 13.89 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.4095, allocations: 0 / 475.1 MB, free: 13.89 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001579/0.4111, allocations: 0.5849 MB / 475.7 MB, free: 13.3 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.003994/0.4151, allocations: 2.534 MB / 478.3 MB, free: 10.73 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003112/0.4182, allocations: 1.408 MB / 479.7 MB, free: 9.324 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.4183, allocations: 0 / 479.7 MB, free: 9.324 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001038/0.4193, allocations: 471.5 kB / 480.1 MB, free: 8.867 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001747/0.4211, allocations: 388.4 kB / 480.5 MB, free: 8.496 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01303/0.4341, allocations: 7.767 MB / 488.3 MB, free: 0.5234 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007899/0.4349, allocations: 0.9988 MB / 489.3 MB, free: 15.5 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001153/0.4361, allocations: 314.5 kB / 489.6 MB, free: 15.18 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004562/0.4366, allocations: 279.3 kB / 489.8 MB, free: 14.91 MB / 414.1 MB Notification: Performance of SimCode: time 1.012e-06/0.4366, allocations: 0 / 489.8 MB, free: 14.91 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07719/0.5138, allocations: 30.88 MB / 0.5085 GB, free: 216 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.59/14.1, allocations: 23.95 kB / 0.5085 GB, free: 192 kB / 430.1 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Fluid_Examples_Tanks_EmptyTanks.fmu > Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1)