Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.539/1.539, allocations: 251.9 MB / 266.9 MB, free: 11.01 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001116/0.001117, allocations: 184.1 kB / 326.5 MB, free: 2.223 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.907/1.907, allocations: 205.4 MB / 0.5775 GB, free: 20.28 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009831/0.0009833, allocations: 89.48 kB / 0.6821 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003561/0.0003562, allocations: 9.719 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2667/0.267, allocations: 106.3 MB / 0.9001 GB, free: 63.8 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger): time 0.02159/0.2887, allocations: 24.01 MB / 0.9236 GB, free: 39.71 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.009709/0.2984, allocations: 6.804 MB / 0.9302 GB, free: 32.89 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001646/0.3001, allocations: 27.81 kB / 0.9303 GB, free: 32.86 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.002034/0.3022, allocations: 394 kB / 0.9306 GB, free: 32.48 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.004602/0.3068, allocations: 1.007 MB / 0.9316 GB, free: 31.47 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.003362/0.3102, allocations: 1.03 MB / 0.9326 GB, free: 30.45 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.003932/0.3141, allocations: 2.687 MB / 0.9353 GB, free: 27.76 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001926/0.3161, allocations: 1.605 MB / 0.9368 GB, free: 26.13 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002275/0.3184, allocations: 1.168 MB / 0.938 GB, free: 24.96 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001496/0.3199, allocations: 0.9217 MB / 0.9389 GB, free: 24.03 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 0.0002294/0.3201, allocations: 76 kB / 0.9389 GB, free: 23.96 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002313/0.3225, allocations: 0.8543 MB / 0.9398 GB, free: 23.1 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0003284/0.3228, allocations: 338.6 kB / 0.9401 GB, free: 22.77 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0006431/0.3235, allocations: 424.7 kB / 0.9405 GB, free: 22.35 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.002811/0.3263, allocations: 2.728 MB / 0.9432 GB, free: 19.61 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.3263, allocations: 0 / 0.9432 GB, free: 19.61 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.224e-06/0.3263, allocations: 0 / 0.9432 GB, free: 19.61 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.025e-05/0.3264, allocations: 0 / 0.9432 GB, free: 19.61 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 348 * Number of variables: 348 Notification: Performance of Generate backend data structure: time 0.004318/0.3307, allocations: 2.127 MB / 0.9452 GB, free: 17.43 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.3308, allocations: 8.031 kB / 0.9452 GB, free: 17.43 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002895/0.3311, allocations: 218.7 kB / 0.9455 GB, free: 17.2 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006871/0.3318, allocations: 237.5 kB / 0.9457 GB, free: 16.97 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00275/0.3345, allocations: 1.597 MB / 0.9472 GB, free: 15.32 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.445e-05/0.3346, allocations: 110.7 kB / 0.9473 GB, free: 15.21 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002008/0.3348, allocations: 148 kB / 0.9475 GB, free: 15.06 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00271/0.3375, allocations: 1.958 MB / 0.9494 GB, free: 13.04 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.646e-05/0.3376, allocations: 3.938 kB / 0.9494 GB, free: 13.04 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001279/0.3377, allocations: 63.98 kB / 0.9495 GB, free: 12.97 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.033e-05/0.3378, allocations: 51.94 kB / 0.9495 GB, free: 12.92 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002383/0.3402, allocations: 1.782 MB / 0.9513 GB, free: 11.13 MB / 0.6042 GB 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.01123/0.3514, allocations: 7.672 MB / 0.9587 GB, free: 3.152 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001794/0.3533, allocations: 1.465 MB / 0.9602 GB, free: 1.664 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007788/0.3611, allocations: 3.861 MB / 0.9639 GB, free: 13.49 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.193e-05/0.3612, allocations: 43.56 kB / 0.964 GB, free: 13.44 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=88): time 6.242e-06/0.3612, allocations: 4 kB / 0.964 GB, free: 13.43 MB / 0.6198 GB Notification: Performance of matching and sorting (n=88): time 0.002941/0.3641, allocations: 1.502 MB / 0.9655 GB, free: 11.92 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.961e-05/0.3642, allocations: 64.41 kB / 0.9655 GB, free: 11.85 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003458/0.3677, allocations: 1.66 MB / 0.9671 GB, free: 10.18 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0002032/0.3679, allocations: 45.7 kB / 0.9672 GB, free: 10.12 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009782/0.3689, allocations: 0.7495 MB / 0.9679 GB, free: 9.367 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004187/0.3693, allocations: 315.6 kB / 0.9682 GB, free: 9.055 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001319/0.3695, allocations: 28 kB / 0.9682 GB, free: 9.027 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0002221/0.3697, allocations: 365.8 kB / 0.9686 GB, free: 8.664 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001153/0.3708, allocations: 0.6831 MB / 0.9693 GB, free: 7.98 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00128/0.3721, allocations: 1.012 MB / 0.9702 GB, free: 6.832 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001378/0.3735, allocations: 0.865 MB / 0.9711 GB, free: 5.969 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.027e-06/0.3735, allocations: 4 kB / 0.9711 GB, free: 5.965 MB / 0.6198 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003275/0.3768, allocations: 1.932 MB / 0.973 GB, free: 4.023 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.001649/0.3785, allocations: 3.514 MB / 0.9764 GB, free: 276 kB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.879e-05/0.3785, allocations: 12 kB / 0.9764 GB, free: 264 kB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.227e-05/0.3786, allocations: 20 kB / 0.9764 GB, free: 244 kB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001373/0.38, allocations: 351.4 kB / 0.9768 GB, free: 15.89 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.422e-05/0.38, allocations: 19.94 kB / 0.9768 GB, free: 15.88 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001776/0.3818, allocations: 226 kB / 0.977 GB, free: 15.65 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001782/0.382, allocations: 59.98 kB / 0.9771 GB, free: 15.59 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/0.382, allocations: 4 kB / 0.9771 GB, free: 15.59 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003015/0.385, allocations: 1.788 MB / 0.9788 GB, free: 13.8 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.042e-05/0.3851, allocations: 8 kB / 0.9788 GB, free: 13.79 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.765e-05/0.3851, allocations: 19.95 kB / 0.9788 GB, free: 13.77 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00131/0.3864, allocations: 347.5 kB / 0.9792 GB, free: 13.43 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.836e-05/0.3865, allocations: 19.94 kB / 0.9792 GB, free: 13.41 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001777/0.3883, allocations: 198.6 kB / 0.9794 GB, free: 13.22 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000171/0.3885, allocations: 56 kB / 0.9794 GB, free: 13.16 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (175): * Single equations (assignments): 175 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001571/0.3901, allocations: 0.7425 MB / 0.9802 GB, free: 12.41 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006542/0.3907, allocations: 146.2 kB / 0.9803 GB, free: 12.27 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002665/0.3934, allocations: 1.296 MB / 0.9816 GB, free: 10.96 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.527e-05/0.3934, allocations: 8 kB / 0.9816 GB, free: 10.95 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.408e-06/0.3934, allocations: 4 kB / 0.9816 GB, free: 10.95 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00168/0.3951, allocations: 1.284 MB / 0.9828 GB, free: 9.582 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006/0.4011, allocations: 2.943 MB / 0.9857 GB, free: 6.559 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.077e-05/0.4012, allocations: 4 kB / 0.9857 GB, free: 6.555 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007959/0.402, allocations: 179.8 kB / 0.9859 GB, free: 6.379 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.421e-05/0.402, allocations: 8.125 kB / 0.9859 GB, free: 6.371 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.693e-05/0.4021, allocations: 23.98 kB / 0.9859 GB, free: 6.348 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.15e-05/0.4021, allocations: 7.938 kB / 0.9859 GB, free: 6.34 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.4021, allocations: 0 / 0.9859 GB, free: 6.34 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003144/0.4053, allocations: 1.963 MB / 0.9878 GB, free: 4.301 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001323/0.4066, allocations: 438.7 kB / 0.9883 GB, free: 3.852 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000494/0.4071, allocations: 27.94 kB / 0.9883 GB, free: 3.824 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001204/0.4083, allocations: 85.39 kB / 0.9884 GB, free: 3.742 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000122/0.4085, allocations: 48.92 kB / 0.9884 GB, free: 3.695 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.278e-05/0.4086, allocations: 39.97 kB / 0.9885 GB, free: 3.656 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.002263/0.4109, allocations: 1.249 MB / 0.9897 GB, free: 2.41 MB / 0.6355 GB Notification: Performance of sort global known variables: time 2.91e-07/0.4109, allocations: 3.938 kB / 0.9897 GB, free: 2.406 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.003468/0.4143, allocations: 0.9124 MB / 0.9906 GB, free: 1.492 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (indTanHex.vol[1].dynBal.U,indTanHex.vol[2].dynBal.U,indTanHex.vol[3].dynBal.U,indTanHex.cap[1].T,indTanHex.cap[2].T,indTanHex.cap[3].T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004291/0.4186, allocations: 3.022 MB / 0.9935 GB, free: 14.43 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.004201/0.4229, allocations: 2.314 MB / 0.9958 GB, free: 12.11 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 6.933e-06/0.4229, allocations: 0 / 0.9958 GB, free: 12.11 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0008036/0.4237, allocations: 0.5209 MB / 0.9963 GB, free: 11.59 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00459/0.4283, allocations: 0.8398 MB / 0.9971 GB, free: 10.77 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0144/0.4427, allocations: 11.52 MB / 1.008 GB, free: 14.99 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00193/0.4447, allocations: 1.696 MB / 1.01 GB, free: 13.26 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.003684/0.4484, allocations: 0.9188 MB / 1.011 GB, free: 12.36 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001415/0.4499, allocations: 0.6164 MB / 1.012 GB, free: 11.74 MB / 0.6667 GB Notification: Performance of SimCode: time 1.823e-06/0.4499, allocations: 0 / 1.012 GB, free: 11.74 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5375/0.9874, allocations: 48.73 MB / 1.059 GB, free: 140.5 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001781/0.9877, allocations: 257.3 kB / 1.059 GB, free: 140.2 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.407/4.395, allocations: 0 / 1.059 GB, free: 140.2 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1)