Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController") translateModel(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.96/1.96, allocations: 292.3 MB / 308.1 MB, free: 4.246 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001857/0.001857, allocations: 186.2 kB / 376.9 MB, free: 1.812 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.548/1.548, allocations: 205.1 MB / 0.6354 GB, free: 9.793 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009428/0.0009428, allocations: 96.14 kB / 0.7479 GB, free: 60.88 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001096/0.001096, allocations: 51.92 kB / 0.8704 GB, free: 13.12 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3041/0.3052, allocations: 114.5 MB / 0.9822 GB, free: 10.41 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.01054/0.3159, allocations: 4.457 MB / 0.9866 GB, free: 5.922 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.9767/1.293, allocations: 148.3 MB / 1.131 GB, free: 6.742 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001572/1.294, allocations: 14.16 kB / 1.131 GB, free: 6.738 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.001333/1.296, allocations: 170.4 kB / 1.132 GB, free: 6.645 MB / 0.7448 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4-maint.8.1.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 8.1.4-maint.8.1.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 8.1.4-maint.8.1.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.002986/1.299, allocations: 419.4 kB / 1.132 GB, free: 6.43 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.003205/1.302, allocations: 0.69 MB / 1.133 GB, free: 6.055 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.002083/1.304, allocations: 1.135 MB / 1.134 GB, free: 5.512 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001414/1.305, allocations: 0.6132 MB / 1.134 GB, free: 5.18 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009211/1.306, allocations: 389.9 kB / 1.135 GB, free: 5.004 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009363/1.307, allocations: 435.5 kB / 1.135 GB, free: 4.781 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 0.0003011/1.308, allocations: 53.06 kB / 1.135 GB, free: 4.781 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001274/1.309, allocations: 339.7 kB / 1.136 GB, free: 4.703 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 0.0004085/1.309, allocations: 220.9 kB / 1.136 GB, free: 4.582 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 0.0008998/1.31, allocations: 477.5 kB / 1.136 GB, free: 4.27 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.002434/1.313, allocations: 1.417 MB / 1.138 GB, free: 3.68 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/1.313, allocations: 0 / 1.138 GB, free: 3.68 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.353e-06/1.313, allocations: 0 / 1.138 GB, free: 3.68 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 6.595e-05/1.313, allocations: 0 / 1.138 GB, free: 3.68 MB / 0.7448 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.004072/1.317, allocations: 1.373 MB / 1.139 GB, free: 2.734 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.614e-05/1.317, allocations: 12.73 kB / 1.139 GB, free: 2.734 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001472/1.318, allocations: 179.5 kB / 1.139 GB, free: 2.676 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001852/1.32, allocations: 0.7302 MB / 1.14 GB, free: 2.191 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.249e-05/1.32, allocations: 66.47 kB / 1.14 GB, free: 2.156 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001612/1.321, allocations: 74.34 kB / 1.14 GB, free: 2.133 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002381/1.323, allocations: 0.868 MB / 1.141 GB, free: 1.727 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.308e-05/1.323, allocations: 3.938 kB / 1.141 GB, free: 1.723 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001172/1.323, allocations: 31.41 kB / 1.141 GB, free: 1.699 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.147e-05/1.323, allocations: 19.41 kB / 1.141 GB, free: 1.699 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002589/1.326, allocations: 1.072 MB / 1.142 GB, free: 1.457 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00598/1.332, allocations: 2.42 MB / 1.144 GB, free: 92 kB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002049/1.334, allocations: 0.7415 MB / 1.145 GB, free: 15.8 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007841/1.335, allocations: 287.5 kB / 1.145 GB, free: 15.7 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002746/1.335, allocations: 113.4 kB / 1.145 GB, free: 15.59 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00114/1.336, allocations: 444.6 kB / 1.146 GB, free: 15.4 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=73): time 3.797e-06/1.336, allocations: 0 / 1.146 GB, free: 15.4 MB / 0.7605 GB Notification: Performance of matching and sorting (n=73): time 0.004531/1.341, allocations: 1.118 MB / 1.147 GB, free: 14.93 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001676/1.341, allocations: 194.6 kB / 1.147 GB, free: 14.7 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00142/1.342, allocations: 0.6298 MB / 1.148 GB, free: 14.42 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 0.0001526/1.343, allocations: 39.77 kB / 1.148 GB, free: 14.38 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007877/1.343, allocations: 392.5 kB / 1.148 GB, free: 14.08 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003635/1.344, allocations: 241.1 kB / 1.148 GB, free: 13.89 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004121/1.344, allocations: 147.2 kB / 1.148 GB, free: 13.82 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0002961/1.344, allocations: 390.2 kB / 1.149 GB, free: 13.47 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007609/1.345, allocations: 247.1 kB / 1.149 GB, free: 13.39 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009439/1.346, allocations: 346 kB / 1.149 GB, free: 13.23 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001679/1.348, allocations: 0.5713 MB / 1.15 GB, free: 12.97 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/1.348, allocations: 0 / 1.15 GB, free: 12.97 MB / 0.7605 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.003006/1.351, allocations: 0.8171 MB / 1.151 GB, free: 12.64 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 3.154e-05/1.351, allocations: 4.188 kB / 1.151 GB, free: 12.64 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.639e-05/1.351, allocations: 3.406 kB / 1.151 GB, free: 12.64 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008412/1.352, allocations: 81.62 kB / 1.151 GB, free: 12.62 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009231/1.353, allocations: 152.4 kB / 1.151 GB, free: 12.6 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002941/1.356, allocations: 1.536 MB / 1.152 GB, free: 11.16 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001057/1.357, allocations: 80.44 kB / 1.153 GB, free: 11.12 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001049/1.357, allocations: 34.5 kB / 1.153 GB, free: 11.11 MB / 0.7605 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.0007388/1.358, allocations: 258.5 kB / 1.153 GB, free: 10.91 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002415/1.358, allocations: 82 kB / 1.153 GB, free: 10.87 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00333/1.361, allocations: 1.009 MB / 1.154 GB, free: 10.47 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/1.361, allocations: 6.562 kB / 1.154 GB, free: 10.47 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.73e-06/1.361, allocations: 7.5 kB / 1.154 GB, free: 10.46 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.133e-05/1.361, allocations: 3.422 kB / 1.154 GB, free: 10.46 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001454/1.363, allocations: 0.8692 MB / 1.155 GB, free: 9.996 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.581e-06/1.363, allocations: 0 / 1.155 GB, free: 9.996 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008684/1.364, allocations: 143.1 kB / 1.155 GB, free: 9.984 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000741/1.364, allocations: 90.64 kB / 1.155 GB, free: 9.953 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.785e-05/1.365, allocations: 29.27 kB / 1.155 GB, free: 9.941 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002562/1.367, allocations: 1.548 MB / 1.157 GB, free: 8.496 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/1.367, allocations: 1.312 kB / 1.157 GB, free: 8.496 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004224/1.371, allocations: 1.896 MB / 1.158 GB, free: 7.328 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005296/1.372, allocations: 263.4 kB / 1.159 GB, free: 7.133 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000141/1.372, allocations: 18.47 kB / 1.159 GB, free: 7.121 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007765/1.373, allocations: 62.3 kB / 1.159 GB, free: 7.105 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001958/1.373, allocations: 59.16 kB / 1.159 GB, free: 7.098 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.347e-05/1.373, allocations: 39.48 kB / 1.159 GB, free: 7.086 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.0008199/1.374, allocations: 446 kB / 1.159 GB, free: 6.895 MB / 0.7605 GB Notification: Performance of sort global known variables: time 2.21e-07/1.374, allocations: 0 / 1.159 GB, free: 6.895 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.001388/1.375, allocations: 285.1 kB / 1.159 GB, free: 6.812 MB / 0.7605 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.001864/1.377, allocations: 0.5753 MB / 1.16 GB, free: 6.551 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.00213/1.379, allocations: 0.7737 MB / 1.161 GB, free: 6.227 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/1.38, allocations: 0 / 1.161 GB, free: 6.227 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0008277/1.38, allocations: 0.4938 MB / 1.161 GB, free: 5.988 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001222/1.382, allocations: 274 kB / 1.162 GB, free: 5.91 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004369/1.386, allocations: 2.592 MB / 1.164 GB, free: 4.34 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006133/1.387, allocations: 1.042 MB / 1.165 GB, free: 3.605 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.0009226/1.388, allocations: 259.1 kB / 1.165 GB, free: 3.555 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002299/1.388, allocations: 93.28 kB / 1.165 GB, free: 3.535 MB / 0.7605 GB Notification: Performance of SimCode: time 9.12e-07/1.388, allocations: 0 / 1.165 GB, free: 3.535 MB / 0.7605 GB Notification: Performance of Templates: time 0.02586/1.414, allocations: 13.74 MB / 1.179 GB, free: 2.406 MB / 0.7605 GB make -j1 -f Buildings_8_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.makefile (rm -f Buildings_8_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; mkfifo Buildings_8_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe >> ../files/Buildings_8_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.sim & ./Buildings_8_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe 2>&1)