Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Annex60_1.0.0_Annex60.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.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/Annex60 1.0.0/package.mo", uses=false) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/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(Annex60.BoundaryConditions.SolarGeometry.Examples.ZenithAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.BoundaryConditions.SolarGeometry.Examples.ZenithAngle") translateModel(Annex60.BoundaryConditions.SolarGeometry.Examples.ZenithAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.BoundaryConditions.SolarGeometry.Examples.ZenithAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00115/0.00115, 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.001482/0.001482, allocations: 194.7 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.301/1.301, allocations: 205.1 MB / 222.1 MB, free: 4.715 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.3625/0.3625, allocations: 54.93 MB / 324.4 MB, free: 84 kB / 254.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: Annex60 requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002374/0.002374, allocations: 64.45 kB / 394.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1166, allocations: 59.59 MB / 454.5 MB, free: 444 kB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.BoundaryConditions.SolarGeometry.Examples.ZenithAngle): time 0.1859/0.3025, allocations: 3.911 MB / 458.4 MB, free: 37.63 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.1634/0.4659, allocations: 147.9 MB / 0.5921 GB, free: 15.9 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008567/0.4669, allocations: 11.94 kB / 0.5921 GB, free: 15.89 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005084/0.4674, allocations: 83.34 kB / 0.5922 GB, free: 15.8 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/BoundaryConditions/WeatherData/BaseClasses/getHeaderElementTMY3.mo:2:1-104:25:writable] Warning: Pure function ‘Annex60.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘ contains a call to impure function ‘Modelica.Utilities.Streams.readLine‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/BoundaryConditions/WeatherData/BaseClasses/getLongitudeTMY3.mo:2:1-47:21:writable] Warning: Pure function ‘Annex60.BoundaryConditions.WeatherData.BaseClasses.getLongitudeTMY3‘ contains a call to impure function ‘Annex60.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/BoundaryConditions/WeatherData/BaseClasses/getLatitudeTMY3.mo:2:1-47:20:writable] Warning: Pure function ‘Annex60.BoundaryConditions.WeatherData.BaseClasses.getLatitudeTMY3‘ contains a call to impure function ‘Annex60.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/BoundaryConditions/WeatherData/BaseClasses/getTimeZoneTMY3.mo:2:1-46:20:writable] Warning: Pure function ‘Annex60.BoundaryConditions.WeatherData.BaseClasses.getTimeZoneTMY3‘ contains a call to impure function ‘Annex60.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/BoundaryConditions/WeatherData/BaseClasses/getAbsolutePath.mo:2:1-49:20:writable] Warning: Pure function ‘Annex60.BoundaryConditions.WeatherData.BaseClasses.getAbsolutePath‘ contains a call to impure function ‘Modelica.Utilities.Files.exist‘. Notification: Performance of NFTyping.typeBindings: time 0.001507/0.4689, allocations: 365.4 kB / 0.5925 GB, free: 15.45 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001784/0.4707, allocations: 0.6834 MB / 0.5932 GB, free: 14.77 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001209/0.4719, allocations: 1.067 MB / 0.5942 GB, free: 13.71 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007246/0.4727, allocations: 0.531 MB / 0.5947 GB, free: 13.17 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005315/0.4732, allocations: 418.5 kB / 0.5951 GB, free: 12.76 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004051/0.4736, allocations: 418.1 kB / 0.5955 GB, free: 12.35 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001045/0.4737, allocations: 92 kB / 0.5956 GB, free: 12.26 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000688/0.4744, allocations: 403.7 kB / 0.596 GB, free: 11.87 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002294/0.4747, allocations: 243.2 kB / 0.5962 GB, free: 11.63 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003642/0.475, allocations: 461.7 kB / 0.5967 GB, free: 11.18 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001301/0.4763, allocations: 1.305 MB / 0.598 GB, free: 9.867 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.4764, allocations: 0 / 0.598 GB, free: 9.867 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.4764, allocations: 0 / 0.598 GB, free: 9.867 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.501e-05/0.4764, allocations: 0 / 0.598 GB, free: 9.867 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.001789/0.4782, allocations: 1.239 MB / 0.5992 GB, free: 8.582 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.4782, allocations: 8.031 kB / 0.5992 GB, free: 8.574 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001956/0.4802, allocations: 299 kB / 0.5995 GB, free: 8.281 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00102/0.4812, allocations: 0.6249 MB / 0.6001 GB, free: 7.617 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.52e-05/0.4813, allocations: 58 kB / 0.6001 GB, free: 7.559 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001564/0.4815, allocations: 75.98 kB / 0.6002 GB, free: 7.484 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001595/0.4831, allocations: 0.8533 MB / 0.601 GB, free: 6.605 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.774e-05/0.4831, allocations: 0.9375 kB / 0.601 GB, free: 6.605 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.258e-05/0.4832, allocations: 32 kB / 0.6011 GB, free: 6.574 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.992e-05/0.4832, allocations: 23.98 kB / 0.6011 GB, free: 6.551 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001886/0.4851, allocations: 1.096 MB / 0.6022 GB, free: 5.453 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003567/0.4887, allocations: 2.327 MB / 0.6044 GB, free: 3.059 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001777/0.4905, allocations: 0.8025 MB / 0.6052 GB, free: 2.254 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006298/0.4911, allocations: 307.7 kB / 0.6055 GB, free: 1.949 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006235/0.4917, allocations: 474.1 kB / 0.606 GB, free: 1.391 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009733/0.4927, allocations: 466.6 kB / 0.6064 GB, free: 0.918 MB / 478.1 MB Notification: Performance of pre-optimization done (n=70): time 2.285e-06/0.4927, allocations: 0 / 0.6064 GB, free: 0.918 MB / 478.1 MB Notification: Performance of matching and sorting (n=70): time 0.003356/0.4961, allocations: 1.148 MB / 0.6075 GB, free: 15.74 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.058e-05/0.4962, allocations: 111.4 kB / 0.6076 GB, free: 15.61 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005445/0.4967, allocations: 0.495 MB / 0.6081 GB, free: 15.1 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 9.032e-05/0.4968, allocations: 41.7 kB / 0.6082 GB, free: 15.05 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002333/0.4971, allocations: 328.4 kB / 0.6085 GB, free: 14.73 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001811/0.4973, allocations: 236.5 kB / 0.6087 GB, free: 14.5 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000205/0.4975, allocations: 134.2 kB / 0.6088 GB, free: 14.36 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.4977, allocations: 370.8 kB / 0.6092 GB, free: 13.99 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005945/0.4983, allocations: 242.2 kB / 0.6094 GB, free: 13.75 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000635/0.4989, allocations: 324.1 kB / 0.6097 GB, free: 13.42 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001245/0.5002, allocations: 0.5671 MB / 0.6103 GB, free: 12.84 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.5002, allocations: 4 kB / 0.6103 GB, free: 12.83 MB / 494.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001971/0.5021, allocations: 0.7705 MB / 0.611 GB, free: 12.05 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.267e-05/0.5022, allocations: 4 kB / 0.611 GB, free: 12.05 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.5022, allocations: 0 / 0.611 GB, free: 12.05 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005796/0.5028, allocations: 80.88 kB / 0.6111 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007014/0.5035, allocations: 147.8 kB / 0.6112 GB, free: 11.82 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002329/0.5058, allocations: 1.645 MB / 0.6129 GB, free: 10.04 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005769/0.5064, allocations: 75.58 kB / 0.6129 GB, free: 9.961 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.675e-05/0.5065, allocations: 23.98 kB / 0.6129 GB, free: 9.938 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 (weaDat.conTim.tStart,$PRE.weaDat.conTim.tStart,weaDat.conTim1.tStart,$PRE.weaDat.conTim1.tStart,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 72 * 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.0003697/0.5069, allocations: 238.2 kB / 0.6132 GB, free: 9.695 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001216/0.507, allocations: 67.16 kB / 0.6132 GB, free: 9.629 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002479/0.5095, allocations: 1.003 MB / 0.6142 GB, free: 8.621 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.684e-06/0.5095, allocations: 8 kB / 0.6142 GB, free: 8.613 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.274e-06/0.5095, allocations: 0 / 0.6142 GB, free: 8.613 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.5095, allocations: 7.984 kB / 0.6142 GB, free: 8.605 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008414/0.5104, allocations: 0.8027 MB / 0.615 GB, free: 7.758 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.5104, allocations: 0 / 0.615 GB, free: 7.758 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006467/0.511, allocations: 147.8 kB / 0.6152 GB, free: 7.613 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004404/0.5115, allocations: 76.77 kB / 0.6152 GB, free: 7.535 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.272e-05/0.5115, allocations: 19.98 kB / 0.6153 GB, free: 7.516 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001868/0.5134, allocations: 1.667 MB / 0.6169 GB, free: 5.707 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.5134, allocations: 0 / 0.6169 GB, free: 5.707 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001974/0.5154, allocations: 0.8525 MB / 0.6177 GB, free: 4.832 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003137/0.5157, allocations: 240.1 kB / 0.6179 GB, free: 4.578 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.851e-05/0.5158, allocations: 23.84 kB / 0.618 GB, free: 4.555 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005444/0.5164, allocations: 59.94 kB / 0.618 GB, free: 4.496 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001301/0.5165, allocations: 52.58 kB / 0.6181 GB, free: 4.441 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.87e-05/0.5166, allocations: 31.55 kB / 0.6181 GB, free: 4.414 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004042/0.517, allocations: 362.8 kB / 0.6184 GB, free: 4.062 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.517, allocations: 0 / 0.6184 GB, free: 4.062 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0007827/0.5178, allocations: 276.1 kB / 0.6187 GB, free: 3.793 MB / 494.1 MB 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.conTim1.tStart,weaDat.conTim.tStart) * Number of discrete states: 2 (weaDat.conTim1.tStart,weaDat.conTim.tStart) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 74 * 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.001224/0.519, allocations: 0.5814 MB / 0.6193 GB, free: 3.438 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002244/0.5213, allocations: 0.9024 MB / 0.6202 GB, free: 2.531 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.5213, allocations: 0 / 0.6202 GB, free: 2.531 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001006/0.5223, allocations: 0.4986 MB / 0.6206 GB, free: 2.016 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009525/0.5233, allocations: 227.3 kB / 0.6209 GB, free: 1.812 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003961/0.5273, allocations: 1.923 MB / 0.6227 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005866/0.5279, allocations: 0.9761 MB / 0.6237 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0008789/0.5288, allocations: 239.3 kB / 0.6239 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002386/0.529, allocations: 87.38 kB / 0.624 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of SimCode: time 6.41e-07/0.529, allocations: 0 / 0.624 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of Templates: time 0.01965/0.5487, allocations: 12.36 MB / 0.6361 GB, free: 2.312 MB / 0.4981 GB make -j1 -f Annex60_1.0.0_Annex60.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.makefile (rm -f Annex60_1.0.0_Annex60.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.pipe ; mkfifo Annex60_1.0.0_Annex60.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.pipe >> ../files/Annex60_1.0.0_Annex60.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.sim & ./Annex60_1.0.0_Annex60.BoundaryConditions.SolarGeometry.Examples.ZenithAngle -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.pipe 2>&1)