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.001537/0.001537, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002254/0.002254, allocations: 197.9 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.213/2.213, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.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.1 kB / 290.7 MB, free: 2 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.247/1.247, allocations: 169.3 MB / 0.4982 GB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002951/0.002951, allocations: 96.92 kB / 0.5953 GB, free: 27.78 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2667/0.2697, allocations: 86.98 MB / 0.6803 GB, free: 0.6289 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP): time 0.008827/0.2786, allocations: 3.681 MB / 0.6839 GB, free: 12.93 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.008333/0.287, allocations: 3.47 MB / 0.6873 GB, free: 9.449 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007654/0.2878, allocations: 7.938 kB / 0.6873 GB, free: 9.441 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.0009701/0.2888, allocations: 124.8 kB / 0.6874 GB, free: 9.32 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002628/0.2915, allocations: 465.4 kB / 0.6878 GB, free: 8.863 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00162/0.2931, allocations: 382 kB / 0.6882 GB, free: 8.492 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001595/0.2948, allocations: 0.8112 MB / 0.689 GB, free: 7.68 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005518/0.2953, allocations: 190.6 kB / 0.6892 GB, free: 7.488 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008202/0.2962, allocations: 330.8 kB / 0.6895 GB, free: 7.164 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009798/0.2972, allocations: 350.7 kB / 0.6898 GB, free: 6.82 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002818/0.2975, allocations: 72 kB / 0.6899 GB, free: 6.75 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001707/0.2992, allocations: 0.4994 MB / 0.6904 GB, free: 6.25 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003726/0.2996, allocations: 183.4 kB / 0.6906 GB, free: 6.07 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007479/0.3003, allocations: 326.3 kB / 0.6909 GB, free: 5.75 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002819/0.3032, allocations: 1.098 MB / 0.6919 GB, free: 4.648 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.3032, allocations: 0 / 0.6919 GB, free: 4.648 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.706e-06/0.3032, allocations: 4 kB / 0.6919 GB, free: 4.645 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.818e-05/0.3033, allocations: 0 / 0.6919 GB, free: 4.645 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.004362/0.3076, allocations: 1.023 MB / 0.6929 GB, free: 3.57 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.55e-05/0.3077, allocations: 8.031 kB / 0.6929 GB, free: 3.562 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002379/0.308, allocations: 90.64 kB / 0.693 GB, free: 3.465 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005439/0.3134, allocations: 0.566 MB / 0.6936 GB, free: 2.898 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00248/0.3159, allocations: 0.6312 MB / 0.6942 GB, free: 2.23 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002266/0.3162, allocations: 126 kB / 0.6943 GB, free: 2.09 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00023/0.3164, allocations: 40 kB / 0.6944 GB, free: 2.051 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002463/0.3189, allocations: 0.6792 MB / 0.695 GB, free: 1.355 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.537e-05/0.319, allocations: 0 / 0.695 GB, free: 1.355 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001196/0.3191, allocations: 20 kB / 0.695 GB, free: 1.336 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.86e-05/0.3191, allocations: 12 kB / 0.6951 GB, free: 1.324 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002891/0.322, allocations: 0.7181 MB / 0.6958 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00577/0.3278, allocations: 1.867 MB / 0.6976 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004435/0.3323, allocations: 0.8259 MB / 0.6984 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00145/0.3338, allocations: 346.3 kB / 0.6987 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002828/0.3366, allocations: 1.769 MB / 0.7004 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001671/0.3383, allocations: 430.8 kB / 0.7009 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=56): time 6.061e-06/0.3384, allocations: 0 / 0.7009 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of matching and sorting (n=56): time 0.01098/0.3494, allocations: 1.503 MB / 0.7023 GB, free: 9.387 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/0.3495, allocations: 119.3 kB / 0.7024 GB, free: 9.246 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001002/0.3506, allocations: 401.9 kB / 0.7028 GB, free: 8.848 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001763/0.3508, allocations: 37.7 kB / 0.7029 GB, free: 8.805 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003524/0.3511, allocations: 264.8 kB / 0.7031 GB, free: 8.539 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003573/0.3515, allocations: 189.3 kB / 0.7033 GB, free: 8.352 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004148/0.3519, allocations: 122.2 kB / 0.7034 GB, free: 8.227 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002234/0.3522, allocations: 358.8 kB / 0.7037 GB, free: 7.867 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001335/0.3535, allocations: 289.1 kB / 0.704 GB, free: 7.582 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001466/0.355, allocations: 433.5 kB / 0.7044 GB, free: 7.109 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002697/0.3577, allocations: 0.6989 MB / 0.7051 GB, free: 6.363 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.674e-06/0.3578, allocations: 4 kB / 0.7051 GB, free: 6.359 MB / 0.4981 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.007186/0.365, allocations: 1.073 MB / 0.7062 GB, free: 5.277 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.166e-05/0.365, allocations: 11.94 kB / 0.7062 GB, free: 5.266 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.183e-05/0.3651, allocations: 8 kB / 0.7062 GB, free: 5.258 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005068/0.3702, allocations: 376.8 kB / 0.7065 GB, free: 4.887 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001508/0.3717, allocations: 159.7 kB / 0.7067 GB, free: 4.73 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006828/0.3786, allocations: 2.168 MB / 0.7088 GB, free: 2.414 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001443/0.3801, allocations: 95.42 kB / 0.7089 GB, free: 2.32 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002337/0.3803, allocations: 31.97 kB / 0.7089 GB, free: 2.289 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.0007126/0.3811, allocations: 206.3 kB / 0.7091 GB, free: 2.078 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003426/0.3814, allocations: 55.31 kB / 0.7092 GB, free: 2.023 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00553/0.387, allocations: 1.066 MB / 0.7102 GB, free: 0.9453 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-05/0.387, allocations: 11.94 kB / 0.7102 GB, free: 0.9336 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/0.3871, allocations: 0 / 0.7102 GB, free: 0.9336 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.246e-05/0.3871, allocations: 3.984 kB / 0.7102 GB, free: 0.9297 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006918/0.394, allocations: 1.78 MB / 0.712 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.437e-06/0.3941, allocations: 0 / 0.712 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001236/0.3953, allocations: 147.8 kB / 0.7121 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001433/0.3968, allocations: 148.7 kB / 0.7123 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001182/0.3969, allocations: 15.98 kB / 0.7123 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004697/0.4016, allocations: 1.928 MB / 0.7142 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.4017, allocations: 4 kB / 0.7142 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004806/0.4065, allocations: 1.018 MB / 0.7152 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006239/0.4072, allocations: 208.2 kB / 0.7154 GB, free: 11.44 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002019/0.4074, allocations: 16 kB / 0.7154 GB, free: 11.43 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009342/0.4083, allocations: 51.94 kB / 0.7154 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002264/0.4086, allocations: 48.58 kB / 0.7155 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000108/0.4087, allocations: 23.98 kB / 0.7155 GB, free: 11.3 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0006138/0.4093, allocations: 283.1 kB / 0.7158 GB, free: 11.03 MB / 0.5137 GB Notification: Performance of sort global known variables: time 3.51e-07/0.4094, allocations: 0 / 0.7158 GB, free: 11.03 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001501/0.4109, allocations: 235.6 kB / 0.716 GB, free: 10.8 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.00674/0.4176, allocations: 1.98 MB / 0.7179 GB, free: 8.938 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.004346/0.422, allocations: 0.9342 MB / 0.7188 GB, free: 7.992 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/0.4221, allocations: 3.938 kB / 0.7188 GB, free: 7.988 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002032/0.4241, allocations: 0.5375 MB / 0.7194 GB, free: 7.434 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001023/0.4251, allocations: 64.2 kB / 0.7194 GB, free: 7.375 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02394/0.4491, allocations: 5.826 MB / 0.7251 GB, free: 1.371 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001072/0.4503, allocations: 0.8773 MB / 0.726 GB, free: 476 kB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001556/0.4519, allocations: 148.5 kB / 0.7261 GB, free: 328 kB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007817/0.4527, allocations: 219.3 kB / 0.7263 GB, free: 108 kB / 0.5137 GB Notification: Performance of SimCode: time 1.593e-06/0.4527, allocations: 3.938 kB / 0.7263 GB, free: 104 kB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07498/0.5277, allocations: 15.37 MB / 0.7413 GB, free: 0.9844 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.67/18.2, allocations: 5.438 kB / 0.7413 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 & 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)