Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiation.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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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: "" <> buildModelFMU(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiation,fileNamePrefix="Buildings_8_Buildings_HeatTransfer_Windows_BaseClasses_Examples_AbsorbedRadiation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiation,fileNamePrefix="Buildings_8_Buildings_HeatTransfer_Windows_BaseClasses_Examples_AbsorbedRadiation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001657/0.001657, allocations: 105.4 kB / 15.7 MB, free: 24 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001769/0.001769, allocations: 192.3 kB / 16.64 MB, free: 6.594 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.482/1.482, allocations: 205.1 MB / 222.5 MB, free: 4.609 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.794/1.794, allocations: 292.3 MB / 0.549 GB, free: 12.75 MB / 462.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: Performance of FrontEnd - loaded program: time 0.001511/0.001511, allocations: 65.81 kB / 0.6718 GB, free: 26.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2928/0.2944, allocations: 114.6 MB / 0.7836 GB, free: 13.22 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiation): time 0.009152/0.3036, allocations: 5.51 MB / 0.789 GB, free: 7.676 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.7915/1.095, allocations: 155.1 MB / 0.9405 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001398/1.097, allocations: 29.41 kB / 0.9405 GB, free: 2.672 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.005582/1.102, allocations: 1.747 MB / 0.9422 GB, free: 2.363 MB / 0.7169 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:216:3-259:11:writable] Warning: Pure function 'Modelica.Utilities.Strings.find' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4-maint.8.1.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 8.1.4-maint.8.1.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 8.1.4-maint.8.1.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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.002871/1.105, allocations: 0.6851 MB / 0.9429 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.002768/1.108, allocations: 0.9479 MB / 0.9438 GB, free: 2.098 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.005457/1.113, allocations: 3.286 MB / 0.947 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002264/1.116, allocations: 0.924 MB / 0.9479 GB, free: 1.656 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002785/1.119, allocations: 1.089 MB / 0.949 GB, free: 1.641 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002922/1.121, allocations: 0.9589 MB / 0.9499 GB, free: 1.625 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.001208/1.123, allocations: 185 kB / 0.9501 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007217/1.13, allocations: 2.142 MB / 0.9522 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.002367/1.132, allocations: 1.376 MB / 0.9535 GB, free: 1.496 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.005097/1.138, allocations: 1.397 MB / 0.9549 GB, free: 1.07 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.01416/1.152, allocations: 5.368 MB / 0.9601 GB, free: 428 kB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 1.253e-05/1.152, allocations: 1.062 kB / 0.9601 GB, free: 428 kB / 0.7169 GB Notification: Performance of FrontEnd: time 2.505e-06/1.152, allocations: 0 / 0.9601 GB, free: 428 kB / 0.7169 GB Notification: Performance of Transformations before backend: time 0.0002713/1.152, allocations: 0 / 0.9601 GB, free: 428 kB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 296 * Number of variables: 296 Notification: Performance of Generate backend data structure: time 0.02083/1.173, allocations: 4.025 MB / 0.964 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.44e-05/1.173, allocations: 8.5 kB / 0.9641 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000637/1.174, allocations: 182.4 kB / 0.9642 GB, free: 14.52 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002806/1.176, allocations: 339.8 kB / 0.9646 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.09448/1.271, allocations: 87.67 MB / 1.05 GB, free: 7.965 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001925/1.271, allocations: 106.2 kB / 1.05 GB, free: 7.859 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006554/1.272, allocations: 140 kB / 1.05 GB, free: 7.723 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003357/1.275, allocations: 1.444 MB / 1.052 GB, free: 6.219 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.037e-05/1.275, allocations: 0 / 1.052 GB, free: 6.219 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001432/1.275, allocations: 48 kB / 1.052 GB, free: 6.172 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.395e-05/1.276, allocations: 28 kB / 1.052 GB, free: 6.145 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002556/1.278, allocations: 1.526 MB / 1.053 GB, free: 4.609 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02688/1.305, allocations: 23.27 MB / 1.076 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002499/1.308, allocations: 1.318 MB / 1.077 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0012/1.309, allocations: 0.843 MB / 1.078 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 9.519e-05/1.309, allocations: 34.94 kB / 1.078 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001383/1.31, allocations: 0.8564 MB / 1.079 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=92): time 3.025e-06/1.31, allocations: 0 / 1.079 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of matching and sorting (n=92): time 0.006427/1.317, allocations: 2.575 MB / 1.082 GB, free: 7.633 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002546/1.317, allocations: 334.1 kB / 1.082 GB, free: 7.258 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1213/1.438, allocations: 99.63 MB / 1.179 GB, free: 3.691 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0005187/1.439, allocations: 57.7 kB / 1.179 GB, free: 3.629 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.001937/1.441, allocations: 1.061 MB / 1.18 GB, free: 2.562 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005723/1.442, allocations: 302.9 kB / 1.181 GB, free: 2.27 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001156/1.443, allocations: 342.7 kB / 1.181 GB, free: 1.93 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001155/1.443, allocations: 301.1 kB / 1.181 GB, free: 1.633 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002016/1.445, allocations: 1.155 MB / 1.182 GB, free: 484 kB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00214/1.447, allocations: 1.365 MB / 1.184 GB, free: 15.05 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003957/1.451, allocations: 2.5 MB / 1.186 GB, free: 12.5 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.02e-05/1.451, allocations: 0 / 1.186 GB, free: 12.5 MB / 0.9356 GB Notification: Performance of matching and sorting (n=181) (initialization): time 0.009209/1.46, allocations: 3.086 MB / 1.189 GB, free: 9.391 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002571/1.461, allocations: 149.6 kB / 1.189 GB, free: 9.238 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.29e-05/1.461, allocations: 7.984 kB / 1.189 GB, free: 9.23 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.66e-05/1.461, allocations: 8 kB / 1.189 GB, free: 9.223 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001463/1.462, allocations: 291.9 kB / 1.19 GB, free: 8.938 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.269e-05/1.462, allocations: 15.98 kB / 1.19 GB, free: 8.922 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003647/1.466, allocations: 301.8 kB / 1.19 GB, free: 8.625 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004673/1.466, allocations: 63.98 kB / 1.19 GB, free: 8.562 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 6 (weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003527/1.47, allocations: 1.015 MB / 1.191 GB, free: 7.531 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002531/1.472, allocations: 236.9 kB / 1.191 GB, free: 7.297 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005188/1.478, allocations: 2.313 MB / 1.193 GB, free: 4.965 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.709e-05/1.478, allocations: 15.94 kB / 1.193 GB, free: 4.949 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.408e-06/1.478, allocations: 4 kB / 1.193 GB, free: 4.945 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.338e-05/1.478, allocations: 3.984 kB / 1.193 GB, free: 4.941 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01216/1.49, allocations: 4.595 MB / 1.198 GB, free: 316 kB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.109e-05/1.49, allocations: 1.312 kB / 1.198 GB, free: 316 kB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007331/1.491, allocations: 151.7 kB / 1.198 GB, free: 164 kB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.07e-05/1.491, allocations: 4 kB / 1.198 GB, free: 160 kB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001062/1.491, allocations: 31.97 kB / 1.198 GB, free: 128 kB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.094e-05/1.491, allocations: 8 kB / 1.198 GB, free: 120 kB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/1.491, allocations: 0 / 1.198 GB, free: 120 kB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005607/1.497, allocations: 2.258 MB / 1.2 GB, free: 13.83 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002785/1.499, allocations: 0.7708 MB / 1.201 GB, free: 13.04 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001555/1.501, allocations: 27.94 kB / 1.201 GB, free: 13.01 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002321/1.503, allocations: 183.1 kB / 1.201 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000219/1.504, allocations: 72.84 kB / 1.201 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001134/1.504, allocations: 43.98 kB / 1.201 GB, free: 12.72 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.5235/2.027, allocations: 79.51 MB / 1.279 GB, free: 421.3 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.032e-06/2.027, allocations: 0.6562 kB / 1.279 GB, free: 421.3 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.005618/2.033, allocations: 1.002 MB / 1.28 GB, free: 421.3 MB / 1.014 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 (90): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008556/2.041, allocations: 3.616 MB / 1.284 GB, free: 420.4 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.004269/2.046, allocations: 3.426 MB / 1.287 GB, free: 419.1 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 9.618e-06/2.046, allocations: 2.875 kB / 1.287 GB, free: 419.1 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.001852/2.048, allocations: 1.47 MB / 1.288 GB, free: 418.5 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003109/2.051, allocations: 389.6 kB / 1.289 GB, free: 418.3 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3353/2.386, allocations: 412 MB / 1.691 GB, free: 21.64 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001419/2.388, allocations: 1.749 MB / 1.693 GB, free: 19.88 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0028/2.39, allocations: 0.7681 MB / 1.694 GB, free: 19.12 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002107/2.393, allocations: 1.097 MB / 1.695 GB, free: 18.03 MB / 1.014 GB Notification: Performance of SimCode: time 1.633e-06/2.393, allocations: 0 / 1.695 GB, free: 18.03 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6825/3.075, allocations: 108.4 MB / 1.8 GB, free: 358.1 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.79/15.87, allocations: 8.375 kB / 1.8 GB, free: 358.1 MB / 1.014 GB (rm -f Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiation.pipe ; mkfifo Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiation.pipe ; head -c 1048576 < Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiation.pipe >> ../files/Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiation.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiation_res.csv --start-time 0 --stop-time 864000 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_HeatTransfer_Windows_BaseClasses_Examples_AbsorbedRadiation.fmu > Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiation.pipe 2>&1)