Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez") translateModel(Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.688/1.688, allocations: 288.4 MB / 303.4 MB, free: 8.145 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.001017/0.001017, allocations: 184.5 kB / 372 MB, free: 10.26 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.679/1.679, allocations: 205.4 MB / 0.6307 GB, free: 9.988 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008824/0.0008826, allocations: 98.28 kB / 0.7441 GB, free: 5.914 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005966/0.0005969, allocations: 14.69 kB / 0.867 GB, free: 142.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2512/0.2519, allocations: 115.3 MB / 0.9796 GB, free: 27.67 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez): time 0.005625/0.2576, allocations: 5.214 MB / 0.9847 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.7879/1.045, allocations: 137.3 MB / 1.119 GB, free: 2.211 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001184/1.047, allocations: 23.34 kB / 1.119 GB, free: 2.203 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.0005515/1.047, allocations: 169.6 kB / 1.119 GB, free: 2.117 MB / 0.6823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1-maint.8.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 8.0.1-maint.8.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 8.0.1-maint.8.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.001593/1.049, allocations: 470.6 kB / 1.119 GB, free: 1.977 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.003191/1.052, allocations: 0.9065 MB / 1.12 GB, free: 1.91 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.003536/1.056, allocations: 2.008 MB / 1.122 GB, free: 1.629 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002121/1.058, allocations: 1.115 MB / 1.123 GB, free: 1.422 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001791/1.06, allocations: 0.6583 MB / 1.124 GB, free: 1.246 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001406/1.061, allocations: 0.7744 MB / 1.125 GB, free: 1.043 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.0002744/1.061, allocations: 57.34 kB / 1.125 GB, free: 1.043 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001397/1.063, allocations: 323.3 kB / 1.125 GB, free: 1.027 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.000426/1.063, allocations: 346.9 kB / 1.125 GB, free: 0.9453 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.0006053/1.064, allocations: 350.9 kB / 1.126 GB, free: 16.84 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.003183/1.067, allocations: 2.303 MB / 1.128 GB, free: 16.7 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/1.067, allocations: 0 / 1.128 GB, free: 16.7 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.214e-06/1.067, allocations: 0 / 1.128 GB, free: 16.7 MB / 0.698 GB Notification: Performance of Transformations before backend: time 7.055e-05/1.067, allocations: 0 / 1.128 GB, free: 16.7 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 534 * Number of variables: 534 Notification: Performance of Generate backend data structure: time 0.005494/1.073, allocations: 2.074 MB / 1.13 GB, free: 15.63 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/1.073, allocations: 9.688 kB / 1.13 GB, free: 15.63 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02003/1.093, allocations: 2.188 MB / 1.132 GB, free: 14.88 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002881/1.096, allocations: 1.142 MB / 1.133 GB, free: 14.27 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001174/1.096, allocations: 159.2 kB / 1.133 GB, free: 14.25 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003986/1.096, allocations: 206.9 kB / 1.134 GB, free: 14.25 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008651/1.105, allocations: 3.091 MB / 1.137 GB, free: 13.23 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.863e-05/1.105, allocations: 0 / 1.137 GB, free: 13.23 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002582/1.105, allocations: 84.81 kB / 1.137 GB, free: 13.23 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-05/1.105, allocations: 51.16 kB / 1.137 GB, free: 13.23 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01291/1.118, allocations: 4.073 MB / 1.141 GB, free: 12.24 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01824/1.136, allocations: 6.611 MB / 1.147 GB, free: 9.352 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009825/1.146, allocations: 2.74 MB / 1.15 GB, free: 8.793 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004464/1.151, allocations: 1.377 MB / 1.151 GB, free: 8.555 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009423/1.152, allocations: 0.5026 MB / 1.152 GB, free: 8.047 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005352/1.157, allocations: 1.631 MB / 1.153 GB, free: 7.492 MB / 0.698 GB Notification: Performance of pre-optimization done (n=192): time 8.806e-06/1.157, allocations: 0 / 1.153 GB, free: 7.492 MB / 0.698 GB Notification: Performance of matching and sorting (n=192): time 0.01528/1.172, allocations: 4.048 MB / 1.157 GB, free: 6.535 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001424/1.173, allocations: 202 kB / 1.157 GB, free: 6.312 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001605/1.174, allocations: 0.835 MB / 1.158 GB, free: 6.027 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0003558/1.175, allocations: 61.45 kB / 1.158 GB, free: 5.992 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007451/1.175, allocations: 0.6848 MB / 1.159 GB, free: 5.566 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007575/1.176, allocations: 0.6188 MB / 1.16 GB, free: 5.113 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001966/1.176, allocations: 32.75 kB / 1.16 GB, free: 5.113 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001754/1.177, allocations: 374.4 kB / 1.16 GB, free: 4.785 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003761/1.18, allocations: 1.137 MB / 1.161 GB, free: 4.562 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003919/1.184, allocations: 1.302 MB / 1.162 GB, free: 4.238 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003794/1.188, allocations: 1.178 MB / 1.164 GB, free: 4.062 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.987e-06/1.188, allocations: 0 / 1.164 GB, free: 4.062 MB / 0.698 GB Notification: Performance of matching and sorting (n=214) (initialization): time 0.009215/1.197, allocations: 2.857 MB / 1.166 GB, free: 3.262 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.951e-05/1.197, allocations: 6.344 kB / 1.166 GB, free: 3.262 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.367e-05/1.197, allocations: 3.734 kB / 1.166 GB, free: 3.262 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006254/1.198, allocations: 86.22 kB / 1.166 GB, free: 3.223 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003565/1.202, allocations: 0.5534 MB / 1.167 GB, free: 3.043 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002279/1.204, allocations: 1.529 MB / 1.168 GB, free: 1.543 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003779/1.208, allocations: 319.4 kB / 1.169 GB, free: 1.371 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007364/1.209, allocations: 96.27 kB / 1.169 GB, free: 1.328 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,weaDat.conTimMin.canRepeatWeatherFile,weaDat.conTim.canRepeatWeatherFile) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (212): * Single equations (assignments): 211 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.002066/1.211, allocations: 402.1 kB / 1.169 GB, free: 1.027 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008265/1.211, allocations: 140.4 kB / 1.169 GB, free: 0.9531 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01184/1.223, allocations: 3.382 MB / 1.173 GB, free: 15.05 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.116e-05/1.223, allocations: 18.88 kB / 1.173 GB, free: 15.05 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.273e-05/1.223, allocations: 10.86 kB / 1.173 GB, free: 15.05 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.34e-05/1.223, allocations: 7.969 kB / 1.173 GB, free: 15.04 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01528/1.239, allocations: 5.574 MB / 1.178 GB, free: 10.66 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.04e-05/1.239, allocations: 0 / 1.178 GB, free: 10.66 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003348/1.242, allocations: 0.5227 MB / 1.179 GB, free: 10.13 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000642/1.243, allocations: 100.6 kB / 1.179 GB, free: 10.03 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003273/1.243, allocations: 67.92 kB / 1.179 GB, free: 9.965 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002043/1.245, allocations: 1.544 MB / 1.18 GB, free: 8.285 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/1.245, allocations: 4.094 kB / 1.18 GB, free: 8.281 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01002/1.255, allocations: 2.948 MB / 1.183 GB, free: 5.32 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001719/1.257, allocations: 0.5296 MB / 1.184 GB, free: 4.77 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006468/1.258, allocations: 32 kB / 1.184 GB, free: 4.738 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002914/1.261, allocations: 247.8 kB / 1.184 GB, free: 4.496 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003684/1.261, allocations: 125.8 kB / 1.184 GB, free: 4.371 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003225/1.261, allocations: 79.92 kB / 1.184 GB, free: 4.293 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.001478/1.263, allocations: 0.6126 MB / 1.185 GB, free: 3.672 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.31e-07/1.263, allocations: 0 / 1.185 GB, free: 3.672 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.002408/1.265, allocations: 0.5685 MB / 1.185 GB, free: 3.102 MB / 0.7136 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.conTim.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (206): * Single equations (assignments): 203 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001828/1.267, allocations: 0.5925 MB / 1.186 GB, free: 2.676 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.009485/1.277, allocations: 2.876 MB / 1.189 GB, free: 15.79 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.005e-05/1.277, allocations: 8.062 kB / 1.189 GB, free: 15.78 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.004974/1.282, allocations: 1.602 MB / 1.19 GB, free: 14.17 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002645/1.284, allocations: 316.6 kB / 1.191 GB, free: 13.87 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0109/1.295, allocations: 4.671 MB / 1.195 GB, free: 9.168 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001191/1.297, allocations: 1.361 MB / 1.197 GB, free: 7.773 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.004283/1.301, allocations: 0.5463 MB / 1.197 GB, free: 7.223 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001253/1.302, allocations: 211.2 kB / 1.197 GB, free: 7.016 MB / 0.7292 GB Notification: Performance of SimCode: time 2.214e-06/1.302, allocations: 4 kB / 1.197 GB, free: 7.012 MB / 0.7292 GB Notification: Performance of Templates: time 0.04553/1.348, allocations: 25.05 MB / 1.222 GB, free: 14.07 MB / 0.7605 GB make -j1 -f Buildings_maint.8.0.x_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.makefile (rm -f Buildings_maint.8.0.x_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.pipe >> ../files/Buildings_maint.8.0.x_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.sim & ./Buildings_maint.8.0.x_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.pipe 2>&1)