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.0008657/0.0008657, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.006663/0.006663, allocations: 170.1 kB / 16.26 MB, free: 6.676 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.761/1.761, allocations: 205.4 MB / 222.4 MB, free: 5.789 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.611/1.611, allocations: 252 MB / 0.5105 GB, free: 4.723 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.0005609/0.0005612, allocations: 20 kB / 0.6249 GB, free: 0.7578 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6431/0.6436, allocations: 106.3 MB / 0.7287 GB, free: 11.31 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.006151/0.6498, allocations: 4.033 MB / 0.7327 GB, free: 7.258 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.1891/0.839, allocations: 146.7 MB / 0.8759 GB, free: 3.965 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001203/0.8403, allocations: 15.94 kB / 0.876 GB, free: 3.949 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.001061/0.8414, allocations: 166.8 kB / 0.8761 GB, free: 3.785 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.002326/0.8437, allocations: 421.6 kB / 0.8765 GB, free: 3.375 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.002425/0.8462, allocations: 0.6854 MB / 0.8772 GB, free: 2.695 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.001874/0.8481, allocations: 1.125 MB / 0.8783 GB, free: 1.562 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001176/0.8492, allocations: 0.6021 MB / 0.8789 GB, free: 0.9375 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007434/0.85, allocations: 314.3 kB / 0.8792 GB, free: 0.6289 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007216/0.8507, allocations: 342 kB / 0.8795 GB, free: 300 kB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0002361/0.851, allocations: 20 kB / 0.8795 GB, free: 280 kB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001225/0.8522, allocations: 307.7 kB / 0.8798 GB, free: 15.97 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.0003441/0.8526, allocations: 183.1 kB / 0.88 GB, free: 15.79 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.0008146/0.8534, allocations: 434.9 kB / 0.8804 GB, free: 15.36 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.003074/0.8565, allocations: 1.366 MB / 0.8817 GB, free: 13.99 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.8565, allocations: 0 / 0.8817 GB, free: 13.99 MB / 0.7012 GB Notification: Performance of FrontEnd: time 2.094e-06/0.8565, allocations: 0 / 0.8817 GB, free: 13.99 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 5.121e-05/0.8566, allocations: 0 / 0.8817 GB, free: 13.99 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.003387/0.86, allocations: 1.159 MB / 0.8829 GB, free: 12.78 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 5.222e-05/0.86, allocations: 16.03 kB / 0.8829 GB, free: 12.77 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001412/0.8614, allocations: 191.4 kB / 0.8831 GB, free: 12.58 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001683/0.8631, allocations: 0.7351 MB / 0.8838 GB, free: 11.8 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.413e-05/0.8632, allocations: 58 kB / 0.8838 GB, free: 11.74 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001827/0.8634, allocations: 76 kB / 0.8839 GB, free: 11.67 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002112/0.8655, allocations: 0.8831 MB / 0.8848 GB, free: 10.75 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.185e-05/0.8656, allocations: 0 / 0.8848 GB, free: 10.75 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001023/0.8657, allocations: 32 kB / 0.8848 GB, free: 10.71 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.18e-05/0.8657, allocations: 20 kB / 0.8848 GB, free: 10.7 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002033/0.8678, allocations: 1.089 MB / 0.8859 GB, free: 9.602 MB / 0.7012 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004834/0.8726, allocations: 2.445 MB / 0.8883 GB, free: 7.09 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001501/0.8741, allocations: 0.7531 MB / 0.889 GB, free: 6.328 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005906/0.8747, allocations: 286.7 kB / 0.8893 GB, free: 6.047 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002308/0.875, allocations: 113.7 kB / 0.8894 GB, free: 5.914 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009341/0.8759, allocations: 455.2 kB / 0.8898 GB, free: 5.453 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=73): time 4.138e-06/0.8759, allocations: 0 / 0.8898 GB, free: 5.453 MB / 0.7012 GB Notification: Performance of matching and sorting (n=73): time 0.003389/0.8793, allocations: 1.143 MB / 0.8909 GB, free: 4.281 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000152/0.8795, allocations: 196.6 kB / 0.8911 GB, free: 4.047 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001038/0.8806, allocations: 0.6292 MB / 0.8918 GB, free: 3.41 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 8.452e-05/0.8807, allocations: 37.7 kB / 0.8918 GB, free: 3.367 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003876/0.881, allocations: 388.4 kB / 0.8922 GB, free: 2.98 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002667/0.8813, allocations: 240.5 kB / 0.8924 GB, free: 2.742 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/0.8815, allocations: 69.69 kB / 0.8925 GB, free: 2.668 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001982/0.8817, allocations: 382.8 kB / 0.8928 GB, free: 2.285 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005653/0.8822, allocations: 253.9 kB / 0.8931 GB, free: 2.035 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000612/0.8829, allocations: 347.1 kB / 0.8934 GB, free: 1.68 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001187/0.8841, allocations: 0.5916 MB / 0.894 GB, free: 1.074 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.187e-06/0.8841, allocations: 0 / 0.894 GB, free: 1.074 MB / 0.7012 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002028/0.8861, allocations: 0.8253 MB / 0.8948 GB, free: 248 kB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.317e-05/0.8861, allocations: 7.938 kB / 0.8948 GB, free: 240 kB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.8862, allocations: 0 / 0.8948 GB, free: 240 kB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006538/0.8868, allocations: 84.86 kB / 0.8949 GB, free: 152 kB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006456/0.8875, allocations: 151.8 kB / 0.895 GB, free: 0 / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002382/0.8899, allocations: 1.539 MB / 0.8965 GB, free: 14.32 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007706/0.8906, allocations: 95.42 kB / 0.8966 GB, free: 14.23 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.784e-05/0.8907, allocations: 31.97 kB / 0.8966 GB, free: 14.2 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.0005848/0.8913, allocations: 261.8 kB / 0.8969 GB, free: 13.93 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002093/0.8916, allocations: 79.06 kB / 0.897 GB, free: 13.85 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002483/0.8941, allocations: 1.014 MB / 0.8979 GB, free: 12.82 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.128e-05/0.8941, allocations: 12 kB / 0.898 GB, free: 12.81 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.8941, allocations: 0 / 0.898 GB, free: 12.81 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.065e-05/0.8941, allocations: 3.984 kB / 0.898 GB, free: 12.81 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001257/0.8954, allocations: 0.8723 MB / 0.8988 GB, free: 11.88 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.376e-06/0.8954, allocations: 3.938 kB / 0.8988 GB, free: 11.88 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000588/0.896, allocations: 147.8 kB / 0.899 GB, free: 11.73 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005481/0.8965, allocations: 88.77 kB / 0.899 GB, free: 11.64 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.364e-05/0.8966, allocations: 15.98 kB / 0.8991 GB, free: 11.63 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00212/0.8988, allocations: 1.571 MB / 0.9006 GB, free: 9.918 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.8988, allocations: 0 / 0.9006 GB, free: 9.918 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002207/0.901, allocations: 0.881 MB / 0.9015 GB, free: 9.02 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000532/0.9015, allocations: 271.7 kB / 0.9017 GB, free: 8.734 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001719/0.9017, allocations: 16 kB / 0.9017 GB, free: 8.719 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006295/0.9024, allocations: 79.81 kB / 0.9018 GB, free: 8.641 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001588/0.9025, allocations: 60.91 kB / 0.9019 GB, free: 8.582 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.58e-05/0.9026, allocations: 35.92 kB / 0.9019 GB, free: 8.547 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0007082/0.9033, allocations: 455 kB / 0.9023 GB, free: 8.109 MB / 0.7169 GB Notification: Performance of sort global known variables: time 3.31e-07/0.9033, allocations: 0 / 0.9023 GB, free: 8.109 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0009662/0.9043, allocations: 279.2 kB / 0.9026 GB, free: 7.836 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.001479/0.9058, allocations: 0.5664 MB / 0.9032 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001818/0.9076, allocations: 0.7924 MB / 0.9039 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.9076, allocations: 0 / 0.9039 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000951/0.9086, allocations: 0.4925 MB / 0.9044 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001462/0.9101, allocations: 287.4 kB / 0.9047 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005058/0.9151, allocations: 2.232 MB / 0.9069 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000771/0.9159, allocations: 1.011 MB / 0.9078 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.001026/0.917, allocations: 250.1 kB / 0.9081 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003096/0.9173, allocations: 95.39 kB / 0.9082 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of SimCode: time 1.443e-06/0.9173, allocations: 3.938 kB / 0.9082 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of Templates: time 0.502/1.419, allocations: 13.29 MB / 0.9212 GB, free: 176.3 MB / 0.7169 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: