Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.BoundaryConditions.SolarGeometry.Examples.ZenithAngle,fileNamePrefix="Buildings_maint_7_0_x_Buildings_BoundaryConditions_SolarGeometry_Examples_ZenithAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.SolarGeometry.Examples.ZenithAngle,fileNamePrefix="Buildings_maint_7_0_x_Buildings_BoundaryConditions_SolarGeometry_Examples_ZenithAngle",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.424/1.424, allocations: 252 MB / 267 MB, free: 10.98 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001126/0.001126, allocations: 174.4 kB / 326.6 MB, free: 2.227 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.03/2.03, allocations: 205.4 MB / 0.5777 GB, free: 20.24 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007783/0.0007781, allocations: 97.86 kB / 0.6823 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003602/0.0003602, allocations: 8.75 kB / 0.7964 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2782/0.2786, allocations: 106.3 MB / 0.9003 GB, free: 63.83 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarGeometry.Examples.ZenithAngle): time 0.00472/0.2834, allocations: 3.506 MB / 0.9037 GB, free: 60.31 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.1665/0.45, allocations: 136.4 MB / 1.037 GB, free: 3.477 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007723/0.4508, allocations: 19.94 kB / 1.037 GB, free: 3.457 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.0005844/0.4514, allocations: 127 kB / 1.037 GB, free: 3.332 MB / 0.6823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3-maint.7.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 7.0.3-maint.7.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 7.0.3-maint.7.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.001366/0.4528, allocations: 345.5 kB / 1.037 GB, free: 2.996 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.001811/0.4546, allocations: 0.5805 MB / 1.038 GB, free: 2.422 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.001087/0.4557, allocations: 1 MB / 1.039 GB, free: 1.414 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006824/0.4564, allocations: 451 kB / 1.039 GB, free: 0.9727 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004597/0.4568, allocations: 286.7 kB / 1.04 GB, free: 0.6914 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004053/0.4573, allocations: 306.4 kB / 1.04 GB, free: 400 kB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 6.926e-05/0.4573, allocations: 20 kB / 1.04 GB, free: 380 kB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006723/0.458, allocations: 263.8 kB / 1.04 GB, free: 116 kB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.0001961/0.4582, allocations: 159.3 kB / 1.04 GB, free: 15.96 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.0001659/0.4584, allocations: 185.1 kB / 1.041 GB, free: 15.77 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.00101/0.4594, allocations: 1.013 MB / 1.042 GB, free: 14.75 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 9.778e-06/0.4594, allocations: 4 kB / 1.042 GB, free: 14.75 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.545e-06/0.4595, allocations: 4 kB / 1.042 GB, free: 14.75 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.072e-05/0.4595, allocations: 0 / 1.042 GB, free: 14.75 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: 193 * Number of variables: 193 Notification: Performance of Generate backend data structure: time 0.001991/0.4615, allocations: 1.1 MB / 1.043 GB, free: 13.59 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.4615, allocations: 12.03 kB / 1.043 GB, free: 13.58 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001832/0.4617, allocations: 126.7 kB / 1.043 GB, free: 13.45 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008549/0.4626, allocations: 182.7 kB / 1.043 GB, free: 13.27 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009947/0.4636, allocations: 0.6681 MB / 1.044 GB, free: 12.56 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.804e-05/0.4636, allocations: 58 kB / 1.044 GB, free: 12.5 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.814e-05/0.4638, allocations: 72 kB / 1.044 GB, free: 12.43 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001456/0.4652, allocations: 0.8481 MB / 1.045 GB, free: 11.55 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.94e-05/0.4653, allocations: 3.984 kB / 1.045 GB, free: 11.54 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.141e-05/0.4653, allocations: 32 kB / 1.045 GB, free: 11.51 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.11e-05/0.4654, allocations: 23.95 kB / 1.045 GB, free: 11.49 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001635/0.467, allocations: 1.05 MB / 1.046 GB, free: 10.43 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003652/0.4707, allocations: 2.393 MB / 1.048 GB, free: 7.973 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001238/0.4719, allocations: 0.7234 MB / 1.049 GB, free: 7.238 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000471/0.4724, allocations: 278.4 kB / 1.049 GB, free: 6.965 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 8.377e-05/0.4725, allocations: 28.59 kB / 1.049 GB, free: 6.938 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007625/0.4733, allocations: 425.8 kB / 1.049 GB, free: 6.5 MB / 0.698 GB Notification: Performance of pre-optimization done (n=70): time 2.595e-06/0.4733, allocations: 0 / 1.049 GB, free: 6.5 MB / 0.698 GB Notification: Performance of matching and sorting (n=70): time 0.002991/0.4763, allocations: 1.083 MB / 1.05 GB, free: 5.391 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/0.4764, allocations: 192.5 kB / 1.051 GB, free: 5.16 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007237/0.4772, allocations: 0.5617 MB / 1.051 GB, free: 4.59 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 6.15e-05/0.4772, allocations: 37.7 kB / 1.051 GB, free: 4.547 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000304/0.4775, allocations: 372.2 kB / 1.052 GB, free: 4.176 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002082/0.4778, allocations: 232.6 kB / 1.052 GB, free: 3.945 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.435e-05/0.4778, allocations: 16 kB / 1.052 GB, free: 3.93 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001754/0.478, allocations: 374.8 kB / 1.052 GB, free: 3.555 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004327/0.4784, allocations: 221.2 kB / 1.052 GB, free: 3.34 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005123/0.4789, allocations: 318.7 kB / 1.053 GB, free: 3.004 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004994/0.4794, allocations: 267.1 kB / 1.053 GB, free: 2.742 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.4795, allocations: 0 / 1.053 GB, free: 2.742 MB / 0.698 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001649/0.4811, allocations: 0.7236 MB / 1.054 GB, free: 2.008 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.146e-05/0.4811, allocations: 8 kB / 1.054 GB, free: 2 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/0.4812, allocations: 4.094 kB / 1.054 GB, free: 1.996 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006376/0.4818, allocations: 80.77 kB / 1.054 GB, free: 1.914 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005568/0.4824, allocations: 135.8 kB / 1.054 GB, free: 1.781 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00203/0.4844, allocations: 1.524 MB / 1.055 GB, free: 124 kB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005908/0.485, allocations: 79.58 kB / 1.055 GB, free: 44 kB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.507e-05/0.4851, allocations: 27.98 kB / 1.055 GB, free: 16 kB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * 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 (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.5442/1.029, allocations: 245.9 kB / 1.056 GB, free: 154.5 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002301/1.03, allocations: 75.62 kB / 1.056 GB, free: 154.5 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002515/1.032, allocations: 0.9969 MB / 1.057 GB, free: 154.4 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/1.032, allocations: 11.78 kB / 1.057 GB, free: 154.4 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/1.032, allocations: 0 / 1.057 GB, free: 154.4 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.053e-05/1.032, allocations: 6.469 kB / 1.057 GB, free: 154.4 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001043/1.033, allocations: 0.8342 MB / 1.058 GB, free: 154.2 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.748e-06/1.033, allocations: 2.938 kB / 1.058 GB, free: 154.2 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000532/1.034, allocations: 135.6 kB / 1.058 GB, free: 154.2 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000522/1.034, allocations: 90.27 kB / 1.058 GB, free: 154.2 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.593e-05/1.034, allocations: 18.62 kB / 1.058 GB, free: 154.2 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001648/1.036, allocations: 1.563 MB / 1.059 GB, free: 152.9 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/1.036, allocations: 3.953 kB / 1.059 GB, free: 152.9 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001676/1.038, allocations: 0.8303 MB / 1.06 GB, free: 152.8 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000342/1.038, allocations: 269 kB / 1.06 GB, free: 152.7 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.073e-05/1.038, allocations: 21.45 kB / 1.06 GB, free: 152.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005155/1.039, allocations: 65.12 kB / 1.06 GB, free: 152.7 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001322/1.039, allocations: 58.14 kB / 1.061 GB, free: 152.7 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.487e-05/1.039, allocations: 30.98 kB / 1.061 GB, free: 152.7 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.00055/1.039, allocations: 414.5 kB / 1.061 GB, free: 152.6 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.313e-06/1.039, allocations: 2.625 kB / 1.061 GB, free: 152.6 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0007639/1.04, allocations: 263 kB / 1.061 GB, free: 152.5 MB / 0.698 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 (81): * Single equations (assignments): 78 * 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.003081/1.043, allocations: 1.834 MB / 1.063 GB, free: 151.8 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001522/1.045, allocations: 0.7222 MB / 1.064 GB, free: 151.7 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/1.045, allocations: 2.906 kB / 1.064 GB, free: 151.7 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0008202/1.046, allocations: 486.8 kB / 1.064 GB, free: 151.5 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001176/1.047, allocations: 258.6 kB / 1.064 GB, free: 151.5 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01089/1.058, allocations: 4.572 MB / 1.069 GB, free: 150.1 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008276/1.059, allocations: 0.9966 MB / 1.07 GB, free: 149.3 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001187/1.06, allocations: 249.2 kB / 1.07 GB, free: 149.3 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006004/1.06, allocations: 345.9 kB / 1.07 GB, free: 149.3 MB / 0.698 GB Notification: Performance of SimCode: time 1.312e-06/1.061, allocations: 0.9062 kB / 1.07 GB, free: 149.3 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04512/1.106, allocations: 19.36 MB / 1.089 GB, free: 139.7 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001656/1.106, allocations: 276.1 kB / 1.09 GB, free: 139.3 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.769/3.875, allocations: 4 kB / 1.09 GB, free: 139.3 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.pipe >> ../files/Buildings_maint.7.0.x_Buildings.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_BoundaryConditions_SolarGeometry_Examples_ZenithAngle_fmu --startTime=100000 --stopTime=300000 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_BoundaryConditions_SolarGeometry_Examples_ZenithAngle.fmu > Buildings_maint.7.0.x_Buildings.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.pipe 2>&1)