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.001785/0.001785, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001954/0.001954, allocations: 198.1 kB / 16.14 MB, free: 6.723 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.502/1.502, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00268/0.00268, allocations: 287.1 kB / 290.2 MB, free: 2.227 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.084/1.084, allocations: 178.6 MB / 0.5068 GB, free: 4.738 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002793/0.002793, allocations: 95.83 kB / 0.6057 GB, free: 25.3 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1487/0.1515, allocations: 89.15 MB / 0.6928 GB, free: 4.82 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP): time 0.005376/0.1569, allocations: 3.714 MB / 0.6964 GB, free: 1.086 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.005092/0.1621, allocations: 3.481 MB / 0.6998 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002214/0.1623, allocations: 7.938 kB / 0.6998 GB, free: 13.58 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.0004658/0.1628, allocations: 111.3 kB / 0.6999 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0008609/0.1636, allocations: 374.2 kB / 0.7003 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000712/0.1644, allocations: 353.7 kB / 0.7006 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0007686/0.1651, allocations: 0.7486 MB / 0.7014 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003098/0.1655, allocations: 181.6 kB / 0.7015 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003801/0.1658, allocations: 290.7 kB / 0.7018 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004592/0.1663, allocations: 318.7 kB / 0.7021 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.992e-05/0.1664, allocations: 32 kB / 0.7021 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007948/0.1672, allocations: 483.4 kB / 0.7026 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001761/0.1674, allocations: 143.4 kB / 0.7027 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003085/0.1677, allocations: 290.4 kB / 0.703 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001206/0.1689, allocations: 1.071 MB / 0.7041 GB, free: 9.234 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.169, allocations: 4 kB / 0.7041 GB, free: 9.23 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.002e-06/0.169, allocations: 0 / 0.7041 GB, free: 9.23 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.732e-06/0.169, allocations: 0 / 0.7041 GB, free: 9.23 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.002371/0.1714, allocations: 1.02 MB / 0.7051 GB, free: 8.16 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.1714, allocations: 16.03 kB / 0.7051 GB, free: 8.145 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003404/0.1748, allocations: 0.5659 MB / 0.7056 GB, free: 7.578 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001556/0.1764, allocations: 0.6274 MB / 0.7062 GB, free: 6.914 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001361/0.1765, allocations: 118.2 kB / 0.7064 GB, free: 6.781 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.517e-05/0.1766, allocations: 48 kB / 0.7064 GB, free: 6.734 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001643/0.1783, allocations: 0.6869 MB / 0.7071 GB, free: 6.027 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.1783, allocations: 0 / 0.7071 GB, free: 6.027 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.2e-05/0.1784, allocations: 20 kB / 0.7071 GB, free: 6.008 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.317e-05/0.1784, allocations: 12 kB / 0.7071 GB, free: 5.996 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001832/0.1802, allocations: 0.7065 MB / 0.7078 GB, free: 5.289 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003661/0.1839, allocations: 1.871 MB / 0.7096 GB, free: 3.359 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002874/0.1868, allocations: 0.8284 MB / 0.7104 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008903/0.1877, allocations: 354.3 kB / 0.7108 GB, free: 2.176 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002202/0.1899, allocations: 1.761 MB / 0.7125 GB, free: 28 kB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00108/0.191, allocations: 426.9 kB / 0.7129 GB, free: 15.6 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=56): time 2.725e-06/0.191, allocations: 0 / 0.7129 GB, free: 15.6 MB / 0.5137 GB Notification: Performance of matching and sorting (n=56): time 0.007441/0.1985, allocations: 1.499 MB / 0.7144 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.217e-05/0.1986, allocations: 115.4 kB / 0.7145 GB, free: 13.94 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005672/0.1991, allocations: 406 kB / 0.7149 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 6.687e-05/0.1992, allocations: 41.64 kB / 0.7149 GB, free: 13.49 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002356/0.1995, allocations: 272.6 kB / 0.7152 GB, free: 13.22 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001908/0.1997, allocations: 181.3 kB / 0.7153 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002608/0.1999, allocations: 122.2 kB / 0.7154 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001817/0.2001, allocations: 362.7 kB / 0.7158 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008127/0.2009, allocations: 297.1 kB / 0.7161 GB, free: 12.26 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009432/0.2019, allocations: 433.4 kB / 0.7165 GB, free: 11.79 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001708/0.2036, allocations: 0.695 MB / 0.7172 GB, free: 11.04 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.272e-06/0.2036, allocations: 4 kB / 0.7172 GB, free: 11.04 MB / 0.5137 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004777/0.2084, allocations: 1.073 MB / 0.7182 GB, free: 9.957 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.2084, allocations: 5.562 kB / 0.7182 GB, free: 9.953 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.2085, allocations: 4 kB / 0.7182 GB, free: 9.949 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003482/0.2119, allocations: 388.8 kB / 0.7186 GB, free: 9.566 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000877/0.2128, allocations: 159.7 kB / 0.7187 GB, free: 9.41 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004438/0.2173, allocations: 2.014 MB / 0.7207 GB, free: 7.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000782/0.2181, allocations: 91.42 kB / 0.7208 GB, free: 7.16 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.698e-05/0.2182, allocations: 35.97 kB / 0.7208 GB, free: 7.125 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.0003606/0.2185, allocations: 205.6 kB / 0.721 GB, free: 6.914 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001237/0.2187, allocations: 47.44 kB / 0.7211 GB, free: 6.867 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003497/0.2222, allocations: 1.062 MB / 0.7221 GB, free: 5.793 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.2222, allocations: 8 kB / 0.7221 GB, free: 5.785 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.2222, allocations: 0 / 0.7221 GB, free: 5.785 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.2222, allocations: 7.984 kB / 0.7221 GB, free: 5.777 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004188/0.2264, allocations: 1.78 MB / 0.7239 GB, free: 3.938 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.2264, allocations: 0 / 0.7239 GB, free: 3.938 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007876/0.2272, allocations: 143.8 kB / 0.724 GB, free: 3.797 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001265/0.2285, allocations: 180.7 kB / 0.7242 GB, free: 3.617 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.823e-05/0.2286, allocations: 19.98 kB / 0.7242 GB, free: 3.598 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002725/0.2313, allocations: 1.786 MB / 0.7259 GB, free: 1.676 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.2313, allocations: 7.938 kB / 0.7259 GB, free: 1.668 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003068/0.2344, allocations: 1.018 MB / 0.7269 GB, free: 0.6289 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002882/0.2347, allocations: 208.2 kB / 0.7271 GB, free: 416 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.57e-05/0.2348, allocations: 16 kB / 0.7272 GB, free: 400 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006335/0.2354, allocations: 55.88 kB / 0.7272 GB, free: 344 kB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001284/0.2356, allocations: 48.58 kB / 0.7273 GB, free: 296 kB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.313e-05/0.2356, allocations: 19.98 kB / 0.7273 GB, free: 276 kB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003633/0.236, allocations: 291.1 kB / 0.7276 GB, free: 15.99 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2e-07/0.236, allocations: 0 / 0.7276 GB, free: 15.99 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0008126/0.2368, allocations: 243.6 kB / 0.7278 GB, free: 15.75 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.001694/0.2385, allocations: 0.4891 MB / 0.7283 GB, free: 15.4 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002368/0.2409, allocations: 0.8796 MB / 0.7291 GB, free: 14.5 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2409, allocations: 0 / 0.7291 GB, free: 14.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001213/0.2421, allocations: 0.5297 MB / 0.7296 GB, free: 13.96 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000511/0.2427, allocations: 62.2 kB / 0.7297 GB, free: 13.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002581/0.2453, allocations: 1.488 MB / 0.7311 GB, free: 12.39 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005422/0.2458, allocations: 0.8776 MB / 0.732 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0007473/0.2466, allocations: 148.5 kB / 0.7321 GB, free: 11.33 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002538/0.2468, allocations: 71.39 kB / 0.7322 GB, free: 11.26 MB / 0.5294 GB Notification: Performance of SimCode: time 1.012e-06/0.2468, allocations: 0 / 0.7322 GB, free: 11.26 MB / 0.5294 GB Notification: Performance of Templates: time 0.01835/0.2652, allocations: 9.632 MB / 0.7416 GB, free: 1.684 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)