Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.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.DirectTiltedSurface,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface") translateModel(Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 115.3 kB / 15.34 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.001153/0.001153, allocations: 191.5 kB / 16.25 MB, free: 6.586 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.382/1.382, allocations: 205.1 MB / 222.1 MB, free: 4.68 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.706/1.706, allocations: 292.2 MB / 0.5485 GB, free: 13.63 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.001334/0.001335, allocations: 63.83 kB / 0.671 GB, free: 26.31 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2264/0.2277, allocations: 114.5 MB / 0.7828 GB, free: 13.93 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.006671/0.2344, allocations: 4.998 MB / 0.7877 GB, free: 8.898 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.5652/0.7997, allocations: 148.3 MB / 0.9325 GB, free: 5.605 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000798/0.8005, allocations: 20.41 kB / 0.9326 GB, free: 5.605 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.000594/0.8011, allocations: 146.3 kB / 0.9327 GB, free: 5.605 MB / 0.7325 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.8028, allocations: 464.4 kB / 0.9331 GB, free: 5.602 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002059/0.8049, allocations: 0.8123 MB / 0.9339 GB, free: 5.578 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.001929/0.8068, allocations: 1.543 MB / 0.9354 GB, free: 5.574 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001486/0.8083, allocations: 1.113 MB / 0.9365 GB, free: 5.359 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001309/0.8096, allocations: 0.6755 MB / 0.9372 GB, free: 5.359 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001043/0.8107, allocations: 0.7304 MB / 0.9379 GB, free: 5.359 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0002319/0.8109, allocations: 187.9 kB / 0.9381 GB, free: 5.359 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009194/0.8118, allocations: 456.7 kB / 0.9385 GB, free: 5.348 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0003999/0.8123, allocations: 439.3 kB / 0.9389 GB, free: 5.344 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0007886/0.8131, allocations: 0.8017 MB / 0.9397 GB, free: 5.344 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.002536/0.8156, allocations: 2.179 MB / 0.9418 GB, free: 5.152 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.8156, allocations: 0 / 0.9418 GB, free: 5.152 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.685e-06/0.8156, allocations: 2.672 kB / 0.9418 GB, free: 5.152 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.314e-05/0.8157, allocations: 0 / 0.9418 GB, free: 5.152 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: 364 * Number of variables: 364 Notification: Performance of Generate backend data structure: time 0.003259/0.819, allocations: 1.79 MB / 0.9436 GB, free: 20.26 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.819, allocations: 13.12 kB / 0.9436 GB, free: 20.26 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009706/0.82, allocations: 239.7 kB / 0.9438 GB, free: 20.17 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00111/0.8211, allocations: 0.8964 MB / 0.9447 GB, free: 19.82 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001071/0.8212, allocations: 137.5 kB / 0.9448 GB, free: 19.78 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001517/0.8214, allocations: 136.9 kB / 0.945 GB, free: 19.78 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002218/0.8236, allocations: 1.438 MB / 0.9464 GB, free: 19.59 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.891e-05/0.8236, allocations: 5.812 kB / 0.9464 GB, free: 19.59 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001176/0.8238, allocations: 67.2 kB / 0.9464 GB, free: 19.59 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.53e-05/0.8238, allocations: 35.31 kB / 0.9465 GB, free: 19.59 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002655/0.8265, allocations: 1.456 MB / 0.9479 GB, free: 19.57 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006776/0.8333, allocations: 3.763 MB / 0.9516 GB, free: 18.62 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002018/0.8353, allocations: 0.9073 MB / 0.9525 GB, free: 18.57 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006421/0.836, allocations: 362.9 kB / 0.9528 GB, free: 18.56 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 9.269e-05/0.8361, allocations: 43.23 kB / 0.9529 GB, free: 18.56 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009894/0.8371, allocations: 0.5447 MB / 0.9534 GB, free: 18.48 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=93): time 2.455e-06/0.8371, allocations: 0 / 0.9534 GB, free: 18.48 MB / 0.7481 GB Notification: Performance of matching and sorting (n=93): time 0.003478/0.8406, allocations: 1.378 MB / 0.9547 GB, free: 18.25 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00012/0.8407, allocations: 194 kB / 0.9549 GB, free: 18.04 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001165/0.8419, allocations: 0.7431 MB / 0.9556 GB, free: 17.91 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.0001739/0.8421, allocations: 40.7 kB / 0.9557 GB, free: 17.88 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005622/0.8426, allocations: 0.5808 MB / 0.9562 GB, free: 17.59 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002684/0.8429, allocations: 307.7 kB / 0.9565 GB, free: 17.4 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002801/0.8432, allocations: 197.7 kB / 0.9567 GB, free: 17.38 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001266/0.8433, allocations: 345.4 kB / 0.9571 GB, free: 17.06 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000669/0.844, allocations: 334 kB / 0.9574 GB, free: 17.06 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007893/0.8448, allocations: 431 kB / 0.9578 GB, free: 17 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001453/0.8463, allocations: 0.7651 MB / 0.9585 GB, free: 16.94 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/0.8463, allocations: 1.438 kB / 0.9585 GB, free: 16.94 MB / 0.7481 GB Notification: Performance of matching and sorting (n=113) (initialization): time 0.002419/0.8487, allocations: 1.029 MB / 0.9595 GB, free: 16.82 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.502e-05/0.8488, allocations: 5.625 kB / 0.9595 GB, free: 16.82 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.8488, allocations: 5.109 kB / 0.9596 GB, free: 16.82 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006227/0.8494, allocations: 81.97 kB / 0.9596 GB, free: 16.81 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008668/0.8503, allocations: 203.9 kB / 0.9598 GB, free: 16.8 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002133/0.8524, allocations: 1.641 MB / 0.9614 GB, free: 15.42 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009341/0.8534, allocations: 99.14 kB / 0.9615 GB, free: 15.38 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.242e-05/0.8535, allocations: 49.08 kB / 0.9616 GB, free: 15.38 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (111): * Single equations (assignments): 110 * 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.0007045/0.8542, allocations: 321 kB / 0.9619 GB, free: 15.26 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002061/0.8544, allocations: 102.3 kB / 0.962 GB, free: 15.21 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002834/0.8572, allocations: 1.289 MB / 0.9632 GB, free: 15.07 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.108e-05/0.8573, allocations: 11.09 kB / 0.9632 GB, free: 15.07 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.8573, allocations: 0 / 0.9632 GB, free: 15.07 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.171e-05/0.8573, allocations: 6.422 kB / 0.9632 GB, free: 15.07 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003951/0.8613, allocations: 2.483 MB / 0.9657 GB, free: 14.69 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.843e-06/0.8613, allocations: 2.297 kB / 0.9657 GB, free: 14.69 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007374/0.862, allocations: 179.1 kB / 0.9658 GB, free: 14.69 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004744/0.8625, allocations: 72.02 kB / 0.9659 GB, free: 14.68 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.835e-05/0.8626, allocations: 32.05 kB / 0.9659 GB, free: 14.68 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001915/0.8645, allocations: 1.68 MB / 0.9676 GB, free: 13.28 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.8645, allocations: 0 / 0.9676 GB, free: 13.28 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002261/0.8668, allocations: 1.115 MB / 0.9687 GB, free: 13.05 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004677/0.8673, allocations: 308.9 kB / 0.969 GB, free: 12.89 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001455/0.8674, allocations: 27.02 kB / 0.969 GB, free: 12.89 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006947/0.8681, allocations: 65.06 kB / 0.9691 GB, free: 12.89 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000157/0.8683, allocations: 70.59 kB / 0.9691 GB, free: 12.88 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.138e-05/0.8684, allocations: 43.3 kB / 0.9692 GB, free: 12.88 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0007929/0.8692, allocations: 0.5531 MB / 0.9697 GB, free: 12.78 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8692, allocations: 0 / 0.9697 GB, free: 12.78 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.001333/0.8705, allocations: 384.4 kB / 0.9701 GB, free: 12.7 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 (107): * Single equations (assignments): 104 * 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.001411/0.872, allocations: 0.5722 MB / 0.9706 GB, free: 12.47 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.002988/0.875, allocations: 1.196 MB / 0.9718 GB, free: 12.34 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.875, allocations: 4.062 kB / 0.9718 GB, free: 12.33 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0009327/0.8759, allocations: 0.5791 MB / 0.9724 GB, free: 12.21 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001466/0.8774, allocations: 311.5 kB / 0.9727 GB, free: 12.19 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004921/0.8823, allocations: 2.973 MB / 0.9756 GB, free: 10.65 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000827/0.8832, allocations: 1.161 MB / 0.9767 GB, free: 9.93 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.001115/0.8843, allocations: 292.1 kB / 0.977 GB, free: 9.852 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003002/0.8846, allocations: 120.7 kB / 0.9771 GB, free: 9.844 MB / 0.7481 GB Notification: Performance of SimCode: time 9.62e-07/0.8846, allocations: 0 / 0.9771 GB, free: 9.844 MB / 0.7481 GB Notification: Performance of Templates: time 0.02927/0.9139, allocations: 16.8 MB / 0.9935 GB, free: 3.918 MB / 0.7481 GB make -j1 -f Buildings_8_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.makefile (rm -f Buildings_8_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe ; mkfifo Buildings_8_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe ; head -c 1048576 < Buildings_8_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe >> ../files/Buildings_8_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.sim & ./Buildings_8_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe 2>&1)