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.005576/0.005576, allocations: 103.3 kB / 15.73 MB, free: 6.035 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.001279/0.001279, allocations: 198.5 kB / 16.68 MB, free: 5.957 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.269/1.269, allocations: 222.9 MB / 240.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002072/0.002072, allocations: 278.4 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 0.8994/0.8994, allocations: 169.3 MB / 0.4983 GB, free: 4.414 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001769/0.00177, allocations: 99.83 kB / 0.6809 GB, free: 7.492 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4008/0.4026, allocations: 86.97 MB / 0.7659 GB, free: 3.887 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP): time 0.0047/0.4073, allocations: 3.723 MB / 0.7695 GB, free: 152 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.00471/0.4121, allocations: 3.427 MB / 0.7728 GB, free: 12.7 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003394/0.4124, allocations: 11.94 kB / 0.7729 GB, free: 12.69 MB / 0.545 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.0004401/0.4129, allocations: 130.9 kB / 0.773 GB, free: 12.56 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001045/0.414, allocations: 449.5 kB / 0.7734 GB, free: 12.12 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007418/0.4147, allocations: 369.9 kB / 0.7738 GB, free: 11.76 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0006965/0.4154, allocations: 0.7526 MB / 0.7745 GB, free: 11.01 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000279/0.4157, allocations: 209.9 kB / 0.7747 GB, free: 10.8 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003005/0.416, allocations: 302.9 kB / 0.775 GB, free: 10.5 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004081/0.4165, allocations: 318.6 kB / 0.7753 GB, free: 10.19 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 8.095e-05/0.4165, allocations: 64 kB / 0.7754 GB, free: 10.13 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007634/0.4173, allocations: 0.4956 MB / 0.7758 GB, free: 9.633 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001777/0.4175, allocations: 175.4 kB / 0.776 GB, free: 9.461 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002689/0.4178, allocations: 326.2 kB / 0.7763 GB, free: 9.141 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001073/0.4189, allocations: 1.087 MB / 0.7774 GB, free: 8.051 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.4189, allocations: 0 / 0.7774 GB, free: 8.051 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.222e-06/0.4189, allocations: 0 / 0.7774 GB, free: 8.051 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.514e-06/0.4189, allocations: 0 / 0.7774 GB, free: 8.051 MB / 0.545 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.001775/0.4207, allocations: 0.9952 MB / 0.7783 GB, free: 7.004 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.453e-05/0.4207, allocations: 8.031 kB / 0.7784 GB, free: 6.996 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001024/0.4208, allocations: 90.7 kB / 0.7784 GB, free: 6.898 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003436/0.4243, allocations: 0.6205 MB / 0.779 GB, free: 6.277 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001356/0.4256, allocations: 0.6196 MB / 0.7797 GB, free: 5.621 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001204/0.4258, allocations: 126.4 kB / 0.7798 GB, free: 5.48 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.876e-05/0.4259, allocations: 44 kB / 0.7798 GB, free: 5.438 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001505/0.4274, allocations: 0.6947 MB / 0.7805 GB, free: 4.727 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/0.4274, allocations: 11.94 kB / 0.7805 GB, free: 4.715 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.676e-05/0.4275, allocations: 20 kB / 0.7805 GB, free: 4.695 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.117e-05/0.4275, allocations: 8 kB / 0.7805 GB, free: 4.688 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00194/0.4294, allocations: 0.7572 MB / 0.7813 GB, free: 3.926 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003195/0.4326, allocations: 1.817 MB / 0.783 GB, free: 2.055 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002694/0.4354, allocations: 0.8398 MB / 0.7839 GB, free: 1.207 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009176/0.4363, allocations: 365.9 kB / 0.7842 GB, free: 0.8438 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001677/0.438, allocations: 1.769 MB / 0.7859 GB, free: 14.69 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001019/0.439, allocations: 442.7 kB / 0.7864 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=55): time 2.485e-06/0.439, allocations: 0 / 0.7864 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of matching and sorting (n=55): time 0.006466/0.4455, allocations: 1.616 MB / 0.7879 GB, free: 12.6 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.082e-05/0.4456, allocations: 111.3 kB / 0.7881 GB, free: 12.47 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004759/0.4461, allocations: 421.9 kB / 0.7885 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.786e-05/0.4461, allocations: 37.7 kB / 0.7885 GB, free: 12 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001824/0.4463, allocations: 268.6 kB / 0.7887 GB, free: 11.74 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.000157/0.4465, allocations: 185.3 kB / 0.7889 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002138/0.4467, allocations: 126.2 kB / 0.789 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001302/0.4468, allocations: 358.8 kB / 0.7894 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008599/0.4477, allocations: 313.1 kB / 0.7897 GB, free: 10.76 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009394/0.4487, allocations: 441.5 kB / 0.7901 GB, free: 10.27 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001757/0.4504, allocations: 0.7223 MB / 0.7908 GB, free: 9.508 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.4504, allocations: 0 / 0.7908 GB, free: 9.508 MB / 0.5606 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.003524/0.454, allocations: 1.034 MB / 0.7918 GB, free: 8.465 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.454, allocations: 15.97 kB / 0.7918 GB, free: 8.449 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.454, allocations: 7.938 kB / 0.7918 GB, free: 8.441 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006968/0.4547, allocations: 136.7 kB / 0.792 GB, free: 8.305 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007747/0.4555, allocations: 163.7 kB / 0.7921 GB, free: 8.145 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004696/0.4602, allocations: 2.111 MB / 0.7942 GB, free: 5.895 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007374/0.461, allocations: 99.53 kB / 0.7943 GB, free: 5.797 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.063e-05/0.461, allocations: 31.97 kB / 0.7943 GB, free: 5.766 MB / 0.5606 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.0003127/0.4614, allocations: 212 kB / 0.7945 GB, free: 5.551 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001127/0.4615, allocations: 59.27 kB / 0.7946 GB, free: 5.492 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003247/0.4647, allocations: 1.044 MB / 0.7956 GB, free: 4.434 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.4647, allocations: 8 kB / 0.7956 GB, free: 4.426 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.4648, allocations: 0 / 0.7956 GB, free: 4.426 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.4648, allocations: 3.984 kB / 0.7956 GB, free: 4.422 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003915/0.4687, allocations: 1.751 MB / 0.7973 GB, free: 2.609 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.4687, allocations: 0 / 0.7973 GB, free: 2.609 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007042/0.4694, allocations: 143.8 kB / 0.7975 GB, free: 2.469 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006/0.47, allocations: 120.7 kB / 0.7976 GB, free: 2.348 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.38e-05/0.4701, allocations: 15.98 kB / 0.7976 GB, free: 2.332 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003269/0.4734, allocations: 1.912 MB / 0.7995 GB, free: 276 kB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.4734, allocations: 0 / 0.7995 GB, free: 276 kB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002939/0.4763, allocations: 1.009 MB / 0.8004 GB, free: 15.23 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003007/0.4766, allocations: 208.1 kB / 0.8006 GB, free: 15.01 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.185e-05/0.4767, allocations: 15.98 kB / 0.8006 GB, free: 15 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006099/0.4773, allocations: 55.94 kB / 0.8007 GB, free: 14.94 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001015/0.4775, allocations: 48.5 kB / 0.8007 GB, free: 14.89 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.582e-05/0.4775, allocations: 27.92 kB / 0.8008 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003127/0.4778, allocations: 287.1 kB / 0.801 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.7e-07/0.4778, allocations: 7.938 kB / 0.8011 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007371/0.4786, allocations: 236.9 kB / 0.8013 GB, free: 14.36 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.004163/0.4828, allocations: 1.961 MB / 0.8032 GB, free: 12.52 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002123/0.4849, allocations: 0.854 MB / 0.804 GB, free: 11.65 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.4849, allocations: 4 kB / 0.804 GB, free: 11.65 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001029/0.486, allocations: 0.525 MB / 0.8045 GB, free: 11.11 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004855/0.4864, allocations: 75.19 kB / 0.8046 GB, free: 11.04 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01209/0.4985, allocations: 5.76 MB / 0.8102 GB, free: 5.098 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004288/0.499, allocations: 0.8772 MB / 0.8111 GB, free: 4.191 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0006062/0.4996, allocations: 148.5 kB / 0.8112 GB, free: 4.043 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003841/0.5, allocations: 227.2 kB / 0.8115 GB, free: 3.82 MB / 0.5762 GB Notification: Performance of SimCode: time 1.092e-06/0.5, allocations: 4 kB / 0.8115 GB, free: 3.816 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0385/0.5385, allocations: 15.87 MB / 0.827 GB, free: 4.184 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/11.97, allocations: 13.05 kB / 0.827 GB, free: 4.172 MB / 0.5919 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimpleMPP_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimpleMPP.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.pipe 2>&1)