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.001612/0.001612, 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.001819/0.00182, allocations: 191.8 kB / 16.25 MB, free: 6.633 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.257/1.257, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001914/0.001914, allocations: 283 kB / 290.3 MB, free: 2.145 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8912/0.8912, allocations: 169.2 MB / 0.4978 GB, free: 14.1 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001578/0.001579, allocations: 97.89 kB / 0.5948 GB, free: 28.2 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1357/0.1373, allocations: 86.97 MB / 0.6797 GB, free: 0.9883 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP): time 0.004688/0.142, allocations: 3.724 MB / 0.6834 GB, free: 13.25 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004393/0.1464, allocations: 3.423 MB / 0.6867 GB, free: 9.82 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002921/0.1467, allocations: 7.938 kB / 0.6867 GB, free: 9.812 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.0004871/0.1473, allocations: 105.3 kB / 0.6868 GB, free: 9.711 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001031/0.1483, allocations: 394.3 kB / 0.6872 GB, free: 9.324 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007075/0.149, allocations: 349.8 kB / 0.6875 GB, free: 8.984 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000658/0.1497, allocations: 0.7996 MB / 0.6883 GB, free: 8.184 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002684/0.15, allocations: 202.6 kB / 0.6885 GB, free: 7.98 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003416/0.1503, allocations: 342.7 kB / 0.6888 GB, free: 7.645 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004039/0.1507, allocations: 350.7 kB / 0.6891 GB, free: 7.301 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.78e-05/0.1508, allocations: 68 kB / 0.6892 GB, free: 7.234 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006811/0.1515, allocations: 0.5072 MB / 0.6897 GB, free: 6.727 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001525/0.1517, allocations: 183.4 kB / 0.6899 GB, free: 6.547 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002458/0.1519, allocations: 326.4 kB / 0.6902 GB, free: 6.227 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009963/0.1529, allocations: 1.102 MB / 0.6913 GB, free: 5.121 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.1529, allocations: 0 / 0.6913 GB, free: 5.121 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.153, allocations: 4 kB / 0.6913 GB, free: 5.117 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.306e-06/0.153, allocations: 0 / 0.6913 GB, free: 5.117 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.00203/0.155, allocations: 1.023 MB / 0.6923 GB, free: 4.043 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.155, allocations: 8.031 kB / 0.6923 GB, free: 4.035 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001/0.1551, allocations: 90.7 kB / 0.6924 GB, free: 3.938 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003006/0.1582, allocations: 0.5659 MB / 0.6929 GB, free: 3.371 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001196/0.1594, allocations: 0.6273 MB / 0.6935 GB, free: 2.707 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001099/0.1595, allocations: 122 kB / 0.6936 GB, free: 2.57 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.984e-05/0.1596, allocations: 44 kB / 0.6937 GB, free: 2.527 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001286/0.1609, allocations: 0.683 MB / 0.6944 GB, free: 1.824 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.1609, allocations: 0 / 0.6944 GB, free: 1.824 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.099e-05/0.161, allocations: 24 kB / 0.6944 GB, free: 1.801 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.457e-05/0.161, allocations: 12 kB / 0.6944 GB, free: 1.789 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001525/0.1625, allocations: 0.7065 MB / 0.6951 GB, free: 1.082 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00299/0.1655, allocations: 1.875 MB / 0.6969 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00245/0.168, allocations: 0.8259 MB / 0.6977 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00074/0.1687, allocations: 350.3 kB / 0.6981 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001589/0.1703, allocations: 1.765 MB / 0.6998 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008531/0.1712, allocations: 422.9 kB / 0.7002 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=56): time 2.374e-06/0.1712, allocations: 0 / 0.7002 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of matching and sorting (n=56): time 0.006565/0.1778, allocations: 1.511 MB / 0.7017 GB, free: 9.859 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.622e-05/0.1778, allocations: 107.4 kB / 0.7018 GB, free: 9.73 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000427/0.1783, allocations: 405.9 kB / 0.7021 GB, free: 9.328 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.405e-05/0.1783, allocations: 37.69 kB / 0.7022 GB, free: 9.285 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001767/0.1785, allocations: 272.6 kB / 0.7024 GB, free: 9.012 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001478/0.1787, allocations: 185.3 kB / 0.7026 GB, free: 8.828 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002179/0.1789, allocations: 126.2 kB / 0.7027 GB, free: 8.699 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001231/0.179, allocations: 362.8 kB / 0.7031 GB, free: 8.336 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006784/0.1797, allocations: 285.1 kB / 0.7034 GB, free: 8.055 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000788/0.1805, allocations: 437.5 kB / 0.7038 GB, free: 7.578 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001449/0.182, allocations: 0.6989 MB / 0.7045 GB, free: 6.832 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.182, allocations: 0 / 0.7045 GB, free: 6.832 MB / 0.4981 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004221/0.1862, allocations: 1.077 MB / 0.7055 GB, free: 5.746 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.1863, allocations: 12 kB / 0.7055 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.1863, allocations: 4 kB / 0.7055 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00318/0.1895, allocations: 372.5 kB / 0.7059 GB, free: 5.363 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007686/0.1902, allocations: 163.7 kB / 0.706 GB, free: 5.203 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003732/0.194, allocations: 2.168 MB / 0.7082 GB, free: 2.887 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007003/0.1947, allocations: 93.08 kB / 0.7082 GB, free: 2.797 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.747e-05/0.1948, allocations: 35.97 kB / 0.7083 GB, free: 2.762 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.0002939/0.1951, allocations: 210.3 kB / 0.7085 GB, free: 2.547 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001104/0.1952, allocations: 51.56 kB / 0.7085 GB, free: 2.496 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003013/0.1982, allocations: 1.066 MB / 0.7096 GB, free: 1.422 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.949e-06/0.1982, allocations: 11.94 kB / 0.7096 GB, free: 1.41 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.923e-06/0.1982, allocations: 0 / 0.7096 GB, free: 1.41 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.228e-05/0.1982, allocations: 3.984 kB / 0.7096 GB, free: 1.406 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00353/0.2018, allocations: 1.784 MB / 0.7113 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.2018, allocations: 0 / 0.7113 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006907/0.2025, allocations: 139.8 kB / 0.7115 GB, free: 15.42 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008619/0.2034, allocations: 144.7 kB / 0.7116 GB, free: 15.28 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.286e-05/0.2034, allocations: 23.92 kB / 0.7116 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002274/0.2057, allocations: 1.932 MB / 0.7135 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2057, allocations: 0 / 0.7135 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002586/0.2083, allocations: 1.014 MB / 0.7145 GB, free: 12.14 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002233/0.2085, allocations: 204.2 kB / 0.7147 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.334e-05/0.2086, allocations: 12 kB / 0.7147 GB, free: 11.91 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005835/0.2092, allocations: 59.94 kB / 0.7148 GB, free: 11.86 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/0.2094, allocations: 52.52 kB / 0.7148 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.473e-05/0.2094, allocations: 23.92 kB / 0.7148 GB, free: 11.78 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002796/0.2097, allocations: 283.1 kB / 0.7151 GB, free: 11.5 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.493e-06/0.2097, allocations: 0 / 0.7151 GB, free: 11.5 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0007108/0.2104, allocations: 247.5 kB / 0.7153 GB, free: 11.26 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.003814/0.2143, allocations: 1.966 MB / 0.7173 GB, free: 9.41 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002376/0.2166, allocations: 0.9342 MB / 0.7182 GB, free: 8.461 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2167, allocations: 4 kB / 0.7182 GB, free: 8.457 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001031/0.2177, allocations: 0.5375 MB / 0.7187 GB, free: 7.906 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004484/0.2182, allocations: 71.27 kB / 0.7188 GB, free: 7.844 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0135/0.2317, allocations: 6.054 MB / 0.7247 GB, free: 1.621 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003954/0.2321, allocations: 0.8812 MB / 0.7255 GB, free: 0.7109 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0006883/0.2328, allocations: 144.5 kB / 0.7257 GB, free: 0.5703 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003507/0.2331, allocations: 223.3 kB / 0.7259 GB, free: 360 kB / 0.5137 GB Notification: Performance of SimCode: time 6.32e-07/0.2331, allocations: 4 kB / 0.7259 GB, free: 356 kB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03126/0.2644, allocations: 15.26 MB / 0.7408 GB, free: 1.359 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002534/0.2647, allocations: 298.4 kB / 0.7411 GB, free: 0.9805 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.068/2.333, allocations: 2.531 kB / 0.7411 GB, free: 0.9805 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)