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.00522/0.00522, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.00118/0.00118, allocations: 201.3 kB / 16.68 MB, free: 5.969 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.333/1.333, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002455/0.002455, allocations: 278.4 kB / 290.8 MB, free: 1.949 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9399/0.9399, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001822/0.001822, allocations: 95.86 kB / 0.6809 GB, free: 20 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1517/0.1535, allocations: 86.97 MB / 0.7659 GB, free: 8.973 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP): time 0.004999/0.1585, allocations: 3.732 MB / 0.7695 GB, free: 5.223 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.004747/0.1633, allocations: 3.442 MB / 0.7729 GB, free: 1.762 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003046/0.1636, allocations: 7.938 kB / 0.7729 GB, free: 1.754 MB / 0.5606 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.0004877/0.1641, allocations: 119 kB / 0.773 GB, free: 1.637 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001141/0.1653, allocations: 469.4 kB / 0.7734 GB, free: 1.176 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007843/0.1661, allocations: 362.4 kB / 0.7738 GB, free: 0.8242 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0007458/0.1668, allocations: 0.7527 MB / 0.7745 GB, free: 72 kB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.2986/0.4655, allocations: 181.9 kB / 0.7747 GB, free: 8.324 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005455/0.466, allocations: 313.3 kB / 0.775 GB, free: 8.312 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004572/0.4665, allocations: 321.7 kB / 0.7753 GB, free: 8.25 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001116/0.4666, allocations: 65.03 kB / 0.7754 GB, free: 8.25 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009356/0.4676, allocations: 0.4958 MB / 0.7759 GB, free: 8.25 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001687/0.4678, allocations: 174 kB / 0.776 GB, free: 8.227 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002766/0.468, allocations: 324.1 kB / 0.7763 GB, free: 8.129 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001277/0.4693, allocations: 1.091 MB / 0.7774 GB, free: 7.984 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.4693, allocations: 1.281 kB / 0.7774 GB, free: 7.984 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.974e-06/0.4693, allocations: 2.531 kB / 0.7774 GB, free: 7.984 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.043e-05/0.4694, allocations: 0.7188 kB / 0.7774 GB, free: 7.984 MB / 0.5606 GB 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.001812/0.4712, allocations: 1.018 MB / 0.7784 GB, free: 7.324 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.4712, allocations: 10.78 kB / 0.7784 GB, free: 7.324 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001067/0.4713, allocations: 91.83 kB / 0.7785 GB, free: 7.285 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003681/0.475, allocations: 0.6199 MB / 0.7791 GB, free: 7.242 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001351/0.4764, allocations: 0.6321 MB / 0.7797 GB, free: 6.973 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001055/0.4765, allocations: 122.3 kB / 0.7798 GB, free: 6.879 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.704e-05/0.4766, allocations: 48.62 kB / 0.7799 GB, free: 6.875 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001506/0.4781, allocations: 0.7023 MB / 0.7806 GB, free: 6.793 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/0.4782, allocations: 0.9375 kB / 0.7806 GB, free: 6.793 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.006e-05/0.4782, allocations: 20.5 kB / 0.7806 GB, free: 6.793 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.196e-05/0.4782, allocations: 10.75 kB / 0.7806 GB, free: 6.793 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001978/0.4802, allocations: 0.7602 MB / 0.7813 GB, free: 6.777 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003252/0.4835, allocations: 1.802 MB / 0.7831 GB, free: 6.398 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002895/0.4864, allocations: 0.8467 MB / 0.7839 GB, free: 6.125 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009343/0.4874, allocations: 364.1 kB / 0.7843 GB, free: 6 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001576/0.4889, allocations: 1.771 MB / 0.786 GB, free: 20.01 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001047/0.49, allocations: 446.5 kB / 0.7864 GB, free: 19.86 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=55): time 2.846e-06/0.49, allocations: 0.5625 kB / 0.7864 GB, free: 19.86 MB / 0.5762 GB Notification: Performance of matching and sorting (n=55): time 0.00663/0.4966, allocations: 1.617 MB / 0.788 GB, free: 19.38 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.561e-05/0.4967, allocations: 109.2 kB / 0.7881 GB, free: 19.25 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004405/0.4972, allocations: 423.2 kB / 0.7885 GB, free: 19.04 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 6.246e-05/0.4972, allocations: 35.3 kB / 0.7885 GB, free: 19 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001641/0.4974, allocations: 276.1 kB / 0.7888 GB, free: 18.77 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001245/0.4976, allocations: 197.9 kB / 0.789 GB, free: 18.62 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002123/0.4978, allocations: 130.6 kB / 0.7891 GB, free: 18.56 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001299/0.4979, allocations: 358.3 kB / 0.7895 GB, free: 18.23 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008731/0.4988, allocations: 308.1 kB / 0.7898 GB, free: 18.13 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009374/0.4997, allocations: 442.2 kB / 0.7902 GB, free: 17.89 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001784/0.5015, allocations: 0.7168 MB / 0.7909 GB, free: 17.54 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.5015, allocations: 1.688 kB / 0.7909 GB, free: 17.54 MB / 0.5762 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.003597/0.5051, allocations: 1.045 MB / 0.7919 GB, free: 17.23 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.5052, allocations: 4.375 kB / 0.7919 GB, free: 17.23 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.5052, allocations: 4.656 kB / 0.7919 GB, free: 17.23 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007097/0.5059, allocations: 146.3 kB / 0.792 GB, free: 17.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007899/0.5067, allocations: 154.5 kB / 0.7922 GB, free: 17.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004773/0.5115, allocations: 2.117 MB / 0.7943 GB, free: 15.61 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008604/0.5124, allocations: 91.92 kB / 0.7944 GB, free: 15.58 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.415e-05/0.5125, allocations: 34.81 kB / 0.7944 GB, free: 15.57 MB / 0.5762 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.0003466/0.5128, allocations: 216.2 kB / 0.7946 GB, free: 15.4 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001174/0.5129, allocations: 58.38 kB / 0.7946 GB, free: 15.37 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003416/0.5164, allocations: 1.044 MB / 0.7957 GB, free: 15 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.077e-06/0.5164, allocations: 9.875 kB / 0.7957 GB, free: 15 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.5164, allocations: 1.469 kB / 0.7957 GB, free: 15 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.122e-05/0.5164, allocations: 3.797 kB / 0.7957 GB, free: 15 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004218/0.5206, allocations: 1.753 MB / 0.7974 GB, free: 14.18 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.5206, allocations: 0 / 0.7974 GB, free: 14.18 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007578/0.5214, allocations: 145.8 kB / 0.7975 GB, free: 14.17 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006542/0.5221, allocations: 120 kB / 0.7976 GB, free: 14.14 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.802e-05/0.5221, allocations: 20.78 kB / 0.7977 GB, free: 14.13 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003585/0.5257, allocations: 1.911 MB / 0.7995 GB, free: 12.53 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.5258, allocations: 1.234 kB / 0.7995 GB, free: 12.53 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003449/0.5292, allocations: 1.014 MB / 0.8005 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003484/0.5296, allocations: 210.3 kB / 0.8007 GB, free: 11.94 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.796e-05/0.5297, allocations: 11.88 kB / 0.8007 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006615/0.5303, allocations: 61.22 kB / 0.8008 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001269/0.5305, allocations: 47.27 kB / 0.8008 GB, free: 11.91 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.45e-05/0.5306, allocations: 23.44 kB / 0.8009 GB, free: 11.91 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000382/0.5309, allocations: 288.5 kB / 0.8011 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.8e-07/0.5309, allocations: 0 / 0.8011 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0009232/0.5319, allocations: 242.1 kB / 0.8014 GB, free: 11.7 MB / 0.5762 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.004741/0.5366, allocations: 1.971 MB / 0.8033 GB, free: 10.64 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002378/0.539, allocations: 0.8635 MB / 0.8041 GB, free: 10.32 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.539, allocations: 1.094 kB / 0.8041 GB, free: 10.32 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001197/0.5402, allocations: 0.522 MB / 0.8046 GB, free: 10.08 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000533/0.5408, allocations: 74.02 kB / 0.8047 GB, free: 10.05 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01313/0.5539, allocations: 5.797 MB / 0.8104 GB, free: 7.121 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004764/0.5544, allocations: 0.879 MB / 0.8112 GB, free: 6.406 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0006445/0.5551, allocations: 146.6 kB / 0.8114 GB, free: 6.359 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004131/0.5555, allocations: 224.6 kB / 0.8116 GB, free: 6.211 MB / 0.5762 GB Notification: Performance of SimCode: time 7.22e-07/0.5555, allocations: 0 / 0.8116 GB, free: 6.211 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0375/0.593, allocations: 16.07 MB / 0.8273 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.75/12.34, allocations: 16.95 kB / 0.8273 GB, free: 14.95 MB / 0.5919 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP_res.csv --start-time 0 --stop-time 3.1536e+07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 12614.4 BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimpleMPP.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.pipe 2>&1)