Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_3_2_3_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.001941/0.001941, allocations: 98.88 kB / 17.58 MB, free: 5.418 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.002224/0.002224, allocations: 191.9 kB / 18.51 MB, free: 4.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.646/2.646, allocations: 205.1 MB / 224.4 MB, free: 12.32 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002645/0.002645, allocations: 48.14 kB / 280.7 MB, free: 3.105 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1667/0.1694, allocations: 46.64 MB / 327.4 MB, free: 4.395 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.03492/0.2044, allocations: 15.84 MB / 343.2 MB, free: 4.473 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01277/0.2173, allocations: 6.85 MB / 350.1 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001249/0.2186, allocations: 23.88 kB / 350.1 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001577/0.2202, allocations: 333.9 kB / 350.4 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005171/0.2254, allocations: 1.065 MB / 351.5 MB, free: 12.19 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007789/0.2332, allocations: 1.8 MB / 353.3 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004825/0.2381, allocations: 2.148 MB / 355.4 MB, free: 8.227 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001783/0.2399, allocations: 0.6035 MB / 356 MB, free: 7.609 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002554/0.2425, allocations: 0.7904 MB / 356.8 MB, free: 6.816 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002426/0.245, allocations: 0.7979 MB / 357.6 MB, free: 6.016 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005192/0.2455, allocations: 84 kB / 357.7 MB, free: 5.934 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005741/0.2513, allocations: 1.213 MB / 358.9 MB, free: 4.719 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001133/0.2525, allocations: 307.2 kB / 359.2 MB, free: 4.418 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001719/0.2542, allocations: 461.9 kB / 359.7 MB, free: 3.965 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007464/0.2617, allocations: 1.82 MB / 361.5 MB, free: 2.141 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.651e-05/0.2618, allocations: 4 kB / 361.5 MB, free: 2.137 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.9e-06/0.2619, allocations: 0 / 361.5 MB, free: 2.137 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.023e-05/0.2619, allocations: 0 / 361.5 MB, free: 2.137 MB / 302.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.006951/0.2689, allocations: 1.258 MB / 362.8 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.26e-05/0.269, allocations: 19.95 kB / 362.8 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004152/0.2695, allocations: 98.7 kB / 362.9 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008474/0.2703, allocations: 95.91 kB / 363 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002339/0.2727, allocations: 0.597 MB / 363.6 MB, free: 15.96 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002399/0.273, allocations: 104.6 kB / 363.7 MB, free: 15.86 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002704/0.2733, allocations: 59.92 kB / 363.7 MB, free: 15.8 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003479/0.2768, allocations: 0.8924 MB / 364.6 MB, free: 14.88 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.939e-05/0.2768, allocations: 3.938 kB / 364.6 MB, free: 14.88 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001665/0.277, allocations: 27.98 kB / 364.6 MB, free: 14.85 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001776/0.2772, allocations: 49.22 kB / 364.7 MB, free: 14.8 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00297/0.2802, allocations: 0.8521 MB / 365.5 MB, free: 13.95 MB / 318.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.01345/0.2937, allocations: 3.447 MB / 369 MB, free: 10.31 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002279/0.296, allocations: 0.6608 MB / 369.7 MB, free: 9.641 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001192/0.2973, allocations: 370.3 kB / 370 MB, free: 9.277 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006355/0.3037, allocations: 2.035 MB / 372.1 MB, free: 7.047 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.326e-05/0.3038, allocations: 39.12 kB / 372.1 MB, free: 7 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 6.352e-06/0.3038, allocations: 0 / 372.1 MB, free: 7 MB / 318.1 MB Notification: Performance of matching and sorting (n=66): time 0.01377/0.3176, allocations: 2.851 MB / 374.9 MB, free: 4.078 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001598/0.3179, allocations: 89.61 kB / 375 MB, free: 3.973 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00202/0.3199, allocations: 0.6799 MB / 375.7 MB, free: 3.285 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001609/0.3201, allocations: 37.7 kB / 375.7 MB, free: 3.242 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004699/0.3206, allocations: 328.5 kB / 376.1 MB, free: 2.918 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004066/0.321, allocations: 232.7 kB / 376.3 MB, free: 2.688 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005131/0.3216, allocations: 158.5 kB / 376.4 MB, free: 2.527 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0003125/0.3219, allocations: 386.8 kB / 376.8 MB, free: 2.141 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001212/0.3231, allocations: 368.6 kB / 377.2 MB, free: 1.777 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00147/0.3246, allocations: 0.5152 MB / 377.7 MB, free: 1.195 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002686/0.3273, allocations: 0.8599 MB / 378.6 MB, free: 280 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.467e-06/0.3274, allocations: 3.938 kB / 378.6 MB, free: 276 kB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.3464/0.6738, allocations: 1.159 MB / 379.7 MB, free: 54.76 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.989e-05/0.6739, allocations: 6.875 kB / 379.7 MB, free: 54.76 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.688e-05/0.6739, allocations: 11.38 kB / 379.7 MB, free: 54.76 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00252/0.6765, allocations: 447.9 kB / 380.2 MB, free: 54.75 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00124/0.6777, allocations: 162.2 kB / 380.3 MB, free: 54.75 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002094/0.6799, allocations: 1.017 MB / 381.4 MB, free: 54.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001121/0.681, allocations: 33.23 kB / 381.4 MB, free: 54.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000169/0.6812, allocations: 34.7 kB / 381.4 MB, free: 54.23 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001635/0.6828, allocations: 0.5287 MB / 381.9 MB, free: 54.12 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00124/0.6841, allocations: 0.5157 MB / 382.5 MB, free: 53.8 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001986/0.6861, allocations: 0.8494 MB / 383.3 MB, free: 53.36 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.888e-06/0.6861, allocations: 1.938 kB / 383.3 MB, free: 53.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002495/0.6886, allocations: 1.097 MB / 384.4 MB, free: 52.96 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.6887, allocations: 10.25 kB / 384.4 MB, free: 52.96 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.6887, allocations: 5.172 kB / 384.4 MB, free: 52.96 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008941/0.6896, allocations: 319.3 kB / 384.7 MB, free: 52.89 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006927/0.6903, allocations: 162.5 kB / 384.9 MB, free: 52.88 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00119/0.6915, allocations: 0.9103 MB / 385.8 MB, free: 52.22 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008971/0.6924, allocations: 37.5 kB / 385.8 MB, free: 52.2 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001101/0.6925, allocations: 31.69 kB / 385.9 MB, free: 52.2 MB / 318.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.0003335/0.6929, allocations: 225.3 kB / 386.1 MB, free: 51.99 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001949/0.6931, allocations: 78.47 kB / 386.2 MB, free: 51.99 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00235/0.6955, allocations: 1.089 MB / 387.3 MB, free: 51.55 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.139e-05/0.6955, allocations: 7.156 kB / 387.3 MB, free: 51.55 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.317e-06/0.6955, allocations: 5.156 kB / 387.3 MB, free: 51.55 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.358e-05/0.6955, allocations: 4.078 kB / 387.3 MB, free: 51.55 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003909/0.6994, allocations: 2.003 MB / 389.3 MB, free: 50.63 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.6995, allocations: 1.5 kB / 389.3 MB, free: 50.63 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007113/0.7002, allocations: 115.6 kB / 389.4 MB, free: 50.62 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001375/0.7016, allocations: 450.1 kB / 389.8 MB, free: 50.54 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.413e-05/0.7017, allocations: 17.11 kB / 389.9 MB, free: 50.53 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001456/0.7031, allocations: 1.023 MB / 390.9 MB, free: 49.83 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.7032, allocations: 1.188 kB / 390.9 MB, free: 49.83 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002861/0.706, allocations: 1.601 MB / 392.5 MB, free: 49.12 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004906/0.7066, allocations: 245.6 kB / 392.7 MB, free: 48.94 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001426/0.7067, allocations: 17 kB / 392.7 MB, free: 48.93 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007459/0.7075, allocations: 39.12 kB / 392.8 MB, free: 48.92 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002268/0.7077, allocations: 53 kB / 392.8 MB, free: 48.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001108/0.7078, allocations: 26.84 kB / 392.8 MB, free: 48.91 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001028/0.7089, allocations: 484.8 kB / 393.3 MB, free: 48.7 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.7089, allocations: 1.5 kB / 393.3 MB, free: 48.7 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.003237/0.7121, allocations: 0.5849 MB / 393.9 MB, free: 48.65 MB / 318.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.004906/0.7171, allocations: 2.508 MB / 396.4 MB, free: 47.37 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.005019/0.7221, allocations: 1.559 MB / 398 MB, free: 46.7 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.318e-05/0.7222, allocations: 0.9844 kB / 398 MB, free: 46.7 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001498/0.7237, allocations: 466.9 kB / 398.4 MB, free: 46.49 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003055/0.7268, allocations: 405.4 kB / 398.8 MB, free: 46.3 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0137/0.7405, allocations: 8.016 MB / 406.8 MB, free: 38.17 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000643/0.7412, allocations: 0.9911 MB / 407.8 MB, free: 37.14 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.002211/0.7434, allocations: 310.5 kB / 408.1 MB, free: 36.84 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006357/0.7441, allocations: 283.3 kB / 408.4 MB, free: 36.56 MB / 318.1 MB Notification: Performance of SimCode: time 1.683e-06/0.7441, allocations: 0 / 408.4 MB, free: 36.56 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0773/0.8214, allocations: 30.55 MB / 439 MB, free: 5.906 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.66/19.48, allocations: 7.609 kB / 439 MB, free: 5.898 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Fluid_Examples_Tanks_EmptyTanks.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1)