Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3.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.WeatherData.Examples.ReaderTMY3,fileNamePrefix="Buildings_maint_7_0_x_Buildings_BoundaryConditions_WeatherData_Examples_ReaderTMY3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3,fileNamePrefix="Buildings_maint_7_0_x_Buildings_BoundaryConditions_WeatherData_Examples_ReaderTMY3",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.472/1.472, 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.001427/0.001426, allocations: 181.9 kB / 326.6 MB, free: 2.215 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.02/2.02, 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.0008306/0.0008307, allocations: 76.06 kB / 0.6822 GB, free: 13.33 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004149/0.0004145, allocations: 8.656 kB / 0.7964 GB, free: 134.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2867/0.2871, allocations: 106.3 MB / 0.9003 GB, free: 64.2 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3): time 0.006424/0.2936, allocations: 5.346 MB / 0.9055 GB, free: 58.83 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.1872/0.4809, allocations: 139 MB / 1.041 GB, free: 15.44 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001312/0.4823, allocations: 31.81 kB / 1.041 GB, free: 15.41 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.0007408/0.483, allocations: 230 kB / 1.041 GB, free: 15.18 MB / 0.698 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.001862/0.4849, allocations: 0.4975 MB / 1.042 GB, free: 14.68 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.00287/0.4878, allocations: 0.9628 MB / 1.043 GB, free: 13.73 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.002416/0.4902, allocations: 1.957 MB / 1.045 GB, free: 11.77 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001213/0.4914, allocations: 0.7266 MB / 1.046 GB, free: 11.02 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001056/0.4925, allocations: 0.5367 MB / 1.046 GB, free: 10.48 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008319/0.4934, allocations: 0.5809 MB / 1.047 GB, free: 9.895 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.0001379/0.4935, allocations: 44 kB / 1.047 GB, free: 9.852 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001501/0.495, allocations: 0.6631 MB / 1.047 GB, free: 9.188 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.0003416/0.4954, allocations: 314.6 kB / 1.048 GB, free: 8.879 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.0003303/0.4957, allocations: 304.8 kB / 1.048 GB, free: 8.574 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.002083/0.4978, allocations: 1.902 MB / 1.05 GB, free: 6.668 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.4978, allocations: 0 / 1.05 GB, free: 6.668 MB / 0.698 GB Notification: Performance of FrontEnd: time 5.51e-06/0.4978, allocations: 0 / 1.05 GB, free: 6.668 MB / 0.698 GB Notification: Performance of Transformations before backend: time 2.748e-05/0.4979, allocations: 3.938 kB / 1.05 GB, free: 6.664 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: 335 * Number of variables: 335 Notification: Performance of Generate backend data structure: time 0.003553/0.5014, allocations: 1.772 MB / 1.052 GB, free: 4.836 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.897e-05/0.5015, allocations: 8.031 kB / 1.052 GB, free: 4.828 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002787/0.5018, allocations: 202.3 kB / 1.052 GB, free: 4.621 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001891/0.5037, allocations: 373.4 kB / 1.052 GB, free: 4.254 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001775/0.5055, allocations: 1.142 MB / 1.053 GB, free: 3.055 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.188e-05/0.5056, allocations: 102.6 kB / 1.053 GB, free: 2.953 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001645/0.5057, allocations: 124 kB / 1.053 GB, free: 2.832 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002741/0.5085, allocations: 1.51 MB / 1.055 GB, free: 1.23 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.928e-05/0.5085, allocations: 11.88 kB / 1.055 GB, free: 1.219 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001353/0.5087, allocations: 59.98 kB / 1.055 GB, free: 1.16 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.691e-05/0.5087, allocations: 32 kB / 1.055 GB, free: 1.129 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.6315/1.14, allocations: 2.034 MB / 1.057 GB, free: 154.2 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009784/1.15, allocations: 4.448 MB / 1.061 GB, free: 153 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003262/1.153, allocations: 1.434 MB / 1.063 GB, free: 152.9 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0011/1.155, allocations: 0.537 MB / 1.063 GB, free: 152.9 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001462/1.155, allocations: 63.03 kB / 1.063 GB, free: 152.9 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001715/1.156, allocations: 0.7998 MB / 1.064 GB, free: 152.8 MB / 0.698 GB Notification: Performance of pre-optimization done (n=136): time 3.637e-06/1.156, allocations: 0 / 1.064 GB, free: 152.8 MB / 0.698 GB Notification: Performance of matching and sorting (n=136): time 0.006721/1.163, allocations: 2.116 MB / 1.066 GB, free: 152.4 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001667/1.163, allocations: 352 kB / 1.066 GB, free: 152 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002313/1.166, allocations: 1.038 MB / 1.067 GB, free: 151.9 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001911/1.166, allocations: 53.27 kB / 1.068 GB, free: 151.8 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000699/1.167, allocations: 0.6143 MB / 1.068 GB, free: 151.6 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004652/1.167, allocations: 446.5 kB / 1.069 GB, free: 151.3 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.953e-05/1.167, allocations: 24.44 kB / 1.069 GB, free: 151.3 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001366/1.167, allocations: 355.5 kB / 1.069 GB, free: 151 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001247/1.169, allocations: 443.1 kB / 1.069 GB, free: 151 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001434/1.17, allocations: 0.6428 MB / 1.07 GB, free: 150.8 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001316/1.171, allocations: 0.5228 MB / 1.07 GB, free: 150.8 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.383e-06/1.171, allocations: 0.875 kB / 1.07 GB, free: 150.8 MB / 0.698 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.004502/1.176, allocations: 1.43 MB / 1.072 GB, free: 150.6 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 3.214e-05/1.176, allocations: 6.672 kB / 1.072 GB, free: 150.6 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.376e-05/1.176, allocations: 2.875 kB / 1.072 GB, free: 150.6 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001209/1.177, allocations: 172.4 kB / 1.072 GB, free: 150.6 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001283/1.178, allocations: 276.5 kB / 1.072 GB, free: 150.6 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004014/1.182, allocations: 3.061 MB / 1.075 GB, free: 148 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001778/1.184, allocations: 160.1 kB / 1.075 GB, free: 147.9 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000205/1.184, allocations: 59.17 kB / 1.076 GB, free: 147.9 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition4,$whenCondition3,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,$whenCondition2,$whenCondition1,$PRE.weaDatInpCon.conTimMin.tNext,weaDatInpCon.conTimMin.tNext,$PRE.weaDatInpCon.conTim.tNext,weaDatInpCon.conTim.tNext) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (145): * Single equations (assignments): 143 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.001263/1.186, allocations: 380 kB / 1.076 GB, free: 147.7 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004898/1.186, allocations: 148.8 kB / 1.076 GB, free: 147.6 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007118/1.193, allocations: 2.003 MB / 1.078 GB, free: 146.8 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.988e-05/1.193, allocations: 16.69 kB / 1.078 GB, free: 146.8 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.087e-05/1.193, allocations: 4.844 kB / 1.078 GB, free: 146.8 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-05/1.194, allocations: 11.64 kB / 1.078 GB, free: 146.8 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003192/1.197, allocations: 1.461 MB / 1.079 GB, free: 146.1 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.608e-06/1.197, allocations: 0 / 1.079 GB, free: 146.1 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001576/1.198, allocations: 285.1 kB / 1.08 GB, free: 146 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001237/1.2, allocations: 168.2 kB / 1.08 GB, free: 145.9 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001322/1.2, allocations: 47.69 kB / 1.08 GB, free: 145.9 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004045/1.204, allocations: 3.114 MB / 1.083 GB, free: 142.8 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/1.204, allocations: 0 / 1.083 GB, free: 142.8 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005488/1.209, allocations: 1.625 MB / 1.085 GB, free: 142 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001293/1.211, allocations: 462.8 kB / 1.085 GB, free: 141.6 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003114/1.211, allocations: 28.69 kB / 1.085 GB, free: 141.6 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001506/1.213, allocations: 140.1 kB / 1.085 GB, free: 141.5 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000333/1.213, allocations: 119.5 kB / 1.085 GB, free: 141.5 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001602/1.213, allocations: 63.11 kB / 1.085 GB, free: 141.4 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001389/1.214, allocations: 0.7199 MB / 1.086 GB, free: 141 MB / 0.698 GB Notification: Performance of sort global known variables: time 9.42e-07/1.214, allocations: 0 / 1.086 GB, free: 141 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001481/1.216, allocations: 447.5 kB / 1.086 GB, free: 140.9 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition4,$whenCondition3,weaDat.conTimMin.tNext,weaDat.conTim.tNext,$whenCondition2,$whenCondition1,weaDatInpCon.conTimMin.tNext,weaDatInpCon.conTim.tNext) * Number of discrete states: 4 (weaDatInpCon.conTimMin.tNext,weaDatInpCon.conTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (161): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.007365/1.223, allocations: 2.68 MB / 1.089 GB, free: 139.4 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.00578/1.229, allocations: 1.449 MB / 1.09 GB, free: 138.6 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.327e-05/1.229, allocations: 0 / 1.09 GB, free: 138.6 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.002428/1.232, allocations: 0.955 MB / 1.091 GB, free: 138 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003406/1.235, allocations: 498.3 kB / 1.092 GB, free: 137.8 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02261/1.258, allocations: 8.941 MB / 1.101 GB, free: 129 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007428/1.259, allocations: 1.289 MB / 1.102 GB, free: 127.7 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001881/1.26, allocations: 499.6 kB / 1.102 GB, free: 127.2 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008296/1.261, allocations: 0.6554 MB / 1.103 GB, free: 126.5 MB / 0.698 GB Notification: Performance of SimCode: time 1.393e-06/1.261, allocations: 0 / 1.103 GB, free: 126.5 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.064/1.325, allocations: 36 MB / 1.138 GB, free: 90.86 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002053/1.326, allocations: 276 kB / 1.138 GB, free: 90.5 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.517/4.843, allocations: 7.375 kB / 1.138 GB, free: 90.5 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3.pipe >> ../files/Buildings_maint.7.0.x_Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_BoundaryConditions_WeatherData_Examples_ReaderTMY3_fmu --startTime=0 --stopTime=8.64e+06 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_BoundaryConditions_WeatherData_Examples_ReaderTMY3.fmu > Buildings_maint.7.0.x_Buildings.BoundaryConditions.WeatherData.Examples.ReaderTMY3.pipe 2>&1)