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.001215/0.001215, allocations: 108 kB / 15.6 MB, free: 132 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.001247/0.001247, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.232/1.232, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002064/0.002064, allocations: 278.8 kB / 290.7 MB, free: 2.008 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9242/0.9242, allocations: 169.3 MB / 0.4982 GB, free: 13.9 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002339/0.002339, allocations: 96.41 kB / 0.5953 GB, free: 27.98 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/0.1334, allocations: 86.97 MB / 0.6803 GB, free: 0.5938 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP): time 0.00503/0.1384, allocations: 3.69 MB / 0.6839 GB, free: 12.89 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00491/0.1434, allocations: 3.47 MB / 0.6873 GB, free: 9.41 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003776/0.1438, allocations: 7.938 kB / 0.6873 GB, free: 9.402 MB / 494.1 MB [/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.0005359/0.1444, allocations: 132.5 kB / 0.6874 GB, free: 9.273 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001193/0.1456, allocations: 453.5 kB / 0.6878 GB, free: 8.828 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008228/0.1464, allocations: 382.3 kB / 0.6882 GB, free: 8.457 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008603/0.1473, allocations: 0.8035 MB / 0.689 GB, free: 7.652 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002984/0.1476, allocations: 202.6 kB / 0.6892 GB, free: 7.449 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004897/0.1481, allocations: 330.9 kB / 0.6895 GB, free: 7.125 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005723/0.1486, allocations: 354.6 kB / 0.6898 GB, free: 6.777 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001502/0.1488, allocations: 72 kB / 0.6899 GB, free: 6.707 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008613/0.1497, allocations: 0.4917 MB / 0.6904 GB, free: 6.215 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000205/0.1499, allocations: 183.4 kB / 0.6906 GB, free: 6.035 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003206/0.1502, allocations: 326.4 kB / 0.6909 GB, free: 5.715 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001253/0.1515, allocations: 1.102 MB / 0.6919 GB, free: 4.609 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1515, allocations: 0 / 0.6919 GB, free: 4.609 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1515, allocations: 7.938 kB / 0.6919 GB, free: 4.602 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.201e-05/0.1515, allocations: 0 / 0.6919 GB, free: 4.602 MB / 494.1 MB 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.002165/0.1537, allocations: 1.023 MB / 0.6929 GB, free: 3.527 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.1537, allocations: 8.031 kB / 0.693 GB, free: 3.52 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001003/0.1538, allocations: 86.7 kB / 0.693 GB, free: 3.426 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003148/0.157, allocations: 0.5621 MB / 0.6936 GB, free: 2.863 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001343/0.1584, allocations: 0.6273 MB / 0.6942 GB, free: 2.199 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001278/0.1585, allocations: 126 kB / 0.6943 GB, free: 2.059 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.759e-05/0.1586, allocations: 40 kB / 0.6944 GB, free: 2.02 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001359/0.16, allocations: 0.683 MB / 0.695 GB, free: 1.32 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.16, allocations: 0 / 0.695 GB, free: 1.32 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.524e-05/0.16, allocations: 20 kB / 0.695 GB, free: 1.301 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.227e-05/0.1601, allocations: 12 kB / 0.6951 GB, free: 1.289 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001683/0.1618, allocations: 0.7143 MB / 0.6958 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003193/0.165, allocations: 1.879 MB / 0.6976 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002568/0.1675, allocations: 0.822 MB / 0.6984 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008019/0.1684, allocations: 346.3 kB / 0.6987 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001737/0.1701, allocations: 1.769 MB / 0.7004 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008985/0.171, allocations: 430.9 kB / 0.7009 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=56): time 2.214e-06/0.171, allocations: 0 / 0.7009 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of matching and sorting (n=56): time 0.006616/0.1776, allocations: 1.503 MB / 0.7023 GB, free: 9.348 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.181e-05/0.1777, allocations: 119.4 kB / 0.7024 GB, free: 9.207 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004597/0.1782, allocations: 397.9 kB / 0.7028 GB, free: 8.812 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.51e-05/0.1783, allocations: 37.7 kB / 0.7029 GB, free: 8.77 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001848/0.1785, allocations: 264.8 kB / 0.7031 GB, free: 8.504 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001599/0.1786, allocations: 189.3 kB / 0.7033 GB, free: 8.316 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002057/0.1789, allocations: 122.2 kB / 0.7034 GB, free: 8.191 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001536/0.179, allocations: 358.8 kB / 0.7037 GB, free: 7.832 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007569/0.1798, allocations: 293.1 kB / 0.704 GB, free: 7.543 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008661/0.1807, allocations: 433.4 kB / 0.7044 GB, free: 7.07 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001556/0.1822, allocations: 0.695 MB / 0.7051 GB, free: 6.328 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.1822, allocations: 4 kB / 0.7051 GB, free: 6.324 MB / 0.4981 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004245/0.1865, allocations: 1.073 MB / 0.7062 GB, free: 5.242 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.1865, allocations: 8 kB / 0.7062 GB, free: 5.234 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.849e-06/0.1865, allocations: 4 kB / 0.7062 GB, free: 5.23 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003084/0.1896, allocations: 384.8 kB / 0.7065 GB, free: 4.852 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000757/0.1904, allocations: 155.8 kB / 0.7067 GB, free: 4.699 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003825/0.1942, allocations: 2.168 MB / 0.7088 GB, free: 2.383 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006772/0.1949, allocations: 103.4 kB / 0.7089 GB, free: 2.281 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.257e-05/0.195, allocations: 31.97 kB / 0.7089 GB, free: 2.25 MB / 0.4981 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.0002917/0.1953, allocations: 210.2 kB / 0.7091 GB, free: 2.035 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001162/0.1954, allocations: 51.38 kB / 0.7092 GB, free: 1.984 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003152/0.1986, allocations: 1.066 MB / 0.7102 GB, free: 0.9062 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.267e-06/0.1986, allocations: 11.94 kB / 0.7102 GB, free: 0.8945 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.1986, allocations: 0 / 0.7102 GB, free: 0.8945 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.1986, allocations: 3.984 kB / 0.7102 GB, free: 0.8906 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003683/0.2023, allocations: 1.776 MB / 0.712 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.2023, allocations: 0 / 0.712 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007091/0.203, allocations: 147.8 kB / 0.7121 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008635/0.2039, allocations: 144.7 kB / 0.7123 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.508e-05/0.204, allocations: 19.98 kB / 0.7123 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00236/0.2063, allocations: 1.932 MB / 0.7142 GB, free: 12.67 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.2063, allocations: 0 / 0.7142 GB, free: 12.67 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002715/0.2091, allocations: 1.018 MB / 0.7152 GB, free: 11.63 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002506/0.2093, allocations: 208.2 kB / 0.7154 GB, free: 11.41 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.127e-05/0.2094, allocations: 12 kB / 0.7154 GB, free: 11.39 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005769/0.21, allocations: 55.94 kB / 0.7154 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001132/0.2101, allocations: 44.59 kB / 0.7155 GB, free: 11.29 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.468e-05/0.2102, allocations: 23.98 kB / 0.7155 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002856/0.2105, allocations: 283.1 kB / 0.7158 GB, free: 11 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2105, allocations: 0 / 0.7158 GB, free: 11 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0007008/0.2112, allocations: 243.6 kB / 0.716 GB, free: 10.76 MB / 0.5137 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.004088/0.2153, allocations: 1.971 MB / 0.7179 GB, free: 8.906 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00247/0.2178, allocations: 0.942 MB / 0.7188 GB, free: 7.953 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.2178, allocations: 4.062 kB / 0.7188 GB, free: 7.949 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00112/0.2189, allocations: 0.5334 MB / 0.7194 GB, free: 7.398 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004756/0.2194, allocations: 61.55 kB / 0.7194 GB, free: 7.34 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01332/0.2327, allocations: 5.818 MB / 0.7251 GB, free: 1.344 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004519/0.2332, allocations: 0.8812 MB / 0.726 GB, free: 444 kB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0006978/0.2339, allocations: 152.4 kB / 0.7261 GB, free: 292 kB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003745/0.2343, allocations: 225.4 kB / 0.7263 GB, free: 68 kB / 0.5137 GB Notification: Performance of SimCode: time 7.01e-07/0.2343, allocations: 0 / 0.7263 GB, free: 68 kB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03987/0.2742, allocations: 15.37 MB / 0.7413 GB, free: 0.9453 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.65/10.92, allocations: 3.844 kB / 0.7413 GB, free: 0.9453 MB / 0.5294 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)