Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) 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) 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: translateModel(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController") translateModel(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001781/0.001781, allocations: 198.8 kB / 16.14 MB, free: 6.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.598/1.598, allocations: 205.1 MB / 222 MB, free: 4.75 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.681/1.681, allocations: 251.7 MB / 0.5088 GB, free: 3.34 MB / 414.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.001312/0.001312, allocations: 63.91 kB / 0.6216 GB, free: 1.988 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5762/0.5775, allocations: 104.7 MB / 0.7238 GB, free: 13.14 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.00649/0.584, allocations: 4.456 MB / 0.7282 GB, free: 8.668 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.1768/0.7609, allocations: 148.3 MB / 0.873 GB, free: 3.785 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001029/0.762, allocations: 15.94 kB / 0.873 GB, free: 3.77 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.0007971/0.7628, allocations: 166.8 kB / 0.8732 GB, free: 3.605 MB / 0.6856 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/BoundaryConditions/WeatherData/BaseClasses/getHeaderElementTMY3.mo:2:1-105:25:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘ contains a call to impure function ‘Modelica.Utilities.Streams.readLine‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/BoundaryConditions/WeatherData/BaseClasses/getLongitudeTMY3.mo:2:1-48:21:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getLongitudeTMY3‘ contains a call to impure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/BoundaryConditions/WeatherData/BaseClasses/getLatitudeTMY3.mo:2:1-48:20:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getLatitudeTMY3‘ contains a call to impure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/BoundaryConditions/WeatherData/BaseClasses/getTimeZoneTMY3.mo:2:1-47:20:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getTimeZoneTMY3‘ contains a call to impure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘. Notification: Performance of NFTyping.typeBindings: time 0.001713/0.7646, allocations: 421.3 kB / 0.8736 GB, free: 3.195 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.001849/0.7664, allocations: 0.6873 MB / 0.8742 GB, free: 2.516 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.001289/0.7677, allocations: 1.133 MB / 0.8753 GB, free: 1.375 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008166/0.7686, allocations: 0.5983 MB / 0.8759 GB, free: 0.7539 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004985/0.7691, allocations: 398.2 kB / 0.8763 GB, free: 372 kB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004288/0.7695, allocations: 433.9 kB / 0.8767 GB, free: 15.94 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.0001119/0.7696, allocations: 52 kB / 0.8768 GB, free: 15.89 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000727/0.7704, allocations: 339.7 kB / 0.8771 GB, free: 15.55 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.0002192/0.7706, allocations: 227.1 kB / 0.8773 GB, free: 15.33 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.0003695/0.771, allocations: 473.1 kB / 0.8778 GB, free: 14.87 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.001282/0.7723, allocations: 1.41 MB / 0.8791 GB, free: 13.45 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.7723, allocations: 4 kB / 0.8791 GB, free: 13.45 MB / 0.7012 GB Notification: Performance of FrontEnd: time 1.443e-06/0.7723, allocations: 0 / 0.8791 GB, free: 13.45 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 1.074e-05/0.7723, allocations: 4 kB / 0.8792 GB, free: 13.45 MB / 0.7012 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002206/0.7745, allocations: 1.357 MB / 0.8805 GB, free: 12.04 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.7746, allocations: 12.03 kB / 0.8805 GB, free: 12.03 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008955/0.7755, allocations: 183.4 kB / 0.8807 GB, free: 11.85 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009651/0.7764, allocations: 0.7429 MB / 0.8814 GB, free: 11.06 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.735e-05/0.7765, allocations: 58 kB / 0.8814 GB, free: 11 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.754e-05/0.7766, allocations: 72 kB / 0.8815 GB, free: 10.93 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001378/0.778, allocations: 0.8715 MB / 0.8824 GB, free: 10.02 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.7e-05/0.778, allocations: 0 / 0.8824 GB, free: 10.02 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.631e-05/0.7781, allocations: 32 kB / 0.8824 GB, free: 9.992 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.006e-05/0.7781, allocations: 20 kB / 0.8824 GB, free: 9.973 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001622/0.7798, allocations: 1.077 MB / 0.8835 GB, free: 8.891 MB / 0.7012 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00401/0.7838, allocations: 2.422 MB / 0.8858 GB, free: 6.402 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001373/0.7852, allocations: 0.7453 MB / 0.8866 GB, free: 5.648 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005125/0.7857, allocations: 290.6 kB / 0.8868 GB, free: 5.363 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000228/0.786, allocations: 109.8 kB / 0.8869 GB, free: 5.234 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001028/0.787, allocations: 451.2 kB / 0.8874 GB, free: 4.777 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=73): time 4.709e-06/0.787, allocations: 0 / 0.8874 GB, free: 4.777 MB / 0.7012 GB Notification: Performance of matching and sorting (n=73): time 0.003367/0.7904, allocations: 1.119 MB / 0.8885 GB, free: 3.629 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/0.7905, allocations: 188.6 kB / 0.8886 GB, free: 3.402 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000726/0.7912, allocations: 0.6254 MB / 0.8893 GB, free: 2.77 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 5.848e-05/0.7913, allocations: 37.7 kB / 0.8893 GB, free: 2.727 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002918/0.7916, allocations: 400.2 kB / 0.8897 GB, free: 2.328 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001865/0.7918, allocations: 240.5 kB / 0.8899 GB, free: 2.09 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002292/0.792, allocations: 154.5 kB / 0.89 GB, free: 1.93 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001693/0.7922, allocations: 378.8 kB / 0.8904 GB, free: 1.551 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004824/0.7927, allocations: 249.9 kB / 0.8906 GB, free: 1.309 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005901/0.7933, allocations: 343.1 kB / 0.891 GB, free: 0.957 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001044/0.7944, allocations: 0.5799 MB / 0.8915 GB, free: 372 kB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.7944, allocations: 4 kB / 0.8915 GB, free: 368 kB / 0.7012 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.00185/0.7962, allocations: 0.8071 MB / 0.8923 GB, free: 15.54 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.388e-05/0.7963, allocations: 4 kB / 0.8923 GB, free: 15.54 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.7963, allocations: 4 kB / 0.8923 GB, free: 15.54 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006125/0.7969, allocations: 80.86 kB / 0.8924 GB, free: 15.45 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005868/0.7975, allocations: 151.8 kB / 0.8926 GB, free: 15.3 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001938/0.7995, allocations: 1.543 MB / 0.8941 GB, free: 13.62 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006566/0.8001, allocations: 79.45 kB / 0.8941 GB, free: 13.54 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.555e-05/0.8002, allocations: 31.97 kB / 0.8942 GB, free: 13.51 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,$whenCondition1,$whenCondition2) * 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 {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0004419/0.8006, allocations: 261.6 kB / 0.8944 GB, free: 13.25 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001495/0.8008, allocations: 82.97 kB / 0.8945 GB, free: 13.16 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002165/0.803, allocations: 0.9946 MB / 0.8955 GB, free: 12.15 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.658e-06/0.803, allocations: 16 kB / 0.8955 GB, free: 12.14 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.803, allocations: 3.938 kB / 0.8955 GB, free: 12.13 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.257e-06/0.803, allocations: 3.984 kB / 0.8955 GB, free: 12.13 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009231/0.804, allocations: 0.8723 MB / 0.8964 GB, free: 11.21 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.804, allocations: 3.938 kB / 0.8964 GB, free: 11.2 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005432/0.8045, allocations: 143.8 kB / 0.8965 GB, free: 11.06 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005042/0.805, allocations: 80.77 kB / 0.8966 GB, free: 10.98 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.721e-05/0.8051, allocations: 27.92 kB / 0.8966 GB, free: 10.95 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00172/0.8068, allocations: 1.559 MB / 0.8981 GB, free: 9.254 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.8068, allocations: 0 / 0.8981 GB, free: 9.254 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001824/0.8087, allocations: 0.8693 MB / 0.899 GB, free: 8.367 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003142/0.809, allocations: 263.8 kB / 0.8992 GB, free: 8.09 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001084/0.8091, allocations: 16 kB / 0.8992 GB, free: 8.074 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005147/0.8096, allocations: 61.75 kB / 0.8993 GB, free: 8.016 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001341/0.8098, allocations: 60.91 kB / 0.8994 GB, free: 7.957 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.091e-05/0.8098, allocations: 31.98 kB / 0.8994 GB, free: 7.926 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0005412/0.8104, allocations: 451 kB / 0.8998 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.51e-07/0.8104, allocations: 0 / 0.8998 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0007432/0.8111, allocations: 279.2 kB / 0.9001 GB, free: 7.219 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001264/0.8124, allocations: 0.5615 MB / 0.9006 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001547/0.814, allocations: 0.7767 MB / 0.9014 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.814, allocations: 0 / 0.9014 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000837/0.8148, allocations: 0.4964 MB / 0.9019 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001125/0.816, allocations: 262 kB / 0.9021 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003953/0.8199, allocations: 2.158 MB / 0.9042 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005727/0.8205, allocations: 1.011 MB / 0.9052 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0008148/0.8214, allocations: 250.1 kB / 0.9055 GB, free: 1.805 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002276/0.8216, allocations: 95.39 kB / 0.9055 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of SimCode: time 4.31e-07/0.8216, allocations: 0 / 0.9055 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of Templates: time 0.4136/1.235, allocations: 13.38 MB / 0.9186 GB, free: 177.7 MB / 0.7169 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe 2>&1)