Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplexMPP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplexMPP",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.004132/0.004132, allocations: 97.12 kB / 15.73 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001213/0.001213, allocations: 199.8 kB / 16.68 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.248/1.248, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002063/0.002063, allocations: 289.5 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8894/0.8894, allocations: 169.2 MB / 0.4983 GB, free: 4.465 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001628/0.001628, allocations: 91.86 kB / 0.6809 GB, free: 7.539 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4282/0.4298, allocations: 86.98 MB / 0.7659 GB, free: 3.938 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP): time 0.004771/0.4346, allocations: 3.697 MB / 0.7695 GB, free: 224 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.004506/0.4391, allocations: 3.454 MB / 0.7729 GB, free: 12.75 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002338/0.4394, allocations: 7.938 kB / 0.7729 GB, free: 12.74 MB / 0.545 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Technologies/Photovoltaics/BaseClasses/PVModuleGeneral.mo:38:3-39:117:writable] Warning: Connector radiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Technologies/Photovoltaics/BaseClasses/OpticalModels/OpticalModelGeneral.mo:10:3-12:121:writable] Warning: Connector radiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Climate/SolarRadiationTransformers/SolarRadiationTransformerGeneral.mo:25:3-27:116:writable] Warning: Connector radiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0004255/0.4398, allocations: 130.9 kB / 0.773 GB, free: 12.61 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0009203/0.4408, allocations: 457.5 kB / 0.7734 GB, free: 12.16 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007658/0.4415, allocations: 394.8 kB / 0.7738 GB, free: 11.78 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0008931/0.4424, allocations: 0.8073 MB / 0.7746 GB, free: 10.97 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003126/0.4428, allocations: 193.9 kB / 0.7748 GB, free: 10.78 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004601/0.4432, allocations: 338.9 kB / 0.7751 GB, free: 10.45 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005405/0.4438, allocations: 350.5 kB / 0.7754 GB, free: 10.11 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001068/0.4439, allocations: 72 kB / 0.7755 GB, free: 10.04 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008949/0.4448, allocations: 0.4995 MB / 0.776 GB, free: 9.535 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001895/0.445, allocations: 179.4 kB / 0.7762 GB, free: 9.359 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002869/0.4453, allocations: 330.3 kB / 0.7765 GB, free: 9.035 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001186/0.4465, allocations: 1.11 MB / 0.7776 GB, free: 7.922 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.4465, allocations: 0 / 0.7776 GB, free: 7.922 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.252e-06/0.4465, allocations: 0 / 0.7776 GB, free: 7.922 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.434e-05/0.4465, allocations: 4 kB / 0.7776 GB, free: 7.918 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.00206/0.4486, allocations: 1.034 MB / 0.7786 GB, free: 6.832 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.4487, allocations: 8.031 kB / 0.7786 GB, free: 6.824 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001011/0.4488, allocations: 90.7 kB / 0.7787 GB, free: 6.727 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003114/0.4519, allocations: 0.5659 MB / 0.7792 GB, free: 6.16 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001337/0.4532, allocations: 0.6157 MB / 0.7798 GB, free: 5.508 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001226/0.4534, allocations: 126 kB / 0.7799 GB, free: 5.367 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.07e-05/0.4534, allocations: 44 kB / 0.78 GB, free: 5.324 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001379/0.4548, allocations: 0.683 MB / 0.7806 GB, free: 4.625 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.595e-05/0.4549, allocations: 4 kB / 0.7806 GB, free: 4.621 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.408e-05/0.4549, allocations: 20 kB / 0.7807 GB, free: 4.602 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/0.455, allocations: 12 kB / 0.7807 GB, free: 4.59 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001689/0.4566, allocations: 0.7104 MB / 0.7814 GB, free: 3.875 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003305/0.46, allocations: 1.867 MB / 0.7832 GB, free: 1.953 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002614/0.4626, allocations: 0.8208 MB / 0.784 GB, free: 1.121 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008175/0.4634, allocations: 358.3 kB / 0.7843 GB, free: 0.7695 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001767/0.4652, allocations: 1.761 MB / 0.7861 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009307/0.4661, allocations: 438.8 kB / 0.7865 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=56): time 2.565e-06/0.4662, allocations: 0 / 0.7865 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of matching and sorting (n=56): time 0.00657/0.4727, allocations: 1.499 MB / 0.7879 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.343e-05/0.4728, allocations: 115.4 kB / 0.7881 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004482/0.4733, allocations: 402 kB / 0.7884 GB, free: 12.11 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.446e-05/0.4733, allocations: 37.7 kB / 0.7885 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001843/0.4735, allocations: 272.6 kB / 0.7887 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001517/0.4737, allocations: 185.3 kB / 0.7889 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002268/0.4739, allocations: 118.2 kB / 0.789 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001421/0.4741, allocations: 358.8 kB / 0.7894 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007419/0.4748, allocations: 301 kB / 0.7896 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008326/0.4757, allocations: 429.4 kB / 0.7901 GB, free: 10.37 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001572/0.4772, allocations: 0.6989 MB / 0.7907 GB, free: 9.629 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.4773, allocations: 0 / 0.7907 GB, free: 9.629 MB / 0.5606 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004144/0.4814, allocations: 1.073 MB / 0.7918 GB, free: 8.543 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.4814, allocations: 8 kB / 0.7918 GB, free: 8.535 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.4815, allocations: 4 kB / 0.7918 GB, free: 8.531 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003068/0.4845, allocations: 392.7 kB / 0.7922 GB, free: 8.145 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007803/0.4853, allocations: 155.7 kB / 0.7923 GB, free: 7.992 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003724/0.4891, allocations: 2.168 MB / 0.7944 GB, free: 5.672 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006957/0.4898, allocations: 91.52 kB / 0.7945 GB, free: 5.582 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.653e-05/0.4899, allocations: 31.97 kB / 0.7946 GB, free: 5.551 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 4 (weatherData.weatherData.conTim.tNext,$PRE.weatherData.weatherData.conTim.tNext,$whenCondition1,radiation.outsidePolarCircle) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {3} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000295/0.4902, allocations: 201.7 kB / 0.7948 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001126/0.4903, allocations: 59.27 kB / 0.7948 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00306/0.4933, allocations: 1.058 MB / 0.7958 GB, free: 4.219 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.037e-06/0.4934, allocations: 11.94 kB / 0.7959 GB, free: 4.207 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.4934, allocations: 4 kB / 0.7959 GB, free: 4.203 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/0.4934, allocations: 3.984 kB / 0.7959 GB, free: 4.199 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003665/0.4971, allocations: 1.774 MB / 0.7976 GB, free: 2.371 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.4971, allocations: 0 / 0.7976 GB, free: 2.371 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007094/0.4978, allocations: 151.8 kB / 0.7977 GB, free: 2.223 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008748/0.4987, allocations: 140.7 kB / 0.7979 GB, free: 2.082 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.728e-05/0.4987, allocations: 23.98 kB / 0.7979 GB, free: 2.059 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002319/0.5011, allocations: 1.92 MB / 0.7998 GB, free: 15.98 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.5011, allocations: 3.938 kB / 0.7998 GB, free: 15.98 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002703/0.5038, allocations: 1.027 MB / 0.8008 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002792/0.5041, allocations: 208.2 kB / 0.801 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.949e-05/0.5042, allocations: 12 kB / 0.801 GB, free: 14.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005594/0.5047, allocations: 55.94 kB / 0.801 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.5049, allocations: 48.59 kB / 0.8011 GB, free: 14.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.513e-05/0.5049, allocations: 19.98 kB / 0.8011 GB, free: 14.58 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002924/0.5052, allocations: 283.1 kB / 0.8014 GB, free: 14.31 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5052, allocations: 0 / 0.8014 GB, free: 14.31 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007306/0.506, allocations: 239.7 kB / 0.8016 GB, free: 14.07 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,weatherData.weatherData.conTim.tNext) * Number of discrete states: 1 (weatherData.weatherData.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003957/0.5099, allocations: 1.971 MB / 0.8035 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0022/0.5121, allocations: 0.8795 MB / 0.8044 GB, free: 11.33 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.5122, allocations: 4.188 kB / 0.8044 GB, free: 11.33 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001091/0.5133, allocations: 0.5334 MB / 0.8049 GB, free: 10.78 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004821/0.5137, allocations: 71.7 kB / 0.805 GB, free: 10.71 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01286/0.5266, allocations: 5.77 MB / 0.8106 GB, free: 4.77 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003972/0.527, allocations: 0.8812 MB / 0.8115 GB, free: 3.863 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0005631/0.5276, allocations: 148.5 kB / 0.8116 GB, free: 3.715 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003708/0.528, allocations: 219.3 kB / 0.8118 GB, free: 3.5 MB / 0.5762 GB Notification: Performance of SimCode: time 4.31e-07/0.528, allocations: 4 kB / 0.8118 GB, free: 3.496 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03754/0.5655, allocations: 15.89 MB / 0.8274 GB, free: 3.832 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.94, allocations: 7.75 kB / 0.8274 GB, free: 3.828 MB / 0.5919 GB (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplexMPP_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplexMPP.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.pipe 2>&1)