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: translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP") translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001262/0.001262, allocations: 105.5 kB / 16.27 MB, free: 6.414 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.001192/0.001192, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.239/1.239, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002134/0.002134, allocations: 301.5 kB / 291.3 MB, free: 14.55 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8765/0.8765, allocations: 169.3 MB / 0.4988 GB, free: 4.523 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001865/0.001865, allocations: 95.41 kB / 0.5959 GB, free: 4.082 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.142/0.1438, allocations: 86.96 MB / 0.6808 GB, free: 13.11 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP): time 0.00462/0.1485, allocations: 3.684 MB / 0.6844 GB, free: 9.406 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.004817/0.1533, allocations: 3.485 MB / 0.6878 GB, free: 5.906 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003577/0.1537, allocations: 7.938 kB / 0.6878 GB, free: 5.898 MB / 0.5294 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.0004707/0.1542, allocations: 119 kB / 0.6879 GB, free: 5.781 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.001461/0.1557, allocations: 457.4 kB / 0.6884 GB, free: 5.332 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.001088/0.1568, allocations: 397.3 kB / 0.6888 GB, free: 4.949 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.001197/0.158, allocations: 0.7996 MB / 0.6895 GB, free: 4.148 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004444/0.1584, allocations: 193.9 kB / 0.6897 GB, free: 3.945 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007484/0.1592, allocations: 338.8 kB / 0.69 GB, free: 3.613 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000776/0.16, allocations: 338.7 kB / 0.6904 GB, free: 3.281 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0001958/0.1602, allocations: 68 kB / 0.6904 GB, free: 3.215 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001091/0.1613, allocations: 0.5034 MB / 0.6909 GB, free: 2.711 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002263/0.1615, allocations: 175.4 kB / 0.6911 GB, free: 2.539 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0004098/0.1619, allocations: 334.3 kB / 0.6914 GB, free: 2.211 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.001474/0.1634, allocations: 1.098 MB / 0.6925 GB, free: 1.109 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1634, allocations: 0 / 0.6925 GB, free: 1.109 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.573e-06/0.1634, allocations: 0 / 0.6925 GB, free: 1.109 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 2.361e-05/0.1635, allocations: 0 / 0.6925 GB, free: 1.109 MB / 0.5294 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.002425/0.1659, allocations: 1.015 MB / 0.6935 GB, free: 48 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.1659, allocations: 8.031 kB / 0.6935 GB, free: 40 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003154/0.1691, allocations: 0.5659 MB / 0.694 GB, free: 15.47 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001425/0.1705, allocations: 0.6274 MB / 0.6946 GB, free: 14.81 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001255/0.1707, allocations: 122.2 kB / 0.6948 GB, free: 14.67 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001028/0.1708, allocations: 48 kB / 0.6948 GB, free: 14.62 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001432/0.1722, allocations: 0.6869 MB / 0.6955 GB, free: 13.92 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.1723, allocations: 0 / 0.6955 GB, free: 13.92 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.752e-05/0.1723, allocations: 20 kB / 0.6955 GB, free: 13.9 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.305e-05/0.1723, allocations: 12 kB / 0.6955 GB, free: 13.89 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001754/0.1741, allocations: 0.7026 MB / 0.6962 GB, free: 13.18 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003391/0.1775, allocations: 1.89 MB / 0.698 GB, free: 11.24 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002578/0.1801, allocations: 0.8208 MB / 0.6988 GB, free: 10.41 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008543/0.181, allocations: 354.3 kB / 0.6992 GB, free: 10.06 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001647/0.1826, allocations: 1.773 MB / 0.7009 GB, free: 7.898 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009258/0.1836, allocations: 422.9 kB / 0.7013 GB, free: 7.477 MB / 0.545 GB Notification: Performance of pre-optimization done (n=56): time 3.036e-06/0.1836, allocations: 4 kB / 0.7013 GB, free: 7.473 MB / 0.545 GB Notification: Performance of matching and sorting (n=56): time 0.006666/0.1903, allocations: 1.495 MB / 0.7028 GB, free: 5.953 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.544e-05/0.1903, allocations: 111.4 kB / 0.7029 GB, free: 5.82 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005482/0.1909, allocations: 401.9 kB / 0.7033 GB, free: 5.418 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 6.247e-05/0.191, allocations: 41.64 kB / 0.7033 GB, free: 5.371 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002436/0.1912, allocations: 272.7 kB / 0.7036 GB, free: 5.102 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001704/0.1914, allocations: 193.1 kB / 0.7038 GB, free: 4.91 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002257/0.1916, allocations: 126.2 kB / 0.7039 GB, free: 4.781 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001386/0.1918, allocations: 354.8 kB / 0.7042 GB, free: 4.426 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007828/0.1926, allocations: 297.1 kB / 0.7045 GB, free: 4.137 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008739/0.1935, allocations: 425.5 kB / 0.7049 GB, free: 3.664 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001595/0.1951, allocations: 0.695 MB / 0.7056 GB, free: 2.926 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/0.1951, allocations: 4 kB / 0.7056 GB, free: 2.922 MB / 0.545 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004273/0.1994, allocations: 1.073 MB / 0.7066 GB, free: 1.836 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/0.1994, allocations: 4 kB / 0.7066 GB, free: 1.832 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/0.1994, allocations: 4 kB / 0.7066 GB, free: 1.828 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003003/0.2024, allocations: 384.8 kB / 0.707 GB, free: 1.449 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008141/0.2033, allocations: 163.7 kB / 0.7072 GB, free: 1.289 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2672/0.4705, allocations: 2.159 MB / 0.7093 GB, free: 59.24 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008196/0.4713, allocations: 93.52 kB / 0.7094 GB, free: 59.24 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.755e-05/0.4714, allocations: 32.03 kB / 0.7094 GB, free: 59.24 MB / 0.545 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.000302/0.4717, allocations: 206.1 kB / 0.7096 GB, free: 59.12 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001132/0.4718, allocations: 54.12 kB / 0.7096 GB, free: 59.12 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003058/0.4749, allocations: 1.071 MB / 0.7107 GB, free: 59.06 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.346e-06/0.4749, allocations: 7.562 kB / 0.7107 GB, free: 59.06 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-06/0.4749, allocations: 0.5625 kB / 0.7107 GB, free: 59.06 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.323e-06/0.4749, allocations: 3.188 kB / 0.7107 GB, free: 59.06 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003228/0.4782, allocations: 1.766 MB / 0.7124 GB, free: 58.42 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.4782, allocations: 3.938 kB / 0.7124 GB, free: 58.41 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006439/0.4788, allocations: 147.5 kB / 0.7126 GB, free: 58.41 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008157/0.4796, allocations: 144.2 kB / 0.7127 GB, free: 58.39 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.274e-05/0.4797, allocations: 18.03 kB / 0.7127 GB, free: 58.38 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001973/0.4817, allocations: 1.929 MB / 0.7146 GB, free: 56.75 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.4817, allocations: 0 / 0.7146 GB, free: 56.75 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002492/0.4842, allocations: 1.024 MB / 0.7156 GB, free: 56.34 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002142/0.4844, allocations: 214.5 kB / 0.7158 GB, free: 56.18 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.325e-05/0.4845, allocations: 15.95 kB / 0.7158 GB, free: 56.17 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005469/0.4851, allocations: 50.31 kB / 0.7159 GB, free: 56.16 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.503e-05/0.4852, allocations: 55.77 kB / 0.7159 GB, free: 56.15 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.703e-05/0.4852, allocations: 21.8 kB / 0.7159 GB, free: 56.15 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0002558/0.4855, allocations: 279.7 kB / 0.7162 GB, free: 56.01 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4855, allocations: 3.688 kB / 0.7162 GB, free: 56.01 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.000701/0.4862, allocations: 239.8 kB / 0.7164 GB, free: 55.96 MB / 0.545 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.0009617/0.4872, allocations: 0.5112 MB / 0.7169 GB, free: 55.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.00226/0.4894, allocations: 0.929 MB / 0.7179 GB, free: 55.45 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.4894, allocations: 0 / 0.7179 GB, free: 55.45 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0009328/0.4904, allocations: 0.5381 MB / 0.7184 GB, free: 55.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004163/0.4908, allocations: 61.94 kB / 0.7184 GB, free: 55.17 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001805/0.4926, allocations: 1.28 MB / 0.7197 GB, free: 54.54 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002494/0.4929, allocations: 0.8762 MB / 0.7205 GB, free: 53.84 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002471/0.4931, allocations: 81.72 kB / 0.7206 GB, free: 53.83 MB / 0.545 GB Notification: Performance of SimCode: time 3.61e-07/0.4932, allocations: 0 / 0.7206 GB, free: 53.83 MB / 0.545 GB Notification: Performance of Templates: time 0.01264/0.5058, allocations: 12.56 MB / 0.7329 GB, free: 52.57 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.makefile (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 & ./BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.pipe 2>&1)