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.001395/0.001395, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00144/0.00144, allocations: 193 kB / 16.25 MB, free: 6.637 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.463/1.463, allocations: 222.9 MB / 239.9 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002591/0.002591, allocations: 287 kB / 290.4 MB, free: 2.156 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.068/1.068, allocations: 178.6 MB / 0.5069 GB, free: 4.73 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002704/0.002704, allocations: 100.1 kB / 0.6059 GB, free: 24.92 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1546/0.1573, allocations: 89.15 MB / 0.693 GB, free: 4.715 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP): time 0.005343/0.1627, allocations: 3.712 MB / 0.6966 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.005105/0.1678, allocations: 3.428 MB / 0.6999 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002421/0.1681, allocations: 11.88 kB / 0.7 GB, free: 13.55 MB / 0.4981 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.0004836/0.1686, allocations: 103.2 kB / 0.7001 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001018/0.1696, allocations: 402.2 kB / 0.7004 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007686/0.1704, allocations: 358.9 kB / 0.7008 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0008685/0.1713, allocations: 0.7995 MB / 0.7016 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003117/0.1716, allocations: 193.9 kB / 0.7017 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004281/0.172, allocations: 338.7 kB / 0.7021 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005075/0.1725, allocations: 346.6 kB / 0.7024 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001092/0.1727, allocations: 72 kB / 0.7025 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008048/0.1735, allocations: 0.4995 MB / 0.703 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000192/0.1737, allocations: 183.4 kB / 0.7031 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000319/0.174, allocations: 334.3 kB / 0.7034 GB, free: 9.965 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001265/0.1753, allocations: 1.102 MB / 0.7045 GB, free: 8.859 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1753, allocations: 0 / 0.7045 GB, free: 8.859 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.293e-06/0.1753, allocations: 0 / 0.7045 GB, free: 8.859 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.536e-06/0.1753, allocations: 0 / 0.7045 GB, free: 8.859 MB / 0.4981 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.002342/0.1777, allocations: 1.023 MB / 0.7055 GB, free: 7.785 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.1777, allocations: 12.03 kB / 0.7055 GB, free: 7.773 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00333/0.181, allocations: 0.5542 MB / 0.7061 GB, free: 7.219 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00142/0.1825, allocations: 0.6313 MB / 0.7067 GB, free: 6.551 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001402/0.1826, allocations: 122.2 kB / 0.7068 GB, free: 6.41 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001016/0.1827, allocations: 48 kB / 0.7069 GB, free: 6.363 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00153/0.1843, allocations: 0.6753 MB / 0.7075 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/0.1843, allocations: 0 / 0.7075 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.128e-05/0.1844, allocations: 24 kB / 0.7075 GB, free: 5.648 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.464e-05/0.1844, allocations: 12 kB / 0.7075 GB, free: 5.637 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001799/0.1862, allocations: 0.7142 MB / 0.7082 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00357/0.1898, allocations: 1.875 MB / 0.7101 GB, free: 2.988 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002801/0.1926, allocations: 0.8286 MB / 0.7109 GB, free: 2.148 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008721/0.1935, allocations: 350.3 kB / 0.7112 GB, free: 1.805 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002075/0.1956, allocations: 1.761 MB / 0.7129 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001024/0.1966, allocations: 430.8 kB / 0.7133 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=56): time 2.254e-06/0.1966, allocations: 3.938 kB / 0.7134 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of matching and sorting (n=56): time 0.007659/0.2043, allocations: 1.507 MB / 0.7148 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.144e-05/0.2044, allocations: 115.4 kB / 0.7149 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005053/0.2049, allocations: 402 kB / 0.7153 GB, free: 13.16 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 6.916e-05/0.205, allocations: 37.7 kB / 0.7154 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002255/0.2052, allocations: 268.6 kB / 0.7156 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001844/0.2054, allocations: 181.3 kB / 0.7158 GB, free: 12.66 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002396/0.2057, allocations: 126.2 kB / 0.7159 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001816/0.2058, allocations: 362.8 kB / 0.7162 GB, free: 12.17 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007869/0.2066, allocations: 293.1 kB / 0.7165 GB, free: 11.88 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009125/0.2076, allocations: 425.5 kB / 0.7169 GB, free: 11.42 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001684/0.2093, allocations: 0.6989 MB / 0.7176 GB, free: 10.67 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.123e-06/0.2093, allocations: 4 kB / 0.7176 GB, free: 10.67 MB / 0.5137 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004841/0.2141, allocations: 1.077 MB / 0.7187 GB, free: 9.582 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.2142, allocations: 9.75 kB / 0.7187 GB, free: 9.574 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.2142, allocations: 4 kB / 0.7187 GB, free: 9.57 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003726/0.2179, allocations: 380.5 kB / 0.719 GB, free: 9.195 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008593/0.2188, allocations: 163.7 kB / 0.7192 GB, free: 9.035 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004505/0.2233, allocations: 2.164 MB / 0.7213 GB, free: 6.719 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008182/0.2241, allocations: 87.42 kB / 0.7214 GB, free: 6.633 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.389e-05/0.2242, allocations: 31.97 kB / 0.7214 GB, free: 6.602 MB / 0.5137 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.0003638/0.2246, allocations: 211.6 kB / 0.7216 GB, free: 6.387 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001231/0.2247, allocations: 55.28 kB / 0.7217 GB, free: 6.332 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003522/0.2282, allocations: 1.07 MB / 0.7227 GB, free: 5.254 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.927e-06/0.2283, allocations: 11.88 kB / 0.7227 GB, free: 5.242 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.345e-06/0.2283, allocations: 0 / 0.7227 GB, free: 5.242 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.2283, allocations: 7.984 kB / 0.7227 GB, free: 5.234 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004173/0.2325, allocations: 1.774 MB / 0.7245 GB, free: 3.398 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.2325, allocations: 0 / 0.7245 GB, free: 3.398 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008006/0.2333, allocations: 143.8 kB / 0.7246 GB, free: 3.258 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001002/0.2343, allocations: 140.7 kB / 0.7248 GB, free: 3.117 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.306e-05/0.2344, allocations: 23.92 kB / 0.7248 GB, free: 3.094 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002849/0.2372, allocations: 1.927 MB / 0.7267 GB, free: 1.023 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.2372, allocations: 0 / 0.7267 GB, free: 1.023 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0031/0.2404, allocations: 1.029 MB / 0.7277 GB, free: 15.97 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003058/0.2407, allocations: 208.2 kB / 0.7279 GB, free: 15.75 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.403e-05/0.2408, allocations: 12.09 kB / 0.7279 GB, free: 15.74 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006498/0.2414, allocations: 51.94 kB / 0.7279 GB, free: 15.69 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001266/0.2416, allocations: 52.58 kB / 0.728 GB, free: 15.63 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.64e-05/0.2416, allocations: 23.98 kB / 0.728 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003576/0.242, allocations: 279.1 kB / 0.7283 GB, free: 15.34 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.8e-07/0.242, allocations: 0 / 0.7283 GB, free: 15.34 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0008086/0.2428, allocations: 247.6 kB / 0.7285 GB, free: 15.1 MB / 0.5294 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.00169/0.2445, allocations: 0.4901 MB / 0.729 GB, free: 14.75 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002774/0.2473, allocations: 0.9497 MB / 0.7299 GB, free: 13.78 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.2473, allocations: 0 / 0.7299 GB, free: 13.78 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001212/0.2485, allocations: 0.5375 MB / 0.7304 GB, free: 13.23 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000525/0.2491, allocations: 73.08 kB / 0.7305 GB, free: 13.16 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002572/0.2517, allocations: 1.47 MB / 0.7319 GB, free: 11.67 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005357/0.2522, allocations: 0.8812 MB / 0.7328 GB, free: 10.75 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0007484/0.253, allocations: 148.5 kB / 0.7329 GB, free: 10.61 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000242/0.2532, allocations: 71.39 kB / 0.733 GB, free: 10.54 MB / 0.5294 GB Notification: Performance of SimCode: time 4.61e-07/0.2532, allocations: 0 / 0.733 GB, free: 10.54 MB / 0.5294 GB Notification: Performance of Templates: time 0.01815/0.2714, allocations: 9.985 MB / 0.7428 GB, free: 0.6016 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)