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.001001/0.001001, 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.0009846/0.0009845, allocations: 191 kB / 16.14 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.211/1.211, 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.001915/0.001915, allocations: 282.9 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.8852/0.8852, allocations: 169.2 MB / 0.4977 GB, free: 14.15 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001574/0.001575, allocations: 89.7 kB / 0.5946 GB, free: 28.22 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1285, allocations: 86.99 MB / 0.6795 GB, free: 1.082 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP): time 0.004763/0.1333, allocations: 3.703 MB / 0.6832 GB, free: 13.37 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004177/0.1375, allocations: 3.485 MB / 0.6866 GB, free: 9.883 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000171/0.1377, allocations: 7.938 kB / 0.6866 GB, free: 9.875 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.0003862/0.1381, allocations: 99.31 kB / 0.6867 GB, free: 9.777 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007132/0.1388, allocations: 374.3 kB / 0.687 GB, free: 9.41 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005833/0.1394, allocations: 346.4 kB / 0.6873 GB, free: 9.074 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006182/0.14, allocations: 0.7527 MB / 0.6881 GB, free: 8.32 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002462/0.1403, allocations: 189.6 kB / 0.6883 GB, free: 8.133 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003051/0.1406, allocations: 294.7 kB / 0.6885 GB, free: 7.844 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003994/0.141, allocations: 310.7 kB / 0.6888 GB, free: 7.539 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.565e-05/0.1411, allocations: 36 kB / 0.6889 GB, free: 7.504 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006688/0.1418, allocations: 475.4 kB / 0.6893 GB, free: 7.039 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000145/0.1419, allocations: 143.4 kB / 0.6895 GB, free: 6.898 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002575/0.1422, allocations: 290.3 kB / 0.6897 GB, free: 6.613 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009915/0.1432, allocations: 1.071 MB / 0.6908 GB, free: 5.539 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.1432, allocations: 0 / 0.6908 GB, free: 5.539 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.41e-07/0.1432, allocations: 0 / 0.6908 GB, free: 5.539 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.1432, allocations: 4 kB / 0.6908 GB, free: 5.535 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.002079/0.1453, allocations: 1.027 MB / 0.6918 GB, free: 4.453 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.392e-05/0.1453, allocations: 8.031 kB / 0.6918 GB, free: 4.445 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001133/0.1455, allocations: 90.7 kB / 0.6919 GB, free: 4.348 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002987/0.1485, allocations: 0.5621 MB / 0.6924 GB, free: 3.785 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001251/0.1497, allocations: 0.6312 MB / 0.6931 GB, free: 3.117 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000113/0.1498, allocations: 118 kB / 0.6932 GB, free: 2.984 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.738e-05/0.1499, allocations: 55.88 kB / 0.6932 GB, free: 2.93 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001328/0.1513, allocations: 0.6831 MB / 0.6939 GB, free: 2.227 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.1513, allocations: 0 / 0.6939 GB, free: 2.227 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.642e-05/0.1514, allocations: 20 kB / 0.6939 GB, free: 2.207 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.1514, allocations: 12 kB / 0.6939 GB, free: 2.195 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001627/0.153, allocations: 0.7065 MB / 0.6946 GB, free: 1.488 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0031/0.1561, allocations: 1.875 MB / 0.6964 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002524/0.1587, allocations: 0.8286 MB / 0.6972 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007888/0.1595, allocations: 350.3 kB / 0.6976 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001741/0.1612, allocations: 1.773 MB / 0.6993 GB, free: 12.22 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009044/0.1621, allocations: 422.9 kB / 0.6997 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=56): time 2.044e-06/0.1621, allocations: 3.938 kB / 0.6997 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of matching and sorting (n=56): time 0.006683/0.1688, allocations: 1.503 MB / 0.7012 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.808e-05/0.1689, allocations: 107.4 kB / 0.7013 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004094/0.1693, allocations: 405.8 kB / 0.7017 GB, free: 9.727 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.184e-05/0.1694, allocations: 33.7 kB / 0.7017 GB, free: 9.688 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001716/0.1695, allocations: 276.8 kB / 0.702 GB, free: 9.41 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001442/0.1697, allocations: 189.3 kB / 0.7022 GB, free: 9.223 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002128/0.1699, allocations: 130.1 kB / 0.7023 GB, free: 9.09 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001285/0.17, allocations: 354.8 kB / 0.7026 GB, free: 8.734 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007043/0.1708, allocations: 293.1 kB / 0.7029 GB, free: 8.445 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007871/0.1716, allocations: 421.5 kB / 0.7033 GB, free: 7.984 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0015/0.1731, allocations: 0.6989 MB / 0.704 GB, free: 7.238 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.1731, allocations: 0 / 0.704 GB, free: 7.238 MB / 0.4981 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004197/0.1773, allocations: 1.08 MB / 0.705 GB, free: 6.148 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.1773, allocations: 8 kB / 0.705 GB, free: 6.141 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.1773, allocations: 4 kB / 0.705 GB, free: 6.137 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003308/0.1806, allocations: 376.8 kB / 0.7054 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007731/0.1814, allocations: 159.7 kB / 0.7056 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003786/0.1852, allocations: 2.026 MB / 0.7075 GB, free: 3.438 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000662/0.1859, allocations: 89.31 kB / 0.7076 GB, free: 3.352 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.198e-05/0.186, allocations: 35.97 kB / 0.7077 GB, free: 3.316 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.0002805/0.1863, allocations: 203 kB / 0.7079 GB, free: 3.109 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001072/0.1864, allocations: 51.44 kB / 0.7079 GB, free: 3.059 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003055/0.1894, allocations: 1.062 MB / 0.7089 GB, free: 1.992 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.1894, allocations: 8 kB / 0.7089 GB, free: 1.984 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-06/0.1894, allocations: 0 / 0.7089 GB, free: 1.984 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.157e-06/0.1895, allocations: 7.922 kB / 0.709 GB, free: 1.977 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003507/0.193, allocations: 1.777 MB / 0.7107 GB, free: 144 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.193, allocations: 0 / 0.7107 GB, free: 144 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000718/0.1937, allocations: 143.8 kB / 0.7108 GB, free: 0 / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00119/0.1949, allocations: 184.8 kB / 0.711 GB, free: 15.81 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.014e-05/0.195, allocations: 23.86 kB / 0.711 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002216/0.1972, allocations: 1.786 MB / 0.7128 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1972, allocations: 0 / 0.7128 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002645/0.1999, allocations: 1.018 MB / 0.7138 GB, free: 12.82 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00022/0.2001, allocations: 204.2 kB / 0.714 GB, free: 12.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.678e-05/0.2002, allocations: 19.92 kB / 0.714 GB, free: 12.58 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006026/0.2008, allocations: 55.84 kB / 0.714 GB, free: 12.53 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.2009, allocations: 48.59 kB / 0.7141 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.702e-05/0.201, allocations: 23.98 kB / 0.7141 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002695/0.2012, allocations: 283.1 kB / 0.7144 GB, free: 12.18 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.71e-07/0.2013, allocations: 3.938 kB / 0.7144 GB, free: 12.18 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0006574/0.2019, allocations: 239.5 kB / 0.7146 GB, free: 11.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.003804/0.2057, allocations: 1.967 MB / 0.7165 GB, free: 10.1 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002014/0.2078, allocations: 0.8796 MB / 0.7174 GB, free: 9.207 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2078, allocations: 0 / 0.7174 GB, free: 9.207 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001045/0.2088, allocations: 0.5297 MB / 0.7179 GB, free: 8.664 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004624/0.2093, allocations: 73.41 kB / 0.718 GB, free: 8.59 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01308/0.2224, allocations: 6.052 MB / 0.7239 GB, free: 2.371 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000437/0.2228, allocations: 0.8812 MB / 0.7247 GB, free: 1.461 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0006732/0.2235, allocations: 152.4 kB / 0.7249 GB, free: 1.312 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003589/0.2239, allocations: 215.3 kB / 0.7251 GB, free: 1.102 MB / 0.5137 GB Notification: Performance of SimCode: time 3.41e-07/0.2239, allocations: 0 / 0.7251 GB, free: 1.102 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.134/1.358, allocations: 14.87 MB / 0.7396 GB, free: 2.508 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002865/1.359, allocations: 302 kB / 0.7399 GB, free: 2.129 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.937/3.295, allocations: 4.062 kB / 0.7399 GB, free: 2.125 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)