Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.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.PVModuleSimpleMPP,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimpleMPP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimpleMPP",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.001202/0.001202, 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.00119/0.00119, allocations: 189.2 kB / 16.25 MB, free: 6.625 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.234/1.234, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00197/0.00197, allocations: 290.2 kB / 290.3 MB, free: 2.125 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8781/0.8781, allocations: 169.2 MB / 0.4978 GB, free: 14.04 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001628/0.001628, allocations: 88.97 kB / 0.5948 GB, free: 28.43 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.1382, allocations: 86.98 MB / 0.6797 GB, free: 0.9336 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP): time 0.005836/0.1441, allocations: 3.745 MB / 0.6834 GB, free: 13.18 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004502/0.1486, allocations: 3.394 MB / 0.6867 GB, free: 9.773 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003761/0.149, allocations: 7.938 kB / 0.6867 GB, free: 9.766 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.0005116/0.1496, allocations: 107.3 kB / 0.6868 GB, free: 9.66 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001187/0.1507, allocations: 394.2 kB / 0.6872 GB, free: 9.273 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007272/0.1515, allocations: 328.8 kB / 0.6875 GB, free: 8.957 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007/0.1522, allocations: 0.7603 MB / 0.6882 GB, free: 8.195 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002636/0.1525, allocations: 194.6 kB / 0.6884 GB, free: 8 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000364/0.1528, allocations: 306.8 kB / 0.6887 GB, free: 7.699 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000434/0.1533, allocations: 326.6 kB / 0.689 GB, free: 7.379 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001093/0.1534, allocations: 64 kB / 0.6891 GB, free: 7.316 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000759/0.1542, allocations: 0.4995 MB / 0.6896 GB, free: 6.816 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001758/0.1544, allocations: 175.4 kB / 0.6897 GB, free: 6.645 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000292/0.1547, allocations: 326.3 kB / 0.6901 GB, free: 6.324 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00106/0.1557, allocations: 1.067 MB / 0.6911 GB, free: 5.254 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1557, allocations: 0 / 0.6911 GB, free: 5.254 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1557, allocations: 0 / 0.6911 GB, free: 5.254 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.788e-05/0.1558, allocations: 0 / 0.6911 GB, free: 5.254 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001915/0.1577, allocations: 0.9952 MB / 0.6921 GB, free: 4.207 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.24e-05/0.1577, allocations: 15.97 kB / 0.6921 GB, free: 4.191 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001067/0.1578, allocations: 90.7 kB / 0.6922 GB, free: 4.094 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003436/0.1613, allocations: 0.6167 MB / 0.6928 GB, free: 3.477 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001266/0.1626, allocations: 0.6234 MB / 0.6934 GB, free: 2.816 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001168/0.1627, allocations: 126.4 kB / 0.6935 GB, free: 2.676 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.686e-05/0.1628, allocations: 40 kB / 0.6935 GB, free: 2.637 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001464/0.1643, allocations: 0.6987 MB / 0.6942 GB, free: 1.918 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.1643, allocations: 3.938 kB / 0.6942 GB, free: 1.914 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.422e-05/0.1643, allocations: 19.98 kB / 0.6942 GB, free: 1.895 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.032e-05/0.1644, allocations: 12 kB / 0.6943 GB, free: 1.883 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001834/0.1662, allocations: 0.7572 MB / 0.695 GB, free: 1.125 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002928/0.1691, allocations: 1.81 MB / 0.6968 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002677/0.1718, allocations: 0.8487 MB / 0.6976 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008964/0.1727, allocations: 369.9 kB / 0.6979 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001626/0.1744, allocations: 1.765 MB / 0.6997 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001003/0.1754, allocations: 442.7 kB / 0.7001 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=55): time 2.565e-06/0.1754, allocations: 3.938 kB / 0.7001 GB, free: 11.44 MB / 0.4981 GB Notification: Performance of matching and sorting (n=55): time 0.006555/0.182, allocations: 1.616 MB / 0.7017 GB, free: 9.801 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.225e-05/0.182, allocations: 115.3 kB / 0.7018 GB, free: 9.664 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004128/0.1824, allocations: 410.1 kB / 0.7022 GB, free: 9.258 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.461e-05/0.1825, allocations: 33.7 kB / 0.7022 GB, free: 9.219 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001685/0.1827, allocations: 276.5 kB / 0.7025 GB, free: 8.941 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001344/0.1828, allocations: 185.4 kB / 0.7026 GB, free: 8.758 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002031/0.183, allocations: 122.3 kB / 0.7028 GB, free: 8.633 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001128/0.1831, allocations: 362.8 kB / 0.7031 GB, free: 8.27 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008135/0.184, allocations: 309.1 kB / 0.7034 GB, free: 7.965 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009126/0.1849, allocations: 445.4 kB / 0.7038 GB, free: 7.48 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001676/0.1866, allocations: 0.7184 MB / 0.7045 GB, free: 6.715 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.1866, allocations: 0 / 0.7045 GB, free: 6.715 MB / 0.4981 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.003573/0.1902, allocations: 1.042 MB / 0.7055 GB, free: 5.664 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.1902, allocations: 11.94 kB / 0.7056 GB, free: 5.652 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.1902, allocations: 4 kB / 0.7056 GB, free: 5.648 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007511/0.191, allocations: 141 kB / 0.7057 GB, free: 5.508 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007778/0.1918, allocations: 155.7 kB / 0.7058 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004685/0.1965, allocations: 2.133 MB / 0.7079 GB, free: 3.078 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000688/0.1972, allocations: 91.53 kB / 0.708 GB, free: 2.988 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.174e-05/0.1972, allocations: 31.97 kB / 0.708 GB, free: 2.957 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): 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 {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002752/0.1975, allocations: 208 kB / 0.7082 GB, free: 2.746 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000109/0.1976, allocations: 51.34 kB / 0.7083 GB, free: 2.695 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003229/0.2009, allocations: 1.056 MB / 0.7093 GB, free: 1.621 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.2009, allocations: 8 kB / 0.7093 GB, free: 1.613 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-06/0.2009, allocations: 0 / 0.7093 GB, free: 1.613 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.225e-06/0.2009, allocations: 3.984 kB / 0.7093 GB, free: 1.609 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003769/0.2047, allocations: 1.743 MB / 0.711 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.2047, allocations: 0 / 0.711 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007134/0.2054, allocations: 147.8 kB / 0.7112 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005921/0.206, allocations: 116.7 kB / 0.7113 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.25e-05/0.2061, allocations: 15.98 kB / 0.7113 GB, free: 15.53 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003258/0.2093, allocations: 1.92 MB / 0.7132 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.2094, allocations: 3.984 kB / 0.7132 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002866/0.2122, allocations: 1.007 MB / 0.7142 GB, free: 12.43 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002936/0.2125, allocations: 208.2 kB / 0.7144 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000113/0.2127, allocations: 12 kB / 0.7144 GB, free: 12.19 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006229/0.2133, allocations: 63.92 kB / 0.7144 GB, free: 12.13 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/0.2134, allocations: 44.5 kB / 0.7145 GB, free: 12.09 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.008e-05/0.2135, allocations: 27.92 kB / 0.7145 GB, free: 12.06 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003346/0.2138, allocations: 287.1 kB / 0.7148 GB, free: 11.78 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.01e-07/0.2138, allocations: 0 / 0.7148 GB, free: 11.78 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0007577/0.2146, allocations: 235.7 kB / 0.715 GB, free: 11.55 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 (66): * Single equations (assignments): 64 * 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 {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004077/0.2187, allocations: 1.962 MB / 0.7169 GB, free: 9.703 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002344/0.221, allocations: 0.9086 MB / 0.7178 GB, free: 8.781 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.2211, allocations: 4 kB / 0.7178 GB, free: 8.777 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001001/0.2221, allocations: 0.5096 MB / 0.7183 GB, free: 8.254 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004852/0.2226, allocations: 79.36 kB / 0.7184 GB, free: 8.184 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01244/0.235, allocations: 6.072 MB / 0.7243 GB, free: 1.941 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003868/0.2354, allocations: 0.885 MB / 0.7252 GB, free: 1.027 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0006879/0.2361, allocations: 148.5 kB / 0.7253 GB, free: 0.8828 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003638/0.2365, allocations: 215.3 kB / 0.7255 GB, free: 0.6719 MB / 0.5137 GB Notification: Performance of SimCode: time 2.71e-07/0.2365, allocations: 0 / 0.7255 GB, free: 0.6719 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03022/0.2667, allocations: 15.68 MB / 0.7408 GB, free: 1.262 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002507/0.267, allocations: 312.1 kB / 0.7411 GB, free: 0.8711 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.065/2.332, allocations: 3.375 kB / 0.7411 GB, free: 0.8711 MB / 0.5294 GB (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimpleMPP_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimpleMPP.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.pipe 2>&1)