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.001294/0.001294, allocations: 108 kB / 15.6 MB, free: 128 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.001447/0.001447, allocations: 197.4 kB / 16.53 MB, free: 6.672 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.282/1.282, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002033/0.002033, allocations: 282.8 kB / 290.7 MB, free: 2.004 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9158/0.9158, allocations: 169.3 MB / 0.4982 GB, free: 13.91 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001757/0.001757, allocations: 94.66 kB / 0.5952 GB, free: 27.96 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1372/0.139, allocations: 86.99 MB / 0.6802 GB, free: 0.6758 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP): time 0.005373/0.1444, allocations: 3.679 MB / 0.6838 GB, free: 12.99 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004966/0.1494, allocations: 3.475 MB / 0.6872 GB, free: 9.504 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003418/0.1497, allocations: 7.938 kB / 0.6872 GB, free: 9.496 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.0005031/0.1503, allocations: 119 kB / 0.6873 GB, free: 9.379 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001137/0.1514, allocations: 451.8 kB / 0.6877 GB, free: 8.938 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008048/0.1522, allocations: 406 kB / 0.6881 GB, free: 8.543 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007394/0.153, allocations: 0.7957 MB / 0.6889 GB, free: 7.746 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002905/0.1533, allocations: 198.6 kB / 0.6891 GB, free: 7.547 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003898/0.1537, allocations: 334.8 kB / 0.6894 GB, free: 7.219 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004727/0.1542, allocations: 342.6 kB / 0.6897 GB, free: 6.883 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001129/0.1543, allocations: 68 kB / 0.6898 GB, free: 6.816 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008219/0.1551, allocations: 0.4956 MB / 0.6903 GB, free: 6.32 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001758/0.1553, allocations: 175.4 kB / 0.6904 GB, free: 6.148 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002908/0.1556, allocations: 346.2 kB / 0.6908 GB, free: 5.809 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001121/0.1567, allocations: 1.095 MB / 0.6918 GB, free: 4.711 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.1568, allocations: 0 / 0.6918 GB, free: 4.711 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1568, allocations: 0 / 0.6918 GB, free: 4.711 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.289e-05/0.1568, allocations: 0 / 0.6918 GB, free: 4.711 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.002089/0.1589, allocations: 1.019 MB / 0.6928 GB, free: 3.641 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.1589, allocations: 15.97 kB / 0.6928 GB, free: 3.625 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003248/0.1622, allocations: 0.5582 MB / 0.6934 GB, free: 3.066 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001312/0.1635, allocations: 0.6312 MB / 0.694 GB, free: 2.398 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000115/0.1636, allocations: 122.2 kB / 0.6941 GB, free: 2.262 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.144e-05/0.1637, allocations: 44 kB / 0.6942 GB, free: 2.219 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001362/0.1651, allocations: 0.6792 MB / 0.6948 GB, free: 1.523 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.365e-05/0.1651, allocations: 0 / 0.6948 GB, free: 1.523 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.671e-05/0.1652, allocations: 20 kB / 0.6948 GB, free: 1.504 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/0.1652, allocations: 16 kB / 0.6949 GB, free: 1.488 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00173/0.1669, allocations: 0.7142 MB / 0.6956 GB, free: 0.7695 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003309/0.1703, allocations: 1.875 MB / 0.6974 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002729/0.173, allocations: 0.8208 MB / 0.6982 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008463/0.1739, allocations: 350.3 kB / 0.6985 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001877/0.1758, allocations: 1.769 MB / 0.7002 GB, free: 11.51 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009572/0.1767, allocations: 430.8 kB / 0.7007 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=56): time 2.625e-06/0.1767, allocations: 0 / 0.7007 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of matching and sorting (n=56): time 0.006932/0.1837, allocations: 1.499 MB / 0.7021 GB, free: 9.551 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.779e-05/0.1838, allocations: 119.3 kB / 0.7022 GB, free: 9.41 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004845/0.1843, allocations: 401.9 kB / 0.7026 GB, free: 9.012 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.669e-05/0.1844, allocations: 37.7 kB / 0.7027 GB, free: 8.969 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002126/0.1846, allocations: 268.8 kB / 0.7029 GB, free: 8.699 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001696/0.1847, allocations: 189.3 kB / 0.7031 GB, free: 8.512 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002185/0.185, allocations: 122.2 kB / 0.7032 GB, free: 8.387 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001447/0.1851, allocations: 362.8 kB / 0.7036 GB, free: 8.023 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007794/0.1859, allocations: 289.1 kB / 0.7038 GB, free: 7.738 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008837/0.1868, allocations: 429.5 kB / 0.7042 GB, free: 7.27 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001633/0.1884, allocations: 0.7028 MB / 0.7049 GB, free: 6.52 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.1885, allocations: 0 / 0.7049 GB, free: 6.52 MB / 0.4981 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004422/0.1929, allocations: 1.065 MB / 0.706 GB, free: 5.445 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.1929, allocations: 4.344 kB / 0.706 GB, free: 5.441 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.1929, allocations: 12 kB / 0.706 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003221/0.1962, allocations: 380.5 kB / 0.7063 GB, free: 5.055 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008231/0.197, allocations: 163.7 kB / 0.7065 GB, free: 4.895 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004005/0.201, allocations: 2.172 MB / 0.7086 GB, free: 2.574 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000764/0.2018, allocations: 91.42 kB / 0.7087 GB, free: 2.484 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.402e-05/0.2019, allocations: 31.97 kB / 0.7087 GB, free: 2.453 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.0003568/0.2023, allocations: 212 kB / 0.7089 GB, free: 2.238 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001568/0.2024, allocations: 47.44 kB / 0.709 GB, free: 2.191 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003336/0.2058, allocations: 1.07 MB / 0.71 GB, free: 1.109 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.064e-05/0.2058, allocations: 15.88 kB / 0.71 GB, free: 1.094 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.2058, allocations: 3.984 kB / 0.71 GB, free: 1.09 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.769e-06/0.2058, allocations: 3.984 kB / 0.7101 GB, free: 1.086 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003911/0.2097, allocations: 1.781 MB / 0.7118 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.2098, allocations: 0 / 0.7118 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000764/0.2105, allocations: 147.8 kB / 0.7119 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009185/0.2115, allocations: 136.7 kB / 0.7121 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.352e-05/0.2115, allocations: 23.92 kB / 0.7121 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00255/0.2141, allocations: 1.92 MB / 0.714 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.2141, allocations: 0 / 0.714 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002886/0.217, allocations: 1.025 MB / 0.715 GB, free: 11.83 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000299/0.2173, allocations: 212.2 kB / 0.7152 GB, free: 11.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001012/0.2174, allocations: 12 kB / 0.7152 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006302/0.2181, allocations: 55.94 kB / 0.7152 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001239/0.2182, allocations: 44.59 kB / 0.7153 GB, free: 11.49 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.63e-05/0.2183, allocations: 23.98 kB / 0.7153 GB, free: 11.46 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003342/0.2186, allocations: 283.1 kB / 0.7156 GB, free: 11.19 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2186, allocations: 0 / 0.7156 GB, free: 11.19 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0007968/0.2194, allocations: 243.6 kB / 0.7158 GB, free: 10.95 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.001177/0.2206, allocations: 0.4978 MB / 0.7163 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002657/0.2233, allocations: 0.9381 MB / 0.7172 GB, free: 9.645 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.2233, allocations: 0 / 0.7172 GB, free: 9.645 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001178/0.2245, allocations: 0.5373 MB / 0.7177 GB, free: 9.098 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005062/0.225, allocations: 76.14 kB / 0.7178 GB, free: 9.027 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002328/0.2273, allocations: 1.243 MB / 0.719 GB, free: 7.754 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004585/0.2278, allocations: 0.8851 MB / 0.7199 GB, free: 6.844 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.000702/0.2285, allocations: 148.5 kB / 0.72 GB, free: 6.695 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002252/0.2287, allocations: 67.39 kB / 0.7201 GB, free: 6.629 MB / 0.5137 GB Notification: Performance of SimCode: time 4.21e-07/0.2287, allocations: 0 / 0.7201 GB, free: 6.629 MB / 0.5137 GB Notification: Performance of Templates: time 0.01745/0.2462, allocations: 10.01 MB / 0.7299 GB, free: 12.68 MB / 0.5294 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)