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.005356/0.005356, allocations: 99.03 kB / 15.73 MB, free: 6.008 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.001098/0.001099, allocations: 196.3 kB / 16.67 MB, free: 5.934 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.344/1.344, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002497/0.002497, allocations: 282.7 kB / 290.8 MB, free: 1.93 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9603/0.9603, allocations: 169.3 MB / 0.4983 GB, free: 13.77 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001731/0.001731, allocations: 99.84 kB / 0.6809 GB, free: 48 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1539/0.1557, allocations: 86.98 MB / 0.7659 GB, free: 8.992 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP): time 0.004742/0.1604, allocations: 3.687 MB / 0.7695 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.00459/0.1651, allocations: 3.466 MB / 0.7729 GB, free: 1.801 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003637/0.1654, allocations: 7.938 kB / 0.7729 GB, free: 1.793 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.0005065/0.166, allocations: 127 kB / 0.773 GB, free: 1.668 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001134/0.1671, allocations: 461.4 kB / 0.7734 GB, free: 1.215 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008435/0.168, allocations: 391.8 kB / 0.7738 GB, free: 0.8359 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0007485/0.1687, allocations: 0.8112 MB / 0.7746 GB, free: 24 kB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.3271/0.4959, allocations: 187.2 kB / 0.7748 GB, free: 8.301 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007027/0.4966, allocations: 342.1 kB / 0.7751 GB, free: 8.289 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005819/0.4972, allocations: 345 kB / 0.7754 GB, free: 8.23 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001336/0.4973, allocations: 73.59 kB / 0.7755 GB, free: 8.227 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001093/0.4984, allocations: 0.4995 MB / 0.776 GB, free: 8.227 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001872/0.4986, allocations: 177 kB / 0.7762 GB, free: 8.203 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003103/0.4989, allocations: 326.8 kB / 0.7765 GB, free: 8.113 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001593/0.5005, allocations: 1.126 MB / 0.7776 GB, free: 7.969 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.5006, allocations: 0.75 kB / 0.7776 GB, free: 7.969 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.733e-06/0.5006, allocations: 0 / 0.7776 GB, free: 7.969 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.775e-05/0.5006, allocations: 0 / 0.7776 GB, free: 7.969 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.002397/0.503, allocations: 1.055 MB / 0.7786 GB, free: 7.316 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.503, allocations: 9.969 kB / 0.7786 GB, free: 7.316 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001054/0.5032, allocations: 93.58 kB / 0.7787 GB, free: 7.277 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003227/0.5064, allocations: 0.5669 MB / 0.7793 GB, free: 7.23 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00128/0.5077, allocations: 0.6311 MB / 0.7799 GB, free: 6.961 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.813e-05/0.5078, allocations: 120.2 kB / 0.78 GB, free: 6.867 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.722e-05/0.5079, allocations: 48.75 kB / 0.78 GB, free: 6.863 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001369/0.5093, allocations: 0.6848 MB / 0.7807 GB, free: 6.785 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.839e-05/0.5093, allocations: 0.8438 kB / 0.7807 GB, free: 6.785 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.031e-05/0.5094, allocations: 19.41 kB / 0.7807 GB, free: 6.785 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.438e-05/0.5094, allocations: 10.38 kB / 0.7807 GB, free: 6.785 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001702/0.5111, allocations: 0.7135 MB / 0.7814 GB, free: 6.77 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003413/0.5145, allocations: 1.859 MB / 0.7832 GB, free: 6.332 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002699/0.5173, allocations: 0.8256 MB / 0.784 GB, free: 6.047 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008287/0.5181, allocations: 354.9 kB / 0.7844 GB, free: 5.918 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001566/0.5197, allocations: 1.768 MB / 0.7861 GB, free: 19.93 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009145/0.5206, allocations: 426.8 kB / 0.7865 GB, free: 19.77 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=56): time 2.295e-06/0.5206, allocations: 0 / 0.7865 GB, free: 19.77 MB / 0.5762 GB Notification: Performance of matching and sorting (n=56): time 0.006776/0.5274, allocations: 1.501 MB / 0.788 GB, free: 19.29 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.104e-05/0.5275, allocations: 113.5 kB / 0.7881 GB, free: 19.16 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005838/0.5281, allocations: 408.3 kB / 0.7885 GB, free: 18.95 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.514e-05/0.5282, allocations: 36.23 kB / 0.7885 GB, free: 18.91 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001845/0.5284, allocations: 277 kB / 0.7888 GB, free: 18.69 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001385/0.5285, allocations: 192.3 kB / 0.789 GB, free: 18.54 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002146/0.5287, allocations: 127.5 kB / 0.7891 GB, free: 18.48 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001247/0.5289, allocations: 358.7 kB / 0.7894 GB, free: 18.15 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007503/0.5296, allocations: 292.5 kB / 0.7897 GB, free: 18.05 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008049/0.5304, allocations: 432 kB / 0.7901 GB, free: 17.8 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001508/0.532, allocations: 0.6944 MB / 0.7908 GB, free: 17.45 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.532, allocations: 0.9688 kB / 0.7908 GB, free: 17.45 MB / 0.5762 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004303/0.5363, allocations: 1.076 MB / 0.7919 GB, free: 17.12 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.5363, allocations: 6.594 kB / 0.7919 GB, free: 17.12 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.5363, allocations: 4.953 kB / 0.7919 GB, free: 17.12 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003143/0.5395, allocations: 388.5 kB / 0.7922 GB, free: 17.09 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008229/0.5403, allocations: 155.5 kB / 0.7924 GB, free: 17.09 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003823/0.5441, allocations: 2.167 MB / 0.7945 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007916/0.545, allocations: 91.02 kB / 0.7946 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.089e-05/0.545, allocations: 32.33 kB / 0.7946 GB, free: 15.26 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.0003625/0.5454, allocations: 210.6 kB / 0.7948 GB, free: 15.1 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001194/0.5455, allocations: 52.11 kB / 0.7949 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003203/0.5487, allocations: 1.062 MB / 0.7959 GB, free: 14.69 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.097e-06/0.5488, allocations: 7.625 kB / 0.7959 GB, free: 14.69 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.5488, allocations: 9.188 kB / 0.7959 GB, free: 14.68 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.076e-05/0.5488, allocations: 3.75 kB / 0.7959 GB, free: 14.68 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003989/0.5528, allocations: 1.781 MB / 0.7977 GB, free: 13.84 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.5528, allocations: 2.906 kB / 0.7977 GB, free: 13.84 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007848/0.5536, allocations: 144 kB / 0.7978 GB, free: 13.84 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000917/0.5545, allocations: 143.6 kB / 0.7979 GB, free: 13.81 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.775e-05/0.5546, allocations: 17.67 kB / 0.798 GB, free: 13.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002672/0.5573, allocations: 1.93 MB / 0.7998 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.5573, allocations: 0.5312 kB / 0.7998 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0034/0.5607, allocations: 1.026 MB / 0.8008 GB, free: 11.7 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003809/0.5611, allocations: 206.6 kB / 0.801 GB, free: 11.54 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001018/0.5612, allocations: 16.05 kB / 0.8011 GB, free: 11.52 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006437/0.5619, allocations: 55.48 kB / 0.8011 GB, free: 11.51 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001621/0.562, allocations: 49.45 kB / 0.8012 GB, free: 11.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.542e-05/0.5621, allocations: 22.94 kB / 0.8012 GB, free: 11.5 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003832/0.5625, allocations: 282.3 kB / 0.8014 GB, free: 11.36 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8.41e-07/0.5625, allocations: 0 / 0.8014 GB, free: 11.36 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0009631/0.5635, allocations: 246.8 kB / 0.8017 GB, free: 11.3 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.004427/0.5679, allocations: 1.981 MB / 0.8036 GB, free: 10.23 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002558/0.5705, allocations: 0.8886 MB / 0.8045 GB, free: 9.879 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.5705, allocations: 1.5 kB / 0.8045 GB, free: 9.879 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.00119/0.5717, allocations: 0.5358 MB / 0.805 GB, free: 9.637 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005574/0.5723, allocations: 74.72 kB / 0.8051 GB, free: 9.594 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01444/0.5867, allocations: 5.788 MB / 0.8107 GB, free: 6.656 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004416/0.5872, allocations: 0.8754 MB / 0.8116 GB, free: 5.949 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0006464/0.5878, allocations: 150.7 kB / 0.8117 GB, free: 5.898 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000406/0.5883, allocations: 220.5 kB / 0.8119 GB, free: 5.754 MB / 0.5762 GB Notification: Performance of SimCode: time 7.51e-07/0.5883, allocations: 0 / 0.8119 GB, free: 5.754 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03902/0.6273, allocations: 15.66 MB / 0.8272 GB, free: 14.81 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.8/12.43, allocations: 13.06 kB / 0.8272 GB, free: 14.8 MB / 0.5919 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)