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: "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplexMPP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplexMPP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009085/0.0009085, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.005335/0.005335, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.241/1.241, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001628/0.001628, allocations: 258.6 kB / 291.7 MB, free: 1.895 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9021/0.9021, allocations: 169.5 MB / 0.5004 GB, free: 14.12 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003787/0.0003787, allocations: 12.62 kB / 0.5988 GB, free: 27.94 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/0.1314, allocations: 88.54 MB / 0.6852 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP): time 0.003396/0.1348, allocations: 3.336 MB / 0.6885 GB, free: 11.62 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003996/0.1388, allocations: 3.42 MB / 0.6918 GB, free: 8.207 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001569/0.139, allocations: 7.938 kB / 0.6918 GB, free: 8.199 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003176/0.1393, allocations: 103.3 kB / 0.6919 GB, free: 8.098 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007315/0.1401, allocations: 372.3 kB / 0.6923 GB, free: 7.734 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005874/0.1407, allocations: 349.6 kB / 0.6926 GB, free: 7.398 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006078/0.1413, allocations: 0.7526 MB / 0.6933 GB, free: 6.645 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000242/0.1415, allocations: 188.2 kB / 0.6935 GB, free: 6.461 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002842/0.1418, allocations: 266.8 kB / 0.6938 GB, free: 6.199 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003866/0.1422, allocations: 295.4 kB / 0.6941 GB, free: 5.91 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.408e-05/0.1423, allocations: 20 kB / 0.6941 GB, free: 5.891 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006394/0.1429, allocations: 467.4 kB / 0.6945 GB, free: 5.434 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001298/0.1431, allocations: 127.4 kB / 0.6947 GB, free: 5.309 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002237/0.1433, allocations: 292.1 kB / 0.6949 GB, free: 5.016 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009282/0.1442, allocations: 1.051 MB / 0.696 GB, free: 3.961 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1442, allocations: 4 kB / 0.696 GB, free: 3.957 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.72e-07/0.1443, allocations: 0 / 0.696 GB, free: 3.957 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.202e-06/0.1443, allocations: 4 kB / 0.696 GB, free: 3.953 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.00172/0.146, allocations: 0.8904 MB / 0.6968 GB, free: 3.008 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.165e-05/0.146, allocations: 8.031 kB / 0.6968 GB, free: 3 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001049/0.1461, allocations: 90.7 kB / 0.6969 GB, free: 2.902 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002971/0.1491, allocations: 0.5815 MB / 0.6975 GB, free: 2.32 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001202/0.1503, allocations: 0.6313 MB / 0.6981 GB, free: 1.652 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001092/0.1505, allocations: 126 kB / 0.6982 GB, free: 1.512 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.424e-05/0.1505, allocations: 44 kB / 0.6983 GB, free: 1.469 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001312/0.1519, allocations: 0.687 MB / 0.6989 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.1519, allocations: 0 / 0.6989 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.282e-05/0.152, allocations: 20 kB / 0.699 GB, free: 0.7422 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.152, allocations: 8 kB / 0.699 GB, free: 0.7344 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001607/0.1536, allocations: 0.7221 MB / 0.6997 GB, free: 12 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003011/0.1566, allocations: 1.883 MB / 0.7015 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002495/0.1591, allocations: 0.8364 MB / 0.7023 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007995/0.1599, allocations: 354.3 kB / 0.7027 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001542/0.1615, allocations: 1.761 MB / 0.7044 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008633/0.1624, allocations: 434.8 kB / 0.7048 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=56): time 1.944e-06/0.1624, allocations: 4 kB / 0.7048 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of matching and sorting (n=56): time 0.006378/0.1687, allocations: 1.511 MB / 0.7063 GB, free: 8.754 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.248e-05/0.1688, allocations: 111.4 kB / 0.7064 GB, free: 8.621 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000396/0.1692, allocations: 405.9 kB / 0.7068 GB, free: 8.219 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.614e-05/0.1693, allocations: 37.7 kB / 0.7068 GB, free: 8.176 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001665/0.1695, allocations: 268.8 kB / 0.7071 GB, free: 7.906 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001369/0.1696, allocations: 185.2 kB / 0.7072 GB, free: 7.723 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.762e-05/0.1697, allocations: 53.69 kB / 0.7073 GB, free: 7.664 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001149/0.1698, allocations: 358.8 kB / 0.7076 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007174/0.1705, allocations: 297.1 kB / 0.7079 GB, free: 7.012 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007898/0.1713, allocations: 441.4 kB / 0.7083 GB, free: 6.531 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001501/0.1728, allocations: 0.7028 MB / 0.709 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.1729, allocations: 0 / 0.709 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004069/0.1769, allocations: 1.088 MB / 0.7101 GB, free: 4.684 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.177, allocations: 8 kB / 0.7101 GB, free: 4.676 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.177, allocations: 4 kB / 0.7101 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003013/0.18, allocations: 372.8 kB / 0.7105 GB, free: 4.305 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000744/0.1807, allocations: 167.7 kB / 0.7106 GB, free: 4.141 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003492/0.1843, allocations: 2.018 MB / 0.7126 GB, free: 1.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006567/0.1849, allocations: 92.08 kB / 0.7127 GB, free: 1.891 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.281e-05/0.185, allocations: 31.97 kB / 0.7127 GB, free: 1.859 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.0002727/0.1853, allocations: 212.2 kB / 0.7129 GB, free: 1.645 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.065e-05/0.1854, allocations: 51.34 kB / 0.713 GB, free: 1.594 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003043/0.1884, allocations: 1.074 MB / 0.714 GB, free: 0.5156 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-06/0.1884, allocations: 8 kB / 0.714 GB, free: 0.5078 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.963e-06/0.1884, allocations: 0 / 0.714 GB, free: 0.5078 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.157e-06/0.1885, allocations: 11.92 kB / 0.714 GB, free: 0.4961 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003528/0.192, allocations: 1.781 MB / 0.7158 GB, free: 14.65 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.192, allocations: 0 / 0.7158 GB, free: 14.65 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006886/0.1927, allocations: 143.8 kB / 0.7159 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001114/0.1938, allocations: 184.7 kB / 0.7161 GB, free: 14.33 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.641e-05/0.1939, allocations: 19.98 kB / 0.7161 GB, free: 14.31 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002138/0.196, allocations: 1.782 MB / 0.7178 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.196, allocations: 0 / 0.7178 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002611/0.1987, allocations: 1.033 MB / 0.7188 GB, free: 11.33 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002253/0.1989, allocations: 208.2 kB / 0.719 GB, free: 11.11 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.797e-05/0.199, allocations: 19.94 kB / 0.7191 GB, free: 11.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005728/0.1996, allocations: 63.44 kB / 0.7191 GB, free: 11.03 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/0.1997, allocations: 44.58 kB / 0.7192 GB, free: 10.98 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.45e-05/0.1997, allocations: 23.98 kB / 0.7192 GB, free: 10.96 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.000288/0.2, allocations: 283.1 kB / 0.7195 GB, free: 10.69 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2, allocations: 0 / 0.7195 GB, free: 10.69 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0006838/0.2007, allocations: 235.6 kB / 0.7197 GB, free: 10.46 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.003852/0.2046, allocations: 1.986 MB / 0.7216 GB, free: 8.59 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00208/0.2067, allocations: 0.8951 MB / 0.7225 GB, free: 7.68 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.2067, allocations: 0 / 0.7225 GB, free: 7.68 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001045/0.2077, allocations: 0.5336 MB / 0.723 GB, free: 7.133 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004809/0.2082, allocations: 67.95 kB / 0.7231 GB, free: 7.066 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01302/0.2213, allocations: 6.139 MB / 0.7291 GB, free: 0.7578 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000404/0.2217, allocations: 0.8734 MB / 0.7299 GB, free: 15.86 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0007097/0.2224, allocations: 152.4 kB / 0.7301 GB, free: 15.71 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003661/0.2228, allocations: 223.3 kB / 0.7303 GB, free: 15.49 MB / 0.5294 GB Notification: Performance of SimCode: time 7.11e-07/0.2228, allocations: 4 kB / 0.7303 GB, free: 15.48 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5561/0.7789, allocations: 14.53 MB / 0.7445 GB, free: 1.246 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002536/0.7792, allocations: 305.9 kB / 0.7448 GB, free: 0.8672 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.941/2.721, allocations: 64 / 0.7448 GB, free: 0.8672 MB / 0.5294 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplexMPP_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplexMPP.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.pipe 2>&1)