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.001407/0.001406, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001578/0.001578, allocations: 192.4 kB / 16.13 MB, free: 6.707 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.322/1.322, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002085/0.002085, allocations: 271.1 kB / 290.2 MB, free: 2.223 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9477/0.9477, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001645/0.001645, allocations: 90.19 kB / 0.5945 GB, free: 28.38 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1546/0.1562, allocations: 86.99 MB / 0.6794 GB, free: 1.184 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP): time 0.004922/0.1612, allocations: 3.714 MB / 0.6831 GB, free: 13.46 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004992/0.1662, allocations: 3.475 MB / 0.6864 GB, free: 9.98 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003443/0.1666, allocations: 7.938 kB / 0.6865 GB, free: 9.973 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.0005008/0.1671, allocations: 99.31 kB / 0.6865 GB, free: 9.875 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001124/0.1682, allocations: 378.2 kB / 0.6869 GB, free: 9.504 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007762/0.169, allocations: 354.3 kB / 0.6872 GB, free: 9.16 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007915/0.1698, allocations: 0.7449 MB / 0.688 GB, free: 8.414 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002897/0.1701, allocations: 185.6 kB / 0.6882 GB, free: 8.23 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004455/0.1706, allocations: 290.8 kB / 0.6884 GB, free: 7.945 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004677/0.1711, allocations: 318.6 kB / 0.6887 GB, free: 7.633 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.363e-05/0.1712, allocations: 36 kB / 0.6888 GB, free: 7.598 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008092/0.172, allocations: 479.4 kB / 0.6892 GB, free: 7.129 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001599/0.1721, allocations: 135.5 kB / 0.6894 GB, free: 6.996 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002696/0.1724, allocations: 294.3 kB / 0.6896 GB, free: 6.707 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001039/0.1735, allocations: 1.079 MB / 0.6907 GB, free: 5.625 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.1735, allocations: 0 / 0.6907 GB, free: 5.625 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.01e-07/0.1735, allocations: 0 / 0.6907 GB, free: 5.625 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.073e-06/0.1735, allocations: 0 / 0.6907 GB, free: 5.625 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.002142/0.1756, allocations: 1.019 MB / 0.6917 GB, free: 4.551 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.1757, allocations: 12.03 kB / 0.6917 GB, free: 4.539 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003174/0.1789, allocations: 0.5621 MB / 0.6922 GB, free: 3.977 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001329/0.1802, allocations: 0.6312 MB / 0.6929 GB, free: 3.309 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001149/0.1803, allocations: 118.2 kB / 0.693 GB, free: 3.176 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.281e-05/0.1804, allocations: 51.98 kB / 0.693 GB, free: 3.125 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001403/0.1818, allocations: 0.683 MB / 0.6937 GB, free: 2.422 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.1819, allocations: 0 / 0.6937 GB, free: 2.422 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.833e-05/0.1819, allocations: 20 kB / 0.6937 GB, free: 2.402 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.182, allocations: 12 kB / 0.6937 GB, free: 2.391 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001705/0.1837, allocations: 0.7065 MB / 0.6944 GB, free: 1.684 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003311/0.187, allocations: 1.871 MB / 0.6962 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002697/0.1897, allocations: 0.8219 MB / 0.697 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008311/0.1906, allocations: 358.3 kB / 0.6974 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001812/0.1924, allocations: 1.773 MB / 0.6991 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009711/0.1934, allocations: 418.9 kB / 0.6995 GB, free: 12 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=56): time 3.376e-06/0.1934, allocations: 0 / 0.6995 GB, free: 12 MB / 0.4981 GB Notification: Performance of matching and sorting (n=56): time 0.007428/0.2008, allocations: 1.511 MB / 0.701 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.596e-05/0.2009, allocations: 107.4 kB / 0.7011 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004721/0.2014, allocations: 402 kB / 0.7015 GB, free: 9.93 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.829e-05/0.2014, allocations: 37.7 kB / 0.7015 GB, free: 9.887 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001948/0.2016, allocations: 280.6 kB / 0.7018 GB, free: 9.605 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001618/0.2018, allocations: 185.3 kB / 0.702 GB, free: 9.422 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002193/0.202, allocations: 126.2 kB / 0.7021 GB, free: 9.293 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001397/0.2022, allocations: 354.8 kB / 0.7024 GB, free: 8.938 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007398/0.2029, allocations: 293.1 kB / 0.7027 GB, free: 8.648 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008604/0.2038, allocations: 429.4 kB / 0.7031 GB, free: 8.18 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00168/0.2055, allocations: 0.6911 MB / 0.7038 GB, free: 7.441 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.2055, allocations: 4 kB / 0.7038 GB, free: 7.438 MB / 0.4981 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004594/0.2101, allocations: 1.077 MB / 0.7048 GB, free: 6.352 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.373e-05/0.2101, allocations: 4 kB / 0.7048 GB, free: 6.348 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.2102, allocations: 8 kB / 0.7048 GB, free: 6.34 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003529/0.2137, allocations: 380.8 kB / 0.7052 GB, free: 5.965 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008484/0.2146, allocations: 159.7 kB / 0.7054 GB, free: 5.809 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004141/0.2187, allocations: 2.022 MB / 0.7073 GB, free: 3.641 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007932/0.2195, allocations: 89.41 kB / 0.7074 GB, free: 3.555 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.526e-05/0.2196, allocations: 27.97 kB / 0.7074 GB, free: 3.527 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.0003783/0.22, allocations: 211 kB / 0.7076 GB, free: 3.312 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000157/0.2202, allocations: 55.28 kB / 0.7077 GB, free: 3.258 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003347/0.2235, allocations: 1.07 MB / 0.7087 GB, free: 2.184 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.2235, allocations: 8 kB / 0.7088 GB, free: 2.176 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.2236, allocations: 3.984 kB / 0.7088 GB, free: 2.172 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.2236, allocations: 0 / 0.7088 GB, free: 2.172 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003981/0.2276, allocations: 1.784 MB / 0.7105 GB, free: 336 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.2276, allocations: 0 / 0.7105 GB, free: 336 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007758/0.2284, allocations: 143.8 kB / 0.7106 GB, free: 192 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001258/0.2296, allocations: 188.6 kB / 0.7108 GB, free: 0 / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.785e-05/0.2297, allocations: 16.06 kB / 0.7108 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002523/0.2322, allocations: 1.782 MB / 0.7126 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.2323, allocations: 0 / 0.7126 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00286/0.2351, allocations: 1.018 MB / 0.7136 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002708/0.2354, allocations: 208.2 kB / 0.7138 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.946e-05/0.2355, allocations: 12 kB / 0.7138 GB, free: 12.78 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006391/0.2362, allocations: 63.78 kB / 0.7138 GB, free: 12.72 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000119/0.2363, allocations: 48.59 kB / 0.7139 GB, free: 12.67 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.148e-05/0.2364, allocations: 19.98 kB / 0.7139 GB, free: 12.65 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003357/0.2367, allocations: 283.1 kB / 0.7142 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2367, allocations: 0 / 0.7142 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0008035/0.2375, allocations: 243.6 kB / 0.7144 GB, free: 12.14 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.001194/0.2387, allocations: 0.5039 MB / 0.7149 GB, free: 11.78 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002262/0.241, allocations: 0.8797 MB / 0.7158 GB, free: 10.89 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.241, allocations: 0 / 0.7158 GB, free: 10.89 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001115/0.2421, allocations: 0.5333 MB / 0.7163 GB, free: 10.34 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000495/0.2426, allocations: 70.59 kB / 0.7163 GB, free: 10.27 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002355/0.245, allocations: 1.46 MB / 0.7178 GB, free: 8.785 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004319/0.2455, allocations: 0.8931 MB / 0.7186 GB, free: 7.867 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0007104/0.2462, allocations: 148.5 kB / 0.7188 GB, free: 7.719 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00025/0.2464, allocations: 71.38 kB / 0.7189 GB, free: 7.648 MB / 0.5137 GB Notification: Performance of SimCode: time 3.41e-07/0.2464, allocations: 0 / 0.7189 GB, free: 7.648 MB / 0.5137 GB Notification: Performance of Templates: time 0.01633/0.2628, allocations: 9.633 MB / 0.7283 GB, free: 14.07 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)