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.005438/0.005438, allocations: 101 kB / 15.73 MB, free: 6.059 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.00138/0.00138, allocations: 192.5 kB / 16.67 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.441/1.441, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002498/0.002498, allocations: 283.3 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.186/1.186, allocations: 178.6 MB / 0.5074 GB, free: 12.63 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002751/0.002751, allocations: 95.84 kB / 0.6943 GB, free: 15.23 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4198/0.4226, allocations: 89.13 MB / 0.7813 GB, free: 1.125 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP): time 0.004913/0.4275, allocations: 3.697 MB / 0.7849 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.005232/0.4328, allocations: 3.474 MB / 0.7883 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002756/0.4331, allocations: 9.625 kB / 0.7883 GB, free: 11.42 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.0005148/0.4336, allocations: 120.9 kB / 0.7884 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.00112/0.4347, allocations: 453.7 kB / 0.7889 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009128/0.4356, allocations: 393.8 kB / 0.7892 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.000915/0.4366, allocations: 0.8108 MB / 0.79 GB, free: 10.17 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003165/0.4369, allocations: 193.5 kB / 0.7902 GB, free: 10.06 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000454/0.4374, allocations: 335.7 kB / 0.7905 GB, free: 9.859 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000564/0.4379, allocations: 347.1 kB / 0.7909 GB, free: 9.621 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001151/0.4381, allocations: 68.94 kB / 0.7909 GB, free: 9.621 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009822/0.439, allocations: 0.4988 MB / 0.7914 GB, free: 9.402 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002257/0.4393, allocations: 171.3 kB / 0.7916 GB, free: 9.266 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003565/0.4397, allocations: 332.9 kB / 0.7919 GB, free: 9.016 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001434/0.4411, allocations: 1.132 MB / 0.793 GB, free: 8.211 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.4411, allocations: 0 / 0.793 GB, free: 8.211 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.513e-06/0.4411, allocations: 0 / 0.793 GB, free: 8.211 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.749e-06/0.4411, allocations: 1.281 kB / 0.793 GB, free: 8.211 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.002348/0.4435, allocations: 1.04 MB / 0.794 GB, free: 7.363 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/0.4435, allocations: 13.92 kB / 0.794 GB, free: 7.359 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001213/0.4437, allocations: 91.2 kB / 0.7941 GB, free: 7.277 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003308/0.447, allocations: 0.5685 MB / 0.7947 GB, free: 7.055 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001453/0.4485, allocations: 0.632 MB / 0.7953 GB, free: 6.531 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001435/0.4486, allocations: 124.5 kB / 0.7954 GB, free: 6.41 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.207e-05/0.4487, allocations: 46.06 kB / 0.7955 GB, free: 6.395 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001547/0.4503, allocations: 0.6837 MB / 0.7961 GB, free: 5.957 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.676e-05/0.4503, allocations: 0 / 0.7961 GB, free: 5.957 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.242e-05/0.4504, allocations: 24.31 kB / 0.7961 GB, free: 5.938 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.263e-05/0.4504, allocations: 11.94 kB / 0.7962 GB, free: 5.938 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00189/0.4523, allocations: 0.7069 MB / 0.7968 GB, free: 5.582 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003571/0.4559, allocations: 1.86 MB / 0.7987 GB, free: 4.199 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002887/0.4588, allocations: 0.8411 MB / 0.7995 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009354/0.4597, allocations: 355 kB / 0.7998 GB, free: 3.566 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002052/0.4618, allocations: 1.768 MB / 0.8016 GB, free: 1.512 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001054/0.4629, allocations: 433.4 kB / 0.802 GB, free: 1.238 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=56): time 2.615e-06/0.4629, allocations: 0 / 0.802 GB, free: 1.238 MB / 0.5606 GB Notification: Performance of matching and sorting (n=56): time 0.007221/0.4701, allocations: 1.501 MB / 0.8034 GB, free: 488 kB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.318e-05/0.4702, allocations: 113.8 kB / 0.8035 GB, free: 356 kB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005526/0.4708, allocations: 402.9 kB / 0.8039 GB, free: 104 kB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 7.84e-05/0.4709, allocations: 36.42 kB / 0.804 GB, free: 64 kB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002477/0.4711, allocations: 273.2 kB / 0.8042 GB, free: 15.82 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002139/0.4713, allocations: 201.2 kB / 0.8044 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002406/0.4716, allocations: 125.8 kB / 0.8045 GB, free: 15.56 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000175/0.4718, allocations: 358.2 kB / 0.8049 GB, free: 15.21 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008437/0.4726, allocations: 298.3 kB / 0.8052 GB, free: 15.05 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009515/0.4736, allocations: 431.3 kB / 0.8056 GB, free: 14.74 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001756/0.4754, allocations: 0.6963 MB / 0.8062 GB, free: 14.3 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.4754, allocations: 0 / 0.8062 GB, free: 14.3 MB / 0.5762 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004689/0.4801, allocations: 1.076 MB / 0.8073 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.4801, allocations: 4 kB / 0.8073 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.248e-05/0.4801, allocations: 4.344 kB / 0.8073 GB, free: 13.29 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003368/0.4835, allocations: 388.5 kB / 0.8077 GB, free: 12.91 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008999/0.4844, allocations: 155.8 kB / 0.8078 GB, free: 12.76 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00441/0.4888, allocations: 2.168 MB / 0.8099 GB, free: 10.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008656/0.4897, allocations: 91.66 kB / 0.81 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001028/0.4898, allocations: 31.97 kB / 0.8101 GB, free: 10.31 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): 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.0004021/0.4903, allocations: 205.6 kB / 0.8103 GB, free: 10.1 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001857/0.4904, allocations: 59.56 kB / 0.8103 GB, free: 10.04 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003636/0.4941, allocations: 1.07 MB / 0.8114 GB, free: 8.965 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/0.4941, allocations: 7.938 kB / 0.8114 GB, free: 8.957 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.4941, allocations: 4 kB / 0.8114 GB, free: 8.953 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.868e-06/0.4942, allocations: 7.984 kB / 0.8114 GB, free: 8.945 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004425/0.4986, allocations: 1.762 MB / 0.8131 GB, free: 7.125 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.439e-06/0.4986, allocations: 0 / 0.8131 GB, free: 7.125 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008187/0.4994, allocations: 135.8 kB / 0.8132 GB, free: 6.992 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009907/0.5004, allocations: 148.6 kB / 0.8134 GB, free: 6.844 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.164e-05/0.5005, allocations: 23.98 kB / 0.8134 GB, free: 6.82 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002913/0.5034, allocations: 1.931 MB / 0.8153 GB, free: 4.742 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.5035, allocations: 0 / 0.8153 GB, free: 4.742 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003347/0.5068, allocations: 1.023 MB / 0.8163 GB, free: 3.703 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004074/0.5073, allocations: 212.5 kB / 0.8165 GB, free: 3.477 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001374/0.5074, allocations: 12 kB / 0.8165 GB, free: 3.465 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006894/0.5081, allocations: 55.94 kB / 0.8165 GB, free: 3.41 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001502/0.5083, allocations: 44.59 kB / 0.8166 GB, free: 3.367 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.159e-05/0.5083, allocations: 23.98 kB / 0.8166 GB, free: 3.344 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004371/0.5088, allocations: 279.1 kB / 0.8169 GB, free: 3.07 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9.488e-06/0.5088, allocations: 4 kB / 0.8169 GB, free: 3.066 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0009667/0.5098, allocations: 247.3 kB / 0.8171 GB, free: 2.824 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 (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.005289/0.5151, allocations: 1.965 MB / 0.819 GB, free: 0.9766 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0028/0.5179, allocations: 0.8952 MB / 0.8199 GB, free: 64 kB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.718e-06/0.5179, allocations: 0 / 0.8199 GB, free: 64 kB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001431/0.5194, allocations: 0.5375 MB / 0.8204 GB, free: 15.51 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007581/0.5201, allocations: 67.41 kB / 0.8205 GB, free: 15.45 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01569/0.5358, allocations: 5.787 MB / 0.8261 GB, free: 9.488 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006051/0.5365, allocations: 0.8851 MB / 0.827 GB, free: 8.57 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0007072/0.5372, allocations: 156.4 kB / 0.8272 GB, free: 8.418 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004704/0.5377, allocations: 219.3 kB / 0.8274 GB, free: 8.203 MB / 0.5919 GB Notification: Performance of SimCode: time 5.81e-07/0.5377, allocations: 0 / 0.8274 GB, free: 8.203 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05161/0.5893, allocations: 15.64 MB / 0.8426 GB, free: 8.789 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.47/13.06, allocations: 15.94 kB / 0.8427 GB, free: 8.777 MB / 0.6075 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP_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_PVModuleComplexMPP.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.pipe 2>&1)