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.004943/0.004943, allocations: 100.9 kB / 15.73 MB, free: 6.055 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.001273/0.001273, allocations: 192.8 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.434/1.434, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002483/0.002483, allocations: 287.6 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.214/1.214, allocations: 178.6 MB / 0.5074 GB, free: 12.75 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002718/0.002718, allocations: 91.84 kB / 0.6943 GB, free: 15.22 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3764/0.3792, allocations: 89.13 MB / 0.7813 GB, free: 1.355 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP): time 0.004715/0.3839, allocations: 3.731 MB / 0.7849 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.005191/0.3891, allocations: 3.438 MB / 0.7883 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002887/0.3895, allocations: 9.5 kB / 0.7883 GB, free: 11.65 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.0005426/0.39, allocations: 121.1 kB / 0.7884 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001092/0.3911, allocations: 465.9 kB / 0.7889 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007846/0.3919, allocations: 349 kB / 0.7892 GB, free: 10.94 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0007797/0.3927, allocations: 0.7622 MB / 0.7899 GB, free: 10.46 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002943/0.393, allocations: 197.6 kB / 0.7901 GB, free: 10.35 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003803/0.3934, allocations: 312.6 kB / 0.7904 GB, free: 10.16 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005005/0.3939, allocations: 317.8 kB / 0.7907 GB, free: 9.938 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 9.728e-05/0.394, allocations: 65.88 kB / 0.7908 GB, free: 9.938 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008803/0.3949, allocations: 0.4902 MB / 0.7913 GB, free: 9.723 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002016/0.3951, allocations: 174 kB / 0.7914 GB, free: 9.582 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003177/0.3954, allocations: 325.5 kB / 0.7918 GB, free: 9.34 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001318/0.3968, allocations: 1.097 MB / 0.7928 GB, free: 8.562 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.3968, allocations: 1.375 kB / 0.7928 GB, free: 8.562 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.332e-06/0.3968, allocations: 0 / 0.7928 GB, free: 8.562 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.827e-06/0.3968, allocations: 0 / 0.7928 GB, free: 8.562 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.001986/0.3988, allocations: 1.01 MB / 0.7938 GB, free: 7.723 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.3988, allocations: 13.91 kB / 0.7938 GB, free: 7.719 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001088/0.3989, allocations: 86.8 kB / 0.7939 GB, free: 7.641 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003576/0.4025, allocations: 0.624 MB / 0.7945 GB, free: 7.402 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001419/0.404, allocations: 0.6359 MB / 0.7951 GB, free: 6.875 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001393/0.4041, allocations: 121.3 kB / 0.7953 GB, free: 6.758 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.941e-05/0.4042, allocations: 42 kB / 0.7953 GB, free: 6.746 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001611/0.4058, allocations: 0.703 MB / 0.796 GB, free: 6.301 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.4058, allocations: 1.406 kB / 0.796 GB, free: 6.301 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.801e-05/0.4059, allocations: 15.59 kB / 0.796 GB, free: 6.289 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.159e-05/0.4059, allocations: 11.28 kB / 0.796 GB, free: 6.289 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002087/0.408, allocations: 0.7633 MB / 0.7968 GB, free: 5.91 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003518/0.4116, allocations: 1.801 MB / 0.7985 GB, free: 4.566 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002949/0.4145, allocations: 0.8456 MB / 0.7993 GB, free: 4.137 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009973/0.4155, allocations: 362.3 kB / 0.7997 GB, free: 3.957 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002021/0.4176, allocations: 1.769 MB / 0.8014 GB, free: 1.902 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001144/0.4187, allocations: 440 kB / 0.8018 GB, free: 1.629 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=55): time 2.655e-06/0.4187, allocations: 0 / 0.8018 GB, free: 1.629 MB / 0.5606 GB Notification: Performance of matching and sorting (n=55): time 0.006871/0.4256, allocations: 1.618 MB / 0.8034 GB, free: 0.8477 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.51e-05/0.4257, allocations: 113.1 kB / 0.8035 GB, free: 0.7188 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005645/0.4263, allocations: 421.2 kB / 0.8039 GB, free: 472 kB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.153e-05/0.4264, allocations: 32.48 kB / 0.804 GB, free: 436 kB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002434/0.4266, allocations: 281.3 kB / 0.8042 GB, free: 176 kB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.000187/0.4268, allocations: 196.8 kB / 0.8044 GB, free: 0 / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002589/0.4271, allocations: 121.8 kB / 0.8045 GB, free: 15.92 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0002192/0.4273, allocations: 362.6 kB / 0.8049 GB, free: 15.57 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009164/0.4282, allocations: 307.7 kB / 0.8052 GB, free: 15.42 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001082/0.4293, allocations: 446.7 kB / 0.8056 GB, free: 15.11 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001946/0.4313, allocations: 0.7159 MB / 0.8063 GB, free: 14.49 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.226e-06/0.4313, allocations: 7.984 kB / 0.8063 GB, free: 14.48 MB / 0.5762 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.003835/0.4351, allocations: 1.038 MB / 0.8073 GB, free: 13.44 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.728e-05/0.4352, allocations: 14.91 kB / 0.8073 GB, free: 13.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.4352, allocations: 7.938 kB / 0.8073 GB, free: 13.42 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007566/0.436, allocations: 141 kB / 0.8075 GB, free: 13.28 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008114/0.4368, allocations: 151.8 kB / 0.8076 GB, free: 13.13 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005117/0.4419, allocations: 2.118 MB / 0.8097 GB, free: 10.86 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008513/0.4428, allocations: 110.2 kB / 0.8098 GB, free: 10.75 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.001e-05/0.4429, allocations: 27.97 kB / 0.8098 GB, free: 10.73 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.0003872/0.4433, allocations: 214.6 kB / 0.81 GB, free: 10.51 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000126/0.4434, allocations: 51.67 kB / 0.8101 GB, free: 10.46 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003589/0.447, allocations: 1.048 MB / 0.8111 GB, free: 9.395 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.009e-05/0.447, allocations: 8 kB / 0.8111 GB, free: 9.387 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.447, allocations: 3.984 kB / 0.8111 GB, free: 9.383 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.034e-05/0.447, allocations: 7.984 kB / 0.8111 GB, free: 9.375 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004344/0.4514, allocations: 1.745 MB / 0.8128 GB, free: 7.57 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.4514, allocations: 7.938 kB / 0.8128 GB, free: 7.562 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007532/0.4522, allocations: 143.8 kB / 0.813 GB, free: 7.422 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006421/0.4528, allocations: 112.8 kB / 0.8131 GB, free: 7.309 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.546e-05/0.4529, allocations: 15.98 kB / 0.8131 GB, free: 7.293 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003744/0.4566, allocations: 1.916 MB / 0.815 GB, free: 5.23 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.4566, allocations: 0 / 0.815 GB, free: 5.23 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003264/0.4599, allocations: 1.013 MB / 0.8159 GB, free: 4.195 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003367/0.4603, allocations: 212.5 kB / 0.8161 GB, free: 3.969 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.657e-05/0.4604, allocations: 12 kB / 0.8162 GB, free: 3.957 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000644/0.461, allocations: 59.94 kB / 0.8162 GB, free: 3.898 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001366/0.4612, allocations: 48.48 kB / 0.8163 GB, free: 3.852 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.339e-05/0.4612, allocations: 23.92 kB / 0.8163 GB, free: 3.828 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003913/0.4616, allocations: 287.1 kB / 0.8166 GB, free: 3.547 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4616, allocations: 0 / 0.8166 GB, free: 3.547 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0008622/0.4625, allocations: 239.4 kB / 0.8168 GB, free: 3.312 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.005206/0.4677, allocations: 1.96 MB / 0.8187 GB, free: 1.477 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002452/0.4702, allocations: 0.8773 MB / 0.8196 GB, free: 0.5898 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4702, allocations: 0 / 0.8196 GB, free: 0.5898 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001173/0.4714, allocations: 0.5213 MB / 0.8201 GB, free: 56 kB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005607/0.472, allocations: 69.95 kB / 0.8201 GB, free: 15.98 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01378/0.4858, allocations: 5.794 MB / 0.8258 GB, free: 10.01 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006132/0.4864, allocations: 0.8849 MB / 0.8267 GB, free: 9.102 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0006934/0.4871, allocations: 144.5 kB / 0.8268 GB, free: 8.961 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004354/0.4876, allocations: 215.3 kB / 0.827 GB, free: 8.75 MB / 0.5919 GB Notification: Performance of SimCode: time 9.51e-07/0.4876, allocations: 0 / 0.827 GB, free: 8.75 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05025/0.5378, allocations: 16.08 MB / 0.8427 GB, free: 8.891 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.51/13.05, allocations: 11.53 kB / 0.8427 GB, free: 8.879 MB / 0.6075 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)