Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.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 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez") translateModel(Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000755/0.0007553, allocations: 91.3 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.005005/0.005005, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.535/1.535, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.694/1.694, allocations: 292.7 MB / 0.5502 GB, free: 14.45 MB / 462.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.0005363/0.0005364, allocations: 13.75 kB / 0.6743 GB, free: 26.05 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2385/0.2391, allocations: 116.3 MB / 0.7879 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez): time 0.006281/0.2454, allocations: 5.555 MB / 0.7933 GB, free: 5.961 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.7012/0.9467, allocations: 147.2 MB / 0.937 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001357/0.9481, allocations: 23.62 kB / 0.9371 GB, free: 1.816 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0006104/0.9487, allocations: 183.4 kB / 0.9372 GB, free: 1.727 MB / 0.7169 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.00164/0.9504, allocations: 496.1 kB / 0.9377 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.002193/0.9526, allocations: 1.096 MB / 0.9388 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001958/0.9545, allocations: 2.176 MB / 0.9409 GB, free: 1.27 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001719/0.9563, allocations: 1.433 MB / 0.9423 GB, free: 16.93 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001449/0.9577, allocations: 0.6786 MB / 0.943 GB, free: 16.89 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001375/0.9591, allocations: 0.8079 MB / 0.9438 GB, free: 16.89 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0002693/0.9594, allocations: 55.69 kB / 0.9438 GB, free: 16.89 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001033/0.9604, allocations: 349.9 kB / 0.9441 GB, free: 16.87 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.000384/0.9608, allocations: 359.1 kB / 0.9445 GB, free: 16.86 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0009808/0.9618, allocations: 0.8517 MB / 0.9453 GB, free: 16.82 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.003558/0.9654, allocations: 2.843 MB / 0.9481 GB, free: 16.52 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.9654, allocations: 0.5 kB / 0.9481 GB, free: 16.52 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.703e-06/0.9654, allocations: 0 / 0.9481 GB, free: 16.52 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.749e-05/0.9655, allocations: 0.5625 kB / 0.9481 GB, free: 16.52 MB / 0.7325 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.005369/0.9709, allocations: 2.05 MB / 0.9501 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.9709, allocations: 8.25 kB / 0.9501 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01566/0.9866, allocations: 2.195 MB / 0.9522 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002918/0.9896, allocations: 1.178 MB / 0.9534 GB, free: 14.81 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001516/0.9898, allocations: 155.7 kB / 0.9535 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000507/0.9903, allocations: 200.1 kB / 0.9537 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009259/0.9995, allocations: 3.114 MB / 0.9568 GB, free: 14.26 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.939e-05/0.9996, allocations: 1.312 kB / 0.9568 GB, free: 14.26 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002654/0.9999, allocations: 87.34 kB / 0.9569 GB, free: 14.26 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.392e-05/1, allocations: 54.36 kB / 0.9569 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01281/1.013, allocations: 4.092 MB / 0.9609 GB, free: 13.26 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01532/1.028, allocations: 6.613 MB / 0.9674 GB, free: 10.35 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008698/1.037, allocations: 2.745 MB / 0.97 GB, free: 9.805 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004299/1.041, allocations: 1.382 MB / 0.9714 GB, free: 9.488 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000802/1.042, allocations: 0.5072 MB / 0.9719 GB, free: 8.969 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004983/1.047, allocations: 1.641 MB / 0.9735 GB, free: 7.988 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=192): time 4.208e-06/1.047, allocations: 0 / 0.9735 GB, free: 7.988 MB / 0.7325 GB Notification: Performance of matching and sorting (n=192): time 0.01477/1.062, allocations: 4.064 MB / 0.9775 GB, free: 5.938 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001547/1.062, allocations: 200.9 kB / 0.9777 GB, free: 5.715 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001497/1.064, allocations: 0.835 MB / 0.9785 GB, free: 5.223 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0004675/1.064, allocations: 58.39 kB / 0.9785 GB, free: 5.168 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007362/1.065, allocations: 0.6867 MB / 0.9792 GB, free: 4.562 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008176/1.066, allocations: 0.6289 MB / 0.9798 GB, free: 4.016 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002822/1.066, allocations: 135 kB / 0.9799 GB, free: 3.926 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001212/1.066, allocations: 309 kB / 0.9802 GB, free: 3.621 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003935/1.07, allocations: 1.145 MB / 0.9814 GB, free: 3.051 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004061/1.074, allocations: 1.314 MB / 0.9826 GB, free: 2.348 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008028/1.082, allocations: 2.416 MB / 0.985 GB, free: 1.109 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.059e-05/1.082, allocations: 0 / 0.985 GB, free: 1.109 MB / 0.7325 GB Notification: Performance of matching and sorting (n=214) (initialization): time 0.009522/1.092, allocations: 2.861 MB / 0.9878 GB, free: 15.69 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 3.332e-05/1.092, allocations: 5.031 kB / 0.9878 GB, free: 15.69 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/1.092, allocations: 7.125 kB / 0.9878 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006243/1.092, allocations: 82.12 kB / 0.9879 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003873/1.096, allocations: 0.5593 MB / 0.9884 GB, free: 15.46 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002225/1.099, allocations: 1.519 MB / 0.9899 GB, free: 13.98 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003409/1.102, allocations: 324.7 kB / 0.9902 GB, free: 13.8 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004197/1.102, allocations: 93.58 kB / 0.9903 GB, free: 13.76 MB / 0.7481 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 (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 (212): * Single equations (assignments): 211 * 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.001323/1.104, allocations: 400.9 kB / 0.9907 GB, free: 13.46 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004375/1.104, allocations: 135.6 kB / 0.9908 GB, free: 13.39 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01116/1.115, allocations: 3.387 MB / 0.9941 GB, free: 11.49 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-05/1.115, allocations: 21.75 kB / 0.9942 GB, free: 11.49 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/1.115, allocations: 0 / 0.9942 GB, free: 11.49 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.399e-05/1.116, allocations: 7.969 kB / 0.9942 GB, free: 11.48 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01468/1.13, allocations: 5.591 MB / 0.9996 GB, free: 8.004 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.33e-05/1.13, allocations: 2.844 kB / 0.9996 GB, free: 8.004 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00358/1.134, allocations: 0.5252 MB / 1 GB, free: 7.84 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005479/1.134, allocations: 90.14 kB / 1 GB, free: 7.797 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003431/1.135, allocations: 71.83 kB / 1 GB, free: 7.746 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00198/1.137, allocations: 1.548 MB / 1.002 GB, free: 6.234 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/1.137, allocations: 3.938 kB / 1.002 GB, free: 6.23 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009925/1.147, allocations: 2.959 MB / 1.005 GB, free: 4.703 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001146/1.148, allocations: 0.5203 MB / 1.005 GB, free: 4.25 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003013/1.148, allocations: 32.16 kB / 1.005 GB, free: 4.227 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00258/1.151, allocations: 248.1 kB / 1.005 GB, free: 4.121 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002653/1.151, allocations: 134.3 kB / 1.006 GB, free: 4.051 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001957/1.151, allocations: 79.08 kB / 1.006 GB, free: 3.992 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.001001/1.152, allocations: 0.6185 MB / 1.006 GB, free: 3.363 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.3e-07/1.152, allocations: 0 / 1.006 GB, free: 3.363 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.002102/1.154, allocations: 0.5762 MB / 1.007 GB, free: 2.785 MB / 0.7481 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 (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.001724/1.156, allocations: 0.6075 MB / 1.007 GB, free: 2.363 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.01014/1.166, allocations: 2.897 MB / 1.01 GB, free: 15.45 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 1.069e-05/1.166, allocations: 4 kB / 1.01 GB, free: 15.45 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.005027/1.171, allocations: 1.61 MB / 1.012 GB, free: 13.83 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002105/1.174, allocations: 309.1 kB / 1.012 GB, free: 13.53 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01066/1.184, allocations: 4.837 MB / 1.017 GB, free: 8.676 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001359/1.186, allocations: 1.353 MB / 1.018 GB, free: 7.285 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.004303/1.19, allocations: 0.5463 MB / 1.019 GB, free: 6.734 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009678/1.191, allocations: 215.2 kB / 1.019 GB, free: 6.523 MB / 0.7637 GB Notification: Performance of SimCode: time 1.463e-06/1.191, allocations: 0 / 1.019 GB, free: 6.523 MB / 0.7637 GB Notification: Performance of Templates: time 0.04807/1.239, allocations: 25.72 MB / 1.044 GB, free: 12.95 MB / 0.795 GB make -j1 -f Buildings_8_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.makefile Environment - environmentSimulation: (rm -f Buildings_8_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.pipe ; mkfifo Buildings_8_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.pipe ; head -c 1048576 < Buildings_8_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.pipe >> ../files/Buildings_8_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.sim & ./Buildings_8_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.pipe 2>&1) Environment - environmentSimulation: