Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.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.SolarIrradiation.BaseClasses.Examples.RelativeAirMass,fileNamePrefix="Buildings_maint_7_0_x_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass,fileNamePrefix="Buildings_maint_7_0_x_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass",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.485/1.485, 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.001113/0.001113, allocations: 182.2 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.009/2.009, allocations: 205.4 MB / 0.5777 GB, free: 20.57 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.0009434/0.0009434, allocations: 91.7 kB / 0.6823 GB, free: 13.36 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003823/0.0003828, allocations: 9.719 kB / 0.7965 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2461/0.2465, allocations: 106.3 MB / 0.9003 GB, free: 64.35 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass): time 0.004308/0.2509, allocations: 3.564 MB / 0.9038 GB, free: 60.77 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.1622/0.4131, allocations: 136.4 MB / 1.037 GB, free: 3.938 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001252/0.4145, allocations: 15.94 kB / 1.037 GB, free: 3.922 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.000639/0.4151, allocations: 131 kB / 1.037 GB, free: 3.793 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.00175/0.4169, allocations: 345.9 kB / 1.037 GB, free: 3.457 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.002208/0.4191, allocations: 0.5923 MB / 1.038 GB, free: 2.871 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.001957/0.4211, allocations: 1.004 MB / 1.039 GB, free: 1.859 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001032/0.4221, allocations: 455 kB / 1.039 GB, free: 1.414 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007908/0.4229, allocations: 294.6 kB / 1.04 GB, free: 1.125 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005078/0.4235, allocations: 318.3 kB / 1.04 GB, free: 0.8125 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 8.063e-05/0.4235, allocations: 20 kB / 1.04 GB, free: 0.793 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009553/0.4245, allocations: 263.8 kB / 1.04 GB, free: 0.5352 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.0002002/0.4247, allocations: 163.3 kB / 1.04 GB, free: 384 kB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.0002231/0.425, allocations: 181.1 kB / 1.041 GB, free: 196 kB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.001302/0.4263, allocations: 1.029 MB / 1.042 GB, free: 15.16 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.4263, allocations: 4 kB / 1.042 GB, free: 15.16 MB / 0.698 GB Notification: Performance of FrontEnd: time 4.939e-06/0.4263, allocations: 0 / 1.042 GB, free: 15.16 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.331e-05/0.4263, allocations: 3.938 kB / 1.042 GB, free: 15.15 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: 197 * Number of variables: 197 Notification: Performance of Generate backend data structure: time 0.002331/0.4287, allocations: 1.104 MB / 1.043 GB, free: 14 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.337e-05/0.4287, allocations: 8.031 kB / 1.043 GB, free: 13.99 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001858/0.4289, allocations: 138.7 kB / 1.043 GB, free: 13.84 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001132/0.4301, allocations: 206.5 kB / 1.043 GB, free: 13.64 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001126/0.4312, allocations: 0.6759 MB / 1.044 GB, free: 12.93 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.04e-05/0.4313, allocations: 61.98 kB / 1.044 GB, free: 12.86 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001104/0.4314, allocations: 72 kB / 1.044 GB, free: 12.79 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001592/0.433, allocations: 0.8598 MB / 1.045 GB, free: 11.89 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.031e-05/0.433, allocations: 3.938 kB / 1.045 GB, free: 11.89 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.329e-05/0.4331, allocations: 32 kB / 1.045 GB, free: 11.86 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.064e-05/0.4331, allocations: 23.95 kB / 1.045 GB, free: 11.84 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001829/0.435, allocations: 1.081 MB / 1.046 GB, free: 10.75 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004249/0.4392, allocations: 2.426 MB / 1.048 GB, free: 8.258 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002271/0.4415, allocations: 0.8218 MB / 1.049 GB, free: 7.43 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005502/0.4421, allocations: 286.7 kB / 1.049 GB, free: 7.145 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 9.509e-05/0.4422, allocations: 36.67 kB / 1.049 GB, free: 7.109 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008994/0.4431, allocations: 444.5 kB / 1.05 GB, free: 6.656 MB / 0.698 GB Notification: Performance of pre-optimization done (n=73): time 3.416e-06/0.4431, allocations: 0 / 1.05 GB, free: 6.656 MB / 0.698 GB Notification: Performance of matching and sorting (n=73): time 0.003161/0.4463, allocations: 1.131 MB / 1.051 GB, free: 5.5 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001324/0.4464, allocations: 188.6 kB / 1.051 GB, free: 5.273 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007969/0.4472, allocations: 0.5539 MB / 1.052 GB, free: 4.711 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 7.598e-05/0.4473, allocations: 41.7 kB / 1.052 GB, free: 4.664 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003654/0.4477, allocations: 372.3 kB / 1.052 GB, free: 4.293 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002401/0.448, allocations: 240.5 kB / 1.052 GB, free: 4.055 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.354e-05/0.448, allocations: 8 kB / 1.052 GB, free: 4.047 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0002419/0.4482, allocations: 382.8 kB / 1.053 GB, free: 3.664 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005139/0.4488, allocations: 237.1 kB / 1.053 GB, free: 3.43 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006567/0.4494, allocations: 334.7 kB / 1.053 GB, free: 3.074 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006263/0.4501, allocations: 283.1 kB / 1.053 GB, free: 2.805 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.4501, allocations: 0 / 1.053 GB, free: 2.805 MB / 0.698 GB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002023/0.4521, allocations: 0.7509 MB / 1.054 GB, free: 2.043 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.813e-05/0.4522, allocations: 4 kB / 1.054 GB, free: 2.039 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.5e-05/0.4522, allocations: 4 kB / 1.054 GB, free: 2.035 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006528/0.4528, allocations: 84.86 kB / 1.054 GB, free: 1.949 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006739/0.4535, allocations: 147.7 kB / 1.054 GB, free: 1.805 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002338/0.4559, allocations: 1.536 MB / 1.056 GB, free: 132 kB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000771/0.4567, allocations: 88.14 kB / 1.056 GB, free: 44 kB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.537e-05/0.4567, allocations: 27.98 kB / 1.056 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 (76): * Single equations (assignments): 75 * 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.5308/0.9876, allocations: 247.6 kB / 1.056 GB, free: 154.9 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002112/0.9878, allocations: 73.16 kB / 1.056 GB, free: 154.9 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002502/0.9903, allocations: 1.039 MB / 1.057 GB, free: 154.8 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.037e-06/0.9903, allocations: 8.562 kB / 1.057 GB, free: 154.8 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.9903, allocations: 2.625 kB / 1.057 GB, free: 154.8 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.055e-05/0.9903, allocations: 3.281 kB / 1.057 GB, free: 154.8 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008932/0.9912, allocations: 0.8474 MB / 1.058 GB, free: 154.7 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.431e-06/0.9913, allocations: 1.031 kB / 1.058 GB, free: 154.7 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005943/0.9919, allocations: 152.9 kB / 1.058 GB, free: 154.7 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005048/0.9924, allocations: 83.59 kB / 1.058 GB, free: 154.6 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.768e-05/0.9924, allocations: 19.8 kB / 1.058 GB, free: 154.6 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001544/0.994, allocations: 1.567 MB / 1.06 GB, free: 153.4 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.994, allocations: 0 / 1.06 GB, free: 153.4 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001696/0.9957, allocations: 0.8654 MB / 1.061 GB, free: 153.2 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003404/0.996, allocations: 277.9 kB / 1.061 GB, free: 153.1 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.028e-05/0.9961, allocations: 16.16 kB / 1.061 GB, free: 153.1 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005456/0.9967, allocations: 71.25 kB / 1.061 GB, free: 153.1 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001351/0.9968, allocations: 58.98 kB / 1.061 GB, free: 153.1 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.687e-05/0.9969, allocations: 30.94 kB / 1.061 GB, free: 153.1 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0005363/0.9975, allocations: 421.9 kB / 1.062 GB, free: 153 MB / 0.698 GB Notification: Performance of sort global known variables: time 2.51e-07/0.9975, allocations: 0 / 1.062 GB, free: 153 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0007246/0.9982, allocations: 269.1 kB / 1.062 GB, free: 152.9 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 (85): * Single equations (assignments): 82 * 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.003076/1.001, allocations: 1.869 MB / 1.064 GB, free: 152.2 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001609/1.003, allocations: 0.7541 MB / 1.064 GB, free: 152.1 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/1.003, allocations: 3.438 kB / 1.064 GB, free: 152.1 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0008541/1.004, allocations: 0.4914 MB / 1.065 GB, free: 152 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001306/1.005, allocations: 259.9 kB / 1.065 GB, free: 151.9 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0112/1.016, allocations: 4.656 MB / 1.07 GB, free: 150.5 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007089/1.017, allocations: 1.001 MB / 1.071 GB, free: 149.8 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001148/1.018, allocations: 257.8 kB / 1.071 GB, free: 149.7 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005434/1.019, allocations: 344 kB / 1.071 GB, free: 149.7 MB / 0.698 GB Notification: Performance of SimCode: time 1.193e-06/1.019, allocations: 0 / 1.071 GB, free: 149.7 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04745/1.066, allocations: 19.77 MB / 1.091 GB, free: 139.3 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001766/1.066, allocations: 310.7 kB / 1.091 GB, free: 138.9 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.865/3.932, allocations: 0 / 1.091 GB, free: 138.9 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.pipe >> ../files/Buildings_maint.7.0.x_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass_fmu --startTime=0 --stopTime=864000 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass.fmu > Buildings_maint.7.0.x_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.pipe 2>&1)