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.001026/0.001026, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001021/0.001021, allocations: 193.1 kB / 16.13 MB, free: 6.707 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.192/1.192, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001891/0.001891, allocations: 278.5 kB / 290.2 MB, free: 2.219 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8523/0.8523, allocations: 169.2 MB / 0.4977 GB, free: 14.17 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001537/0.001538, allocations: 94.28 kB / 0.5946 GB, free: 28.24 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1363/0.1379, allocations: 86.98 MB / 0.6795 GB, free: 1.109 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP): time 0.004462/0.1424, allocations: 3.747 MB / 0.6832 GB, free: 13.36 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003972/0.1464, allocations: 3.452 MB / 0.6866 GB, free: 9.891 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001597/0.1465, allocations: 7.938 kB / 0.6866 GB, free: 9.883 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.0003614/0.1469, allocations: 99.31 kB / 0.6867 GB, free: 9.785 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007001/0.1476, allocations: 374.2 kB / 0.687 GB, free: 9.418 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000528/0.1481, allocations: 326.3 kB / 0.6873 GB, free: 9.102 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005375/0.1487, allocations: 0.6978 MB / 0.688 GB, free: 8.402 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000231/0.1489, allocations: 185.6 kB / 0.6882 GB, free: 8.219 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002794/0.1492, allocations: 278.8 kB / 0.6885 GB, free: 7.945 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003537/0.1496, allocations: 298.6 kB / 0.6887 GB, free: 7.652 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.098e-05/0.1497, allocations: 32 kB / 0.6888 GB, free: 7.621 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006513/0.1503, allocations: 475.4 kB / 0.6892 GB, free: 7.156 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001584/0.1505, allocations: 131.5 kB / 0.6894 GB, free: 7.027 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002404/0.1507, allocations: 294.3 kB / 0.6896 GB, free: 6.738 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009217/0.1517, allocations: 1.044 MB / 0.6907 GB, free: 5.691 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.1517, allocations: 4 kB / 0.6907 GB, free: 5.688 MB / 494.1 MB Notification: Performance of FrontEnd: time 6.81e-07/0.1517, allocations: 0 / 0.6907 GB, free: 5.688 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.1517, allocations: 3.938 kB / 0.6907 GB, free: 5.684 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.001632/0.1533, allocations: 0.9914 MB / 0.6916 GB, free: 4.637 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.116e-05/0.1534, allocations: 12.03 kB / 0.6916 GB, free: 4.625 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001036/0.1535, allocations: 90.7 kB / 0.6917 GB, free: 4.527 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003258/0.1567, allocations: 0.6089 MB / 0.6923 GB, free: 3.918 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001213/0.158, allocations: 0.6312 MB / 0.6929 GB, free: 3.25 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001139/0.1581, allocations: 122.4 kB / 0.6931 GB, free: 3.113 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.609e-05/0.1582, allocations: 48 kB / 0.6931 GB, free: 3.066 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001468/0.1596, allocations: 0.6947 MB / 0.6938 GB, free: 2.352 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.1597, allocations: 0 / 0.6938 GB, free: 2.352 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.106e-05/0.1597, allocations: 20 kB / 0.6938 GB, free: 2.332 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.049e-05/0.1597, allocations: 12 kB / 0.6938 GB, free: 2.32 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001884/0.1616, allocations: 0.7572 MB / 0.6946 GB, free: 1.562 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002933/0.1646, allocations: 1.814 MB / 0.6963 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00261/0.1672, allocations: 0.8435 MB / 0.6971 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008593/0.1681, allocations: 365.9 kB / 0.6975 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001672/0.1698, allocations: 1.773 MB / 0.6992 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001037/0.1708, allocations: 450.7 kB / 0.6997 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=55): time 2.474e-06/0.1708, allocations: 0 / 0.6997 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of matching and sorting (n=55): time 0.006393/0.1772, allocations: 1.613 MB / 0.7012 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.25e-05/0.1773, allocations: 115.3 kB / 0.7013 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004232/0.1777, allocations: 410.1 kB / 0.7017 GB, free: 9.691 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.082e-05/0.1778, allocations: 33.7 kB / 0.7018 GB, free: 9.652 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001955/0.178, allocations: 288.5 kB / 0.702 GB, free: 9.363 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001419/0.1781, allocations: 177.4 kB / 0.7022 GB, free: 9.188 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001978/0.1783, allocations: 122.3 kB / 0.7023 GB, free: 9.062 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000125/0.1785, allocations: 358.8 kB / 0.7027 GB, free: 8.703 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008098/0.1793, allocations: 305.1 kB / 0.703 GB, free: 8.402 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009035/0.1802, allocations: 453.3 kB / 0.7034 GB, free: 7.91 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001671/0.1819, allocations: 0.7145 MB / 0.7041 GB, free: 7.148 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.1819, allocations: 0 / 0.7041 GB, free: 7.148 MB / 0.4981 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.003361/0.1853, allocations: 1.038 MB / 0.7051 GB, free: 6.102 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.1853, allocations: 7.938 kB / 0.7051 GB, free: 6.094 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.824e-06/0.1853, allocations: 4.344 kB / 0.7051 GB, free: 6.09 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007131/0.186, allocations: 140.7 kB / 0.7052 GB, free: 5.949 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007506/0.1868, allocations: 155.8 kB / 0.7054 GB, free: 5.797 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00449/0.1913, allocations: 1.999 MB / 0.7073 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006669/0.192, allocations: 99.45 kB / 0.7074 GB, free: 3.566 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.891e-05/0.192, allocations: 31.97 kB / 0.7075 GB, free: 3.535 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.0002511/0.1923, allocations: 211 kB / 0.7077 GB, free: 3.32 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.847e-05/0.1924, allocations: 51.34 kB / 0.7077 GB, free: 3.27 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003119/0.1955, allocations: 1.044 MB / 0.7087 GB, free: 2.207 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.289e-06/0.1955, allocations: 8 kB / 0.7088 GB, free: 2.199 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.1955, allocations: 7.938 kB / 0.7088 GB, free: 2.191 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.1955, allocations: 3.984 kB / 0.7088 GB, free: 2.188 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003597/0.1991, allocations: 1.747 MB / 0.7105 GB, free: 388 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.1992, allocations: 0 / 0.7105 GB, free: 388 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006763/0.1998, allocations: 143.8 kB / 0.7106 GB, free: 244 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000659/0.2005, allocations: 128.7 kB / 0.7107 GB, free: 112 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.054e-05/0.2006, allocations: 19.98 kB / 0.7107 GB, free: 92 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002987/0.2036, allocations: 1.766 MB / 0.7125 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.2036, allocations: 3.938 kB / 0.7125 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002754/0.2063, allocations: 1.007 MB / 0.7135 GB, free: 13.15 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002277/0.2066, allocations: 212.1 kB / 0.7137 GB, free: 12.92 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.458e-05/0.2067, allocations: 12 kB / 0.7137 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005901/0.2073, allocations: 59.92 kB / 0.7137 GB, free: 12.85 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.2074, allocations: 48.5 kB / 0.7138 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.045e-05/0.2074, allocations: 23.98 kB / 0.7138 GB, free: 12.78 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002752/0.2077, allocations: 287.1 kB / 0.7141 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.8e-07/0.2077, allocations: 0 / 0.7141 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0006493/0.2084, allocations: 236.9 kB / 0.7143 GB, free: 12.27 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.004028/0.2124, allocations: 1.964 MB / 0.7162 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001925/0.2144, allocations: 0.8618 MB / 0.7171 GB, free: 9.555 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.2144, allocations: 0 / 0.7171 GB, free: 9.555 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001006/0.2154, allocations: 0.5134 MB / 0.7176 GB, free: 9.027 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004601/0.2159, allocations: 69.88 kB / 0.7176 GB, free: 8.957 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01197/0.2278, allocations: 6.063 MB / 0.7235 GB, free: 2.727 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004276/0.2283, allocations: 0.8811 MB / 0.7244 GB, free: 1.812 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0006708/0.229, allocations: 144.5 kB / 0.7245 GB, free: 1.672 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003865/0.2293, allocations: 219.3 kB / 0.7248 GB, free: 1.457 MB / 0.5137 GB Notification: Performance of SimCode: time 4e-07/0.2294, allocations: 0 / 0.7248 GB, free: 1.457 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.279/4.508, allocations: 15.32 MB / 0.7397 GB, free: 2.422 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002947/4.508, allocations: 304.9 kB / 0.74 GB, free: 2.035 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.922/6.431, allocations: 0 / 0.74 GB, free: 2.035 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 & /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)