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.001612/0.001612, 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.002394/0.002394, allocations: 198.3 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.457/2.457, 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.003258/0.003257, allocations: 279 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.598/1.598, allocations: 169.3 MB / 0.4982 GB, free: 13.97 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002976/0.002976, allocations: 92.84 kB / 0.5953 GB, free: 27.95 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2488/0.2518, allocations: 86.99 MB / 0.6803 GB, free: 0.625 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP): time 0.007807/0.2596, allocations: 3.72 MB / 0.6839 GB, free: 12.9 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.007324/0.267, allocations: 3.443 MB / 0.6873 GB, free: 9.449 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005918/0.2677, 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.0007759/0.2685, allocations: 127 kB / 0.6874 GB, free: 9.316 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001969/0.2705, allocations: 465.3 kB / 0.6878 GB, free: 8.859 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001325/0.2718, allocations: 350 kB / 0.6882 GB, free: 8.52 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001217/0.2731, allocations: 0.7564 MB / 0.6889 GB, free: 7.762 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004555/0.2735, allocations: 194.6 kB / 0.6891 GB, free: 7.566 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005972/0.2741, allocations: 302.8 kB / 0.6894 GB, free: 7.27 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006662/0.2748, allocations: 322.6 kB / 0.6897 GB, free: 6.953 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001491/0.275, allocations: 68 kB / 0.6898 GB, free: 6.887 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00141/0.2764, allocations: 0.4956 MB / 0.6902 GB, free: 6.391 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002588/0.2767, allocations: 167.5 kB / 0.6904 GB, free: 6.227 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004465/0.2771, allocations: 326.3 kB / 0.6907 GB, free: 5.906 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001998/0.2791, allocations: 1.067 MB / 0.6918 GB, free: 4.836 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.2792, allocations: 0 / 0.6918 GB, free: 4.836 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.616e-06/0.2792, allocations: 0 / 0.6918 GB, free: 4.836 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.202e-05/0.2792, allocations: 3.938 kB / 0.6918 GB, free: 4.832 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.00286/0.2821, allocations: 0.9914 MB / 0.6927 GB, free: 3.789 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.717e-05/0.2821, allocations: 8.031 kB / 0.6927 GB, free: 3.781 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001523/0.2823, allocations: 90.7 kB / 0.6928 GB, free: 3.684 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005139/0.2875, allocations: 0.6206 MB / 0.6934 GB, free: 3.062 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002282/0.2898, allocations: 0.6234 MB / 0.694 GB, free: 2.402 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002161/0.29, allocations: 122.4 kB / 0.6942 GB, free: 2.266 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001387/0.2902, allocations: 44 kB / 0.6942 GB, free: 2.223 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002446/0.2926, allocations: 0.6987 MB / 0.6949 GB, free: 1.508 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.293e-05/0.2927, allocations: 7.969 kB / 0.6949 GB, free: 1.5 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001019/0.2928, allocations: 24 kB / 0.6949 GB, free: 1.477 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.67e-05/0.2928, allocations: 8 kB / 0.6949 GB, free: 1.469 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002854/0.2957, allocations: 0.7572 MB / 0.6957 GB, free: 0.6992 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00516/0.3008, allocations: 1.81 MB / 0.6974 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004194/0.3051, allocations: 0.8487 MB / 0.6983 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001404/0.3065, allocations: 373.9 kB / 0.6986 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002838/0.3094, allocations: 1.769 MB / 0.7003 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001642/0.311, allocations: 442.7 kB / 0.7008 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=55): time 4.949e-06/0.311, allocations: 0 / 0.7008 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of matching and sorting (n=55): time 0.009476/0.3205, allocations: 1.62 MB / 0.7023 GB, free: 9.359 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/0.3207, allocations: 119.2 kB / 0.7025 GB, free: 9.219 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001047/0.3217, allocations: 414 kB / 0.7029 GB, free: 8.809 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 9.486e-05/0.3219, allocations: 33.7 kB / 0.7029 GB, free: 8.77 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003511/0.3222, allocations: 272.5 kB / 0.7031 GB, free: 8.496 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002755/0.3225, allocations: 181.4 kB / 0.7033 GB, free: 8.316 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003462/0.3229, allocations: 122.3 kB / 0.7034 GB, free: 8.191 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002475/0.3231, allocations: 358.8 kB / 0.7038 GB, free: 7.832 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001336/0.3245, allocations: 309.1 kB / 0.7041 GB, free: 7.527 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001687/0.3262, allocations: 449.4 kB / 0.7045 GB, free: 7.039 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00286/0.3291, allocations: 0.7105 MB / 0.7052 GB, free: 6.285 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.154e-05/0.3291, allocations: 4 kB / 0.7052 GB, free: 6.281 MB / 0.4981 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.005326/0.3344, allocations: 1.042 MB / 0.7062 GB, free: 5.227 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.363e-05/0.3345, allocations: 8 kB / 0.7062 GB, free: 5.219 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.831e-05/0.3345, allocations: 7.938 kB / 0.7062 GB, free: 5.211 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00103/0.3355, allocations: 145 kB / 0.7064 GB, free: 5.066 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001264/0.3368, allocations: 155.7 kB / 0.7065 GB, free: 4.914 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007011/0.3438, allocations: 2.121 MB / 0.7086 GB, free: 2.652 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001158/0.345, allocations: 95.45 kB / 0.7087 GB, free: 2.559 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000138/0.3452, allocations: 35.97 kB / 0.7087 GB, free: 2.523 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): 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.0005302/0.3457, allocations: 210.4 kB / 0.7089 GB, free: 2.309 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002291/0.346, allocations: 51.34 kB / 0.709 GB, free: 2.258 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005254/0.3512, allocations: 1.048 MB / 0.71 GB, free: 1.195 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.384e-05/0.3513, allocations: 8 kB / 0.71 GB, free: 1.188 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.3513, allocations: 0 / 0.71 GB, free: 1.188 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.579e-05/0.3513, allocations: 3.984 kB / 0.71 GB, free: 1.184 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006092/0.3574, allocations: 1.747 MB / 0.7117 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/0.3575, allocations: 3.938 kB / 0.7117 GB, free: 15.37 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001075/0.3585, allocations: 139.8 kB / 0.7118 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008782/0.3594, allocations: 124.7 kB / 0.712 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001078/0.3596, allocations: 19.98 kB / 0.712 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005043/0.3646, allocations: 1.912 MB / 0.7138 GB, free: 13.03 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.3646, allocations: 4.062 kB / 0.7139 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004744/0.3694, allocations: 1.007 MB / 0.7148 GB, free: 12 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004924/0.3699, allocations: 208.3 kB / 0.715 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001831/0.3701, allocations: 19.97 kB / 0.7151 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009268/0.3711, allocations: 51.94 kB / 0.7151 GB, free: 11.7 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001887/0.3713, allocations: 48.5 kB / 0.7151 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.997e-05/0.3714, allocations: 23.98 kB / 0.7152 GB, free: 11.63 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0006712/0.3721, allocations: 295.1 kB / 0.7155 GB, free: 11.35 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.51e-07/0.3721, allocations: 0 / 0.7155 GB, free: 11.35 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001499/0.3736, allocations: 231.7 kB / 0.7157 GB, free: 11.12 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 (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.007611/0.3812, allocations: 1.954 MB / 0.7176 GB, free: 9.289 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.004805/0.3861, allocations: 0.9125 MB / 0.7185 GB, free: 8.363 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.3861, allocations: 0 / 0.7185 GB, free: 8.363 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002137/0.3882, allocations: 0.5174 MB / 0.719 GB, free: 7.832 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/0.3893, allocations: 74.66 kB / 0.7191 GB, free: 7.758 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.025/0.4143, allocations: 5.85 MB / 0.7248 GB, free: 1.73 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000885/0.4153, allocations: 0.8773 MB / 0.7256 GB, free: 0.8242 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001563/0.4169, allocations: 144.5 kB / 0.7258 GB, free: 0.6836 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007192/0.4176, allocations: 219.3 kB / 0.726 GB, free: 480 kB / 0.5137 GB Notification: Performance of SimCode: time 1.573e-06/0.4177, allocations: 0 / 0.726 GB, free: 480 kB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07581/0.4935, allocations: 15.77 MB / 0.7414 GB, free: 0.9414 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.95/17.45, allocations: 28.55 kB / 0.7414 GB, free: 0.9219 MB / 0.5294 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)