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.001065/0.001065, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001215/0.001215, allocations: 190.9 kB / 16.25 MB, free: 6.621 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.699/1.699, allocations: 205.1 MB / 222.1 MB, free: 4.691 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.58/1.58, allocations: 251.6 MB / 0.5089 GB, free: 3.266 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.001351/0.001351, allocations: 59.91 kB / 0.6217 GB, free: 1.863 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5904/0.5918, allocations: 104.7 MB / 0.724 GB, free: 13.07 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.006613/0.5985, allocations: 4.453 MB / 0.7283 GB, free: 8.598 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.1779/0.7765, allocations: 148.4 MB / 0.8733 GB, free: 3.625 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001189/0.7777, allocations: 19.88 kB / 0.8733 GB, free: 3.605 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.000784/0.7786, allocations: 162.9 kB / 0.8734 GB, free: 3.445 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.001897/0.7805, allocations: 437.3 kB / 0.8739 GB, free: 3.02 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.001965/0.7825, allocations: 0.697 MB / 0.8745 GB, free: 2.328 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.001214/0.7837, allocations: 1.223 MB / 0.8757 GB, free: 1.098 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009362/0.7847, allocations: 0.622 MB / 0.8763 GB, free: 464 kB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006112/0.7853, allocations: 450.3 kB / 0.8768 GB, free: 12 kB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005385/0.7858, allocations: 466 kB / 0.8772 GB, free: 15.55 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.000138/0.786, allocations: 104 kB / 0.8773 GB, free: 15.45 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008077/0.7868, allocations: 399.5 kB / 0.8777 GB, free: 15.06 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.0002664/0.7871, allocations: 279.1 kB / 0.878 GB, free: 14.79 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.0004462/0.7875, allocations: 0.5206 MB / 0.8785 GB, free: 14.27 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.001698/0.7892, allocations: 1.456 MB / 0.8799 GB, free: 12.8 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.7892, allocations: 0 / 0.8799 GB, free: 12.8 MB / 0.7012 GB Notification: Performance of FrontEnd: time 2.525e-06/0.7893, allocations: 0 / 0.8799 GB, free: 12.8 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 2.779e-05/0.7893, allocations: 0 / 0.8799 GB, free: 12.8 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.00316/0.7925, allocations: 1.365 MB / 0.8812 GB, free: 11.39 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 6.791e-05/0.7925, allocations: 8.031 kB / 0.8812 GB, free: 11.38 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001112/0.7937, allocations: 187.4 kB / 0.8814 GB, free: 11.2 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001304/0.795, allocations: 0.7351 MB / 0.8821 GB, free: 10.42 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.107e-05/0.7951, allocations: 69.92 kB / 0.8822 GB, free: 10.35 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001047/0.7952, allocations: 76 kB / 0.8823 GB, free: 10.28 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001824/0.797, allocations: 0.8598 MB / 0.8831 GB, free: 9.375 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.843e-05/0.7971, allocations: 0 / 0.8831 GB, free: 9.375 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000113/0.7972, allocations: 36 kB / 0.8831 GB, free: 9.34 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.487e-05/0.7972, allocations: 20 kB / 0.8832 GB, free: 9.32 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001797/0.799, allocations: 1.073 MB / 0.8842 GB, free: 8.246 MB / 0.7012 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004131/0.8032, allocations: 2.424 MB / 0.8866 GB, free: 5.754 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001342/0.8046, allocations: 0.7375 MB / 0.8873 GB, free: 5.008 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005108/0.8051, allocations: 290.7 kB / 0.8876 GB, free: 4.723 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002203/0.8053, allocations: 109.8 kB / 0.8877 GB, free: 4.594 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009349/0.8062, allocations: 443.2 kB / 0.8881 GB, free: 4.145 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=73): time 3.055e-06/0.8063, allocations: 0 / 0.8881 GB, free: 4.145 MB / 0.7012 GB Notification: Performance of matching and sorting (n=73): time 0.003183/0.8095, allocations: 1.123 MB / 0.8892 GB, free: 2.992 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000115/0.8096, allocations: 188.6 kB / 0.8894 GB, free: 2.766 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007783/0.8104, allocations: 0.6293 MB / 0.89 GB, free: 2.133 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 6.071e-05/0.8104, allocations: 37.7 kB / 0.89 GB, free: 2.09 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002993/0.8107, allocations: 396.2 kB / 0.8904 GB, free: 1.695 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001837/0.8109, allocations: 244.4 kB / 0.8906 GB, free: 1.453 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002184/0.8112, allocations: 150.5 kB / 0.8908 GB, free: 1.297 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001793/0.8114, allocations: 386.8 kB / 0.8912 GB, free: 0.9102 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004552/0.8118, allocations: 245.9 kB / 0.8914 GB, free: 0.6719 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005535/0.8124, allocations: 347 kB / 0.8917 GB, free: 324 kB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009987/0.8134, allocations: 0.576 MB / 0.8923 GB, free: 15.73 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.8134, allocations: 0 / 0.8923 GB, free: 15.73 MB / 0.7169 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001818/0.8152, allocations: 0.8058 MB / 0.8931 GB, free: 14.91 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.8153, allocations: 8 kB / 0.8931 GB, free: 14.91 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.305e-06/0.8153, allocations: 0 / 0.8931 GB, free: 14.91 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006032/0.8159, allocations: 88.84 kB / 0.8932 GB, free: 14.82 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006111/0.8165, allocations: 151.7 kB / 0.8933 GB, free: 14.67 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002183/0.8187, allocations: 1.646 MB / 0.8949 GB, free: 12.88 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007015/0.8194, allocations: 83.31 kB / 0.895 GB, free: 12.79 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.681e-05/0.8195, allocations: 36.03 kB / 0.895 GB, free: 12.76 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.0005082/0.82, allocations: 260.5 kB / 0.8953 GB, free: 12.5 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001564/0.8202, allocations: 86.98 kB / 0.8954 GB, free: 12.41 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002231/0.8224, allocations: 1.006 MB / 0.8963 GB, free: 11.39 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.8224, allocations: 8 kB / 0.8963 GB, free: 11.38 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.8224, allocations: 0 / 0.8963 GB, free: 11.38 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.8225, allocations: 3.984 kB / 0.8963 GB, free: 11.38 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001043/0.8235, allocations: 0.8684 MB / 0.8972 GB, free: 10.46 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.8235, allocations: 0 / 0.8972 GB, free: 10.46 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005938/0.8241, allocations: 151.8 kB / 0.8973 GB, free: 10.31 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004557/0.8246, allocations: 64.8 kB / 0.8974 GB, free: 10.24 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.222e-05/0.8246, allocations: 23.98 kB / 0.8974 GB, free: 10.22 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001949/0.8266, allocations: 1.685 MB / 0.8991 GB, free: 8.387 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.8266, allocations: 0 / 0.8991 GB, free: 8.387 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001885/0.8285, allocations: 0.8695 MB / 0.8999 GB, free: 7.5 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000373/0.8289, allocations: 267.7 kB / 0.9002 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001053/0.829, allocations: 16 kB / 0.9002 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005321/0.8295, allocations: 55.88 kB / 0.9002 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001569/0.8297, allocations: 68.91 kB / 0.9003 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.778e-05/0.8298, allocations: 31.98 kB / 0.9003 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0006169/0.8304, allocations: 447 kB / 0.9008 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8304, allocations: 0 / 0.9008 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0008507/0.8313, allocations: 279.4 kB / 0.901 GB, free: 6.344 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.001353/0.8326, allocations: 0.5664 MB / 0.9016 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.002155/0.8348, allocations: 0.9641 MB / 0.9025 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 5.269e-06/0.8348, allocations: 4 kB / 0.9025 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0008315/0.8357, allocations: 0.4885 MB / 0.903 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001223/0.8369, allocations: 306.4 kB / 0.9033 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004023/0.8409, allocations: 2.152 MB / 0.9054 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006061/0.8416, allocations: 1.011 MB / 0.9064 GB, free: 0.9648 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0009196/0.8425, allocations: 246.1 kB / 0.9066 GB, free: 0.7227 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000251/0.8428, allocations: 99.39 kB / 0.9067 GB, free: 0.625 MB / 0.7169 GB Notification: Performance of SimCode: time 7.52e-07/0.8428, allocations: 0 / 0.9067 GB, free: 0.625 MB / 0.7169 GB Notification: Performance of Templates: time 0.5156/1.358, allocations: 13.86 MB / 0.9203 GB, free: 177 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)