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.001091/0.001091, allocations: 110.7 kB / 17.06 MB, free: 5.82 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.001186/0.001186, allocations: 195.9 kB / 18 MB, free: 4.965 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.344/1.344, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 51.92 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.263/0.2641, allocations: 49.43 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01577/0.2799, allocations: 15.84 MB / 416.1 MB, free: 8.922 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009287/0.2893, allocations: 6.902 MB / 423 MB, free: 2.004 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00085/0.2901, allocations: 23.88 kB / 423 MB, free: 1.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009834/0.2911, allocations: 330 kB / 423.3 MB, free: 1.656 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002831/0.294, allocations: 1.092 MB / 424.4 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004441/0.2985, allocations: 1.794 MB / 426.2 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003146/0.3017, allocations: 2.144 MB / 428.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001227/0.3029, allocations: 0.5997 MB / 428.9 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001843/0.3048, allocations: 0.8138 MB / 429.7 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001712/0.3065, allocations: 0.798 MB / 430.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003779/0.3069, allocations: 80 kB / 430.6 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003079/0.31, allocations: 1.213 MB / 431.8 MB, free: 9.098 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005965/0.3106, allocations: 323 kB / 432.2 MB, free: 8.781 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001033/0.3117, allocations: 454 kB / 432.6 MB, free: 8.336 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003854/0.3155, allocations: 1.853 MB / 434.4 MB, free: 6.477 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.746e-06/0.3156, allocations: 3.984 kB / 434.5 MB, free: 6.473 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.546e-06/0.3156, allocations: 4 kB / 434.5 MB, free: 6.469 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.727e-05/0.3156, allocations: 0 / 434.5 MB, free: 6.469 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.004105/0.3197, allocations: 1.291 MB / 435.7 MB, free: 5.125 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.045e-05/0.3198, allocations: 8.031 kB / 435.8 MB, free: 5.117 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001972/0.32, allocations: 106.7 kB / 435.9 MB, free: 5.004 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004064/0.3204, allocations: 96.42 kB / 436 MB, free: 4.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001139/0.3216, allocations: 0.6405 MB / 436.6 MB, free: 4.227 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001065/0.3217, allocations: 108.7 kB / 436.7 MB, free: 4.109 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001124/0.3218, allocations: 51.98 kB / 436.8 MB, free: 4.059 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001466/0.3233, allocations: 0.8961 MB / 437.6 MB, free: 3.137 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.083e-05/0.3233, allocations: 8 kB / 437.7 MB, free: 3.129 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.934e-05/0.3234, allocations: 23.98 kB / 437.7 MB, free: 3.105 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.387e-05/0.3235, allocations: 49.28 kB / 437.7 MB, free: 3.059 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001389/0.3249, allocations: 0.8405 MB / 438.6 MB, free: 2.219 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.005998/0.3309, allocations: 3.462 MB / 442 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001093/0.332, allocations: 0.6649 MB / 442.7 MB, free: 13.89 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005615/0.3326, allocations: 366.3 kB / 443.1 MB, free: 13.53 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003023/0.3356, allocations: 2.047 MB / 445.1 MB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.198e-05/0.3357, allocations: 39.12 kB / 445.1 MB, free: 11.24 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.845e-06/0.3357, allocations: 0 / 445.1 MB, free: 11.24 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.007348/0.343, allocations: 2.849 MB / 448 MB, free: 8.328 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.074e-05/0.3431, allocations: 85.67 kB / 448.1 MB, free: 8.227 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009784/0.3441, allocations: 0.6799 MB / 448.8 MB, free: 7.539 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.785e-05/0.3442, allocations: 37.7 kB / 448.8 MB, free: 7.496 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002714/0.3445, allocations: 345 kB / 449.1 MB, free: 7.152 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002335/0.3447, allocations: 234 kB / 449.4 MB, free: 6.922 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002767/0.345, allocations: 154.6 kB / 449.5 MB, free: 6.766 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.3452, allocations: 382.8 kB / 449.9 MB, free: 6.383 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006168/0.3458, allocations: 376.6 kB / 450.2 MB, free: 6.012 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007382/0.3466, allocations: 0.5152 MB / 450.8 MB, free: 5.434 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001295/0.3479, allocations: 0.8637 MB / 451.6 MB, free: 4.508 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.3479, allocations: 4 kB / 451.6 MB, free: 4.504 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002069/0.35, allocations: 1.169 MB / 452.8 MB, free: 3.324 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.523e-05/0.35, allocations: 8 kB / 452.8 MB, free: 3.316 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/0.35, allocations: 4.562 kB / 452.8 MB, free: 3.312 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00129/0.3513, allocations: 452.4 kB / 453.3 MB, free: 2.867 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006528/0.352, allocations: 163.7 kB / 453.4 MB, free: 2.707 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0012/0.3532, allocations: 1.017 MB / 454.4 MB, free: 1.664 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006472/0.3539, allocations: 28.03 kB / 454.5 MB, free: 1.637 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.752e-05/0.354, allocations: 35.98 kB / 454.5 MB, free: 1.602 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008726/0.3549, allocations: 0.5409 MB / 455 MB, free: 1.055 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007377/0.3556, allocations: 0.5043 MB / 455.5 MB, free: 500 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001399/0.357, allocations: 0.8528 MB / 456.4 MB, free: 15.58 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.808e-06/0.3571, allocations: 4 kB / 456.4 MB, free: 15.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002486/0.3596, allocations: 1.098 MB / 457.5 MB, free: 14.46 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.45e-05/0.3596, allocations: 11.98 kB / 457.5 MB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.343e-05/0.3596, allocations: 4 kB / 457.5 MB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008273/0.3605, allocations: 309.3 kB / 457.8 MB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000698/0.3612, allocations: 175.7 kB / 458 MB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001087/0.3623, allocations: 0.8996 MB / 458.9 MB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006948/0.363, allocations: 32.12 kB / 458.9 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.473e-05/0.3631, allocations: 39.92 kB / 458.9 MB, free: 12.98 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.0003122/0.3634, allocations: 224.5 kB / 459.2 MB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002354/0.3637, allocations: 87.47 kB / 459.3 MB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002058/0.3657, allocations: 1.091 MB / 460.3 MB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.109e-05/0.3658, allocations: 8 kB / 460.4 MB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.385e-06/0.3658, allocations: 0 / 460.4 MB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.3658, allocations: 7.922 kB / 460.4 MB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003363/0.3692, allocations: 2.008 MB / 462.4 MB, free: 9.473 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/0.3692, allocations: 0 / 462.4 MB, free: 9.473 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005905/0.3698, allocations: 116 kB / 462.5 MB, free: 9.359 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00118/0.371, allocations: 448.4 kB / 462.9 MB, free: 8.918 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.06e-05/0.371, allocations: 15.98 kB / 462.9 MB, free: 8.902 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001171/0.3722, allocations: 1.036 MB / 464 MB, free: 7.844 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3722, allocations: 0 / 464 MB, free: 7.844 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002498/0.3747, allocations: 1.601 MB / 465.6 MB, free: 6.223 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005227/0.3753, allocations: 248.5 kB / 465.8 MB, free: 5.961 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002005/0.3755, allocations: 16 kB / 465.8 MB, free: 5.945 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006781/0.3762, allocations: 35.91 kB / 465.9 MB, free: 5.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001398/0.3763, allocations: 52.58 kB / 465.9 MB, free: 5.859 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.236e-05/0.3764, allocations: 27.98 kB / 465.9 MB, free: 5.832 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007116/0.3771, allocations: 483 kB / 466.4 MB, free: 5.367 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3771, allocations: 0 / 466.4 MB, free: 5.367 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001837/0.379, allocations: 0.5887 MB / 467 MB, free: 4.777 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.003945/0.3829, allocations: 2.534 MB / 469.5 MB, free: 2.207 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002939/0.3859, allocations: 1.409 MB / 470.9 MB, free: 0.8008 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.3859, allocations: 4.062 kB / 471 MB, free: 0.7969 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009621/0.3869, allocations: 467.5 kB / 471.4 MB, free: 352 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001981/0.3889, allocations: 389.5 kB / 471.8 MB, free: 15.97 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01262/0.4015, allocations: 7.76 MB / 479.5 MB, free: 8.004 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006059/0.4022, allocations: 0.995 MB / 480.5 MB, free: 6.98 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001096/0.4033, allocations: 302.5 kB / 480.8 MB, free: 6.68 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004971/0.4038, allocations: 279.3 kB / 481.1 MB, free: 6.406 MB / 398.1 MB Notification: Performance of SimCode: time 1.142e-06/0.4038, allocations: 11.94 kB / 481.1 MB, free: 6.395 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06392/0.4677, allocations: 30.82 MB / 0.4999 GB, free: 7.859 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.9/13.37, allocations: 3.984 kB / 0.4999 GB, free: 7.855 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)