Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.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.Examples.DiffusePerez,fileNamePrefix="Buildings_maint_7_0_x_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez,fileNamePrefix="Buildings_maint_7_0_x_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez",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.56/1.56, 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.001138/0.001138, allocations: 182.4 kB / 326.6 MB, free: 2.23 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.976/1.976, allocations: 205.4 MB / 0.5777 GB, free: 20.55 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.0008444/0.0008444, allocations: 100.2 kB / 0.6823 GB, free: 13.35 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003395/0.0003396, allocations: 6.969 kB / 0.7964 GB, free: 135.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2572/0.2576, allocations: 106.3 MB / 0.9003 GB, free: 64.38 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez): time 0.006198/0.2638, allocations: 5.213 MB / 0.9054 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.1721/0.436, allocations: 137.3 MB / 1.04 GB, free: 1.406 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001721/0.4378, allocations: 23.88 kB / 1.04 GB, free: 1.383 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.001158/0.439, allocations: 174.4 kB / 1.04 GB, free: 1.211 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.002816/0.4418, allocations: 475.8 kB / 1.04 GB, free: 0.7461 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.003136/0.445, allocations: 0.8975 MB / 1.041 GB, free: 15.86 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.003962/0.4489, allocations: 2.013 MB / 1.043 GB, free: 13.83 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002591/0.4516, allocations: 1.107 MB / 1.044 GB, free: 12.7 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001848/0.4534, allocations: 0.661 MB / 1.045 GB, free: 12.03 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001729/0.4552, allocations: 0.7734 MB / 1.045 GB, free: 11.25 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.0006116/0.4558, allocations: 56 kB / 1.046 GB, free: 11.2 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001454/0.4573, allocations: 331.6 kB / 1.046 GB, free: 10.88 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.0006858/0.458, allocations: 342.4 kB / 1.046 GB, free: 10.54 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.0007264/0.4587, allocations: 356.6 kB / 1.047 GB, free: 10.18 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.003141/0.4618, allocations: 2.303 MB / 1.049 GB, free: 7.875 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/0.4619, allocations: 0 / 1.049 GB, free: 7.875 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.755e-06/0.4619, allocations: 4 kB / 1.049 GB, free: 7.871 MB / 0.698 GB Notification: Performance of Transformations before backend: time 7.322e-05/0.462, allocations: 0 / 1.049 GB, free: 7.871 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: 534 * Number of variables: 534 Notification: Performance of Generate backend data structure: time 0.00543/0.4674, allocations: 2.067 MB / 1.051 GB, free: 5.742 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.929e-05/0.4675, allocations: 8.031 kB / 1.051 GB, free: 5.734 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007098/0.4682, allocations: 295.5 kB / 1.051 GB, free: 5.434 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01527/0.4835, allocations: 2.194 MB / 1.053 GB, free: 3.234 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00294/0.4865, allocations: 1.146 MB / 1.054 GB, free: 2.039 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001396/0.4866, allocations: 156.1 kB / 1.054 GB, free: 1.883 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004392/0.4871, allocations: 208 kB / 1.055 GB, free: 1.68 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5728/1.06, allocations: 3.086 MB / 1.058 GB, free: 152 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.398e-05/1.06, allocations: 3.844 kB / 1.058 GB, free: 152 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002671/1.06, allocations: 84.03 kB / 1.058 GB, free: 152 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.242e-05/1.06, allocations: 53.38 kB / 1.058 GB, free: 152 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01303/1.073, allocations: 4.075 MB / 1.062 GB, free: 152 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01858/1.092, allocations: 6.6 MB / 1.068 GB, free: 150.8 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01015/1.102, allocations: 2.739 MB / 1.071 GB, free: 150.7 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004692/1.107, allocations: 1.38 MB / 1.072 GB, free: 150.5 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008019/1.108, allocations: 0.5038 MB / 1.073 GB, free: 150.1 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005431/1.113, allocations: 1.63 MB / 1.074 GB, free: 149.4 MB / 0.698 GB Notification: Performance of pre-optimization done (n=192): time 5.981e-06/1.113, allocations: 0 / 1.074 GB, free: 149.4 MB / 0.698 GB Notification: Performance of matching and sorting (n=192): time 0.01533/1.129, allocations: 4.049 MB / 1.078 GB, free: 147.3 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001371/1.129, allocations: 200.7 kB / 1.079 GB, free: 147.1 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001646/1.13, allocations: 0.8314 MB / 1.079 GB, free: 146.6 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0002505/1.131, allocations: 57.08 kB / 1.079 GB, free: 146.5 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006354/1.131, allocations: 0.6932 MB / 1.08 GB, free: 145.9 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006334/1.132, allocations: 0.6225 MB / 1.081 GB, free: 145.4 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001474/1.132, allocations: 30.44 kB / 1.081 GB, free: 145.4 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001448/1.132, allocations: 368.4 kB / 1.081 GB, free: 145 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003584/1.136, allocations: 1.12 MB / 1.082 GB, free: 144.5 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004531/1.14, allocations: 1.304 MB / 1.083 GB, free: 143.7 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004658/1.145, allocations: 1.159 MB / 1.085 GB, free: 143.1 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.038e-05/1.145, allocations: 1.031 kB / 1.085 GB, free: 143.1 MB / 0.698 GB Notification: Performance of matching and sorting (n=206) (initialization): time 0.009105/1.154, allocations: 2.805 MB / 1.087 GB, free: 141.7 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.854e-05/1.154, allocations: 3.875 kB / 1.087 GB, free: 141.7 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.401e-05/1.154, allocations: 3.406 kB / 1.087 GB, free: 141.7 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006041/1.155, allocations: 87.45 kB / 1.087 GB, free: 141.7 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003121/1.158, allocations: 0.5437 MB / 1.088 GB, free: 141.5 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001821/1.16, allocations: 1.52 MB / 1.089 GB, free: 140 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002789/1.163, allocations: 321.5 kB / 1.09 GB, free: 139.9 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000187/1.163, allocations: 92.19 kB / 1.09 GB, free: 139.8 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (204): * Single equations (assignments): 203 * 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.001081/1.164, allocations: 402.2 kB / 1.09 GB, free: 139.5 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002894/1.164, allocations: 139.8 kB / 1.09 GB, free: 139.4 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009541/1.174, allocations: 3.377 MB / 1.094 GB, free: 136.2 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.188e-05/1.174, allocations: 24 kB / 1.094 GB, free: 136.2 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/1.174, allocations: 3.938 kB / 1.094 GB, free: 136.2 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.418e-05/1.174, allocations: 11.95 kB / 1.094 GB, free: 136.2 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01186/1.186, allocations: 5.587 MB / 1.099 GB, free: 130.6 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-05/1.186, allocations: 0 / 1.099 GB, free: 130.6 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003062/1.189, allocations: 0.5227 MB / 1.1 GB, free: 130.1 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005542/1.19, allocations: 89.58 kB / 1.1 GB, free: 130 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001997/1.19, allocations: 71.91 kB / 1.1 GB, free: 129.9 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001814/1.192, allocations: 1.544 MB / 1.101 GB, free: 128.2 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/1.192, allocations: 12.02 kB / 1.101 GB, free: 128.2 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00829/1.2, allocations: 2.94 MB / 1.104 GB, free: 125.3 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001006/1.201, allocations: 0.5334 MB / 1.105 GB, free: 124.7 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004111/1.201, allocations: 35.98 kB / 1.105 GB, free: 124.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002652/1.204, allocations: 245.3 kB / 1.105 GB, free: 124.4 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002691/1.204, allocations: 129.8 kB / 1.105 GB, free: 124.3 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002068/1.205, allocations: 79.92 kB / 1.105 GB, free: 124.2 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001126/1.206, allocations: 0.6107 MB / 1.106 GB, free: 123.6 MB / 0.698 GB Notification: Performance of sort global known variables: time 4.51e-07/1.206, allocations: 0 / 1.106 GB, free: 123.6 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.002031/1.208, allocations: 0.558 MB / 1.106 GB, free: 123.1 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.conTim.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (206): * Single equations (assignments): 203 * 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.01024/1.218, allocations: 4.003 MB / 1.11 GB, free: 119.2 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.008049/1.226, allocations: 2.843 MB / 1.113 GB, free: 116.4 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.048e-05/1.226, allocations: 4.125 kB / 1.113 GB, free: 116.4 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0041/1.23, allocations: 1.603 MB / 1.115 GB, free: 114.8 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002195/1.232, allocations: 311.1 kB / 1.115 GB, free: 114.5 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03066/1.263, allocations: 11.51 MB / 1.126 GB, free: 102.7 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00117/1.264, allocations: 1.353 MB / 1.127 GB, free: 101.3 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.004391/1.269, allocations: 0.5542 MB / 1.128 GB, free: 100.7 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001919/1.271, allocations: 0.792 MB / 1.129 GB, free: 99.94 MB / 0.698 GB Notification: Performance of SimCode: time 2.023e-06/1.271, allocations: 4 kB / 1.129 GB, free: 99.93 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07465/1.345, allocations: 37.56 MB / 1.165 GB, free: 62.67 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000294/1.346, allocations: 283.6 kB / 1.166 GB, free: 62.32 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.42/4.765, allocations: 0 / 1.166 GB, free: 62.32 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.pipe >> ../files/Buildings_maint.7.0.x_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez_fmu --startTime=1.82304e+07 --stopTime=1.83168e+07 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez.fmu > Buildings_maint.7.0.x_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.pipe 2>&1)