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.001065/0.001065, 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.001113/0.001113, allocations: 194 kB / 16.53 MB, free: 6.391 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.251/1.251, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001988/0.001988, allocations: 282.8 kB / 290.7 MB, free: 1.996 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8895/0.8895, allocations: 169.3 MB / 0.4982 GB, free: 13.93 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001836/0.001836, allocations: 104.5 kB / 0.5953 GB, free: 27.82 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1417/0.1436, allocations: 86.98 MB / 0.6803 GB, free: 0.5664 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP): time 0.004857/0.1485, allocations: 3.719 MB / 0.6839 GB, free: 12.84 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004575/0.1531, allocations: 3.435 MB / 0.6873 GB, free: 9.395 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003464/0.1535, allocations: 11.94 kB / 0.6873 GB, free: 9.383 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.0004713/0.154, allocations: 115 kB / 0.6874 GB, free: 9.27 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001179/0.1552, allocations: 457.4 kB / 0.6878 GB, free: 8.82 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007818/0.156, allocations: 361.9 kB / 0.6882 GB, free: 8.469 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007765/0.1567, allocations: 0.7525 MB / 0.6889 GB, free: 7.715 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002905/0.157, allocations: 186.6 kB / 0.6891 GB, free: 7.527 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003948/0.1574, allocations: 310.9 kB / 0.6894 GB, free: 7.223 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004724/0.1579, allocations: 326.5 kB / 0.6897 GB, free: 6.902 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001153/0.1581, allocations: 64 kB / 0.6898 GB, free: 6.84 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008264/0.1589, allocations: 0.4917 MB / 0.6902 GB, free: 6.348 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000162/0.1591, allocations: 175.4 kB / 0.6904 GB, free: 6.176 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002618/0.1593, allocations: 330.3 kB / 0.6907 GB, free: 5.852 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001062/0.1604, allocations: 1.063 MB / 0.6918 GB, free: 4.785 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1604, allocations: 4 kB / 0.6918 GB, free: 4.781 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.1604, allocations: 0 / 0.6918 GB, free: 4.781 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.957e-06/0.1604, allocations: 4 kB / 0.6918 GB, free: 4.777 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.001735/0.1622, allocations: 0.9875 MB / 0.6927 GB, free: 3.738 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.1622, allocations: 12.03 kB / 0.6927 GB, free: 3.727 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.781e-05/0.1623, allocations: 86.7 kB / 0.6928 GB, free: 3.633 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00351/0.1658, allocations: 0.6245 MB / 0.6934 GB, free: 3.008 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001346/0.1672, allocations: 0.6235 MB / 0.694 GB, free: 2.348 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001222/0.1673, allocations: 122.4 kB / 0.6942 GB, free: 2.211 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.056e-05/0.1674, allocations: 44 kB / 0.6942 GB, free: 2.168 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001513/0.169, allocations: 0.6948 MB / 0.6949 GB, free: 1.457 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.169, allocations: 0 / 0.6949 GB, free: 1.457 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.622e-05/0.1691, allocations: 20 kB / 0.6949 GB, free: 1.438 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.207e-05/0.1691, allocations: 12 kB / 0.6949 GB, free: 1.426 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002004/0.1711, allocations: 0.7611 MB / 0.6957 GB, free: 0.6602 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003295/0.1744, allocations: 1.814 MB / 0.6974 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002813/0.1772, allocations: 0.8487 MB / 0.6983 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009365/0.1782, allocations: 365.9 kB / 0.6986 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001703/0.1799, allocations: 1.769 MB / 0.7003 GB, free: 11.42 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001086/0.181, allocations: 442.7 kB / 0.7008 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=55): time 5.47e-06/0.181, allocations: 0 / 0.7008 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of matching and sorting (n=55): time 0.006712/0.1877, allocations: 1.616 MB / 0.7023 GB, free: 9.332 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.459e-05/0.1878, allocations: 115.3 kB / 0.7024 GB, free: 9.195 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005416/0.1884, allocations: 410 kB / 0.7028 GB, free: 8.789 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.709e-05/0.1884, allocations: 37.7 kB / 0.7029 GB, free: 8.746 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001912/0.1886, allocations: 280.5 kB / 0.7031 GB, free: 8.465 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001481/0.1888, allocations: 185.4 kB / 0.7033 GB, free: 8.281 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002071/0.189, allocations: 118.3 kB / 0.7034 GB, free: 8.16 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001186/0.1891, allocations: 362.7 kB / 0.7038 GB, free: 7.797 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000898/0.19, allocations: 309.1 kB / 0.7041 GB, free: 7.492 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000982/0.191, allocations: 445.4 kB / 0.7045 GB, free: 7.008 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001828/0.1928, allocations: 0.7145 MB / 0.7052 GB, free: 6.25 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.1929, allocations: 3.938 kB / 0.7052 GB, free: 6.246 MB / 0.4981 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.003745/0.1966, allocations: 1.049 MB / 0.7062 GB, free: 5.184 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/0.1967, allocations: 9.812 kB / 0.7062 GB, free: 5.176 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.1967, allocations: 4 kB / 0.7062 GB, free: 5.172 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007413/0.1974, allocations: 137.1 kB / 0.7064 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007826/0.1982, allocations: 159.7 kB / 0.7065 GB, free: 4.879 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00483/0.2031, allocations: 2.125 MB / 0.7086 GB, free: 2.613 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008082/0.2039, allocations: 101.4 kB / 0.7087 GB, free: 2.516 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001076/0.204, allocations: 31.92 kB / 0.7087 GB, free: 2.484 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.0003714/0.2044, allocations: 213.4 kB / 0.7089 GB, free: 2.27 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001664/0.2046, allocations: 51.34 kB / 0.709 GB, free: 2.219 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003475/0.208, allocations: 1.052 MB / 0.71 GB, free: 1.152 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.2081, allocations: 4 kB / 0.71 GB, free: 1.148 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-06/0.2081, allocations: 4 kB / 0.71 GB, free: 1.145 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.789e-06/0.2081, allocations: 3.984 kB / 0.71 GB, free: 1.141 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004125/0.2122, allocations: 1.747 MB / 0.7117 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.2122, allocations: 0 / 0.7117 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007496/0.213, allocations: 143.8 kB / 0.7118 GB, free: 15.19 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006328/0.2136, allocations: 116.7 kB / 0.712 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.051e-05/0.2137, allocations: 19.98 kB / 0.712 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003429/0.2171, allocations: 1.916 MB / 0.7138 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.2172, allocations: 0 / 0.7138 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003086/0.2203, allocations: 1.007 MB / 0.7148 GB, free: 11.96 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002766/0.2205, allocations: 212.2 kB / 0.715 GB, free: 11.73 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.872e-05/0.2207, allocations: 12 kB / 0.715 GB, free: 11.72 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006312/0.2213, allocations: 55.94 kB / 0.7151 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.2214, allocations: 48.44 kB / 0.7151 GB, free: 11.62 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.009e-05/0.2215, allocations: 31.91 kB / 0.7152 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003227/0.2218, allocations: 287.1 kB / 0.7154 GB, free: 11.31 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.4e-07/0.2218, allocations: 0 / 0.7154 GB, free: 11.31 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0007325/0.2225, allocations: 231.7 kB / 0.7157 GB, free: 11.08 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.004223/0.2268, allocations: 1.957 MB / 0.7176 GB, free: 9.246 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002449/0.2292, allocations: 0.9163 MB / 0.7185 GB, free: 8.316 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.2293, allocations: 0 / 0.7185 GB, free: 8.316 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001049/0.2303, allocations: 0.5135 MB / 0.719 GB, free: 7.789 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004686/0.2308, allocations: 67.5 kB / 0.719 GB, free: 7.723 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01233/0.2431, allocations: 5.85 MB / 0.7248 GB, free: 1.695 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004763/0.2436, allocations: 0.8812 MB / 0.7256 GB, free: 0.7852 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0007215/0.2444, allocations: 144.5 kB / 0.7258 GB, free: 0.6445 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003766/0.2448, allocations: 215.3 kB / 0.726 GB, free: 444 kB / 0.5137 GB Notification: Performance of SimCode: time 5.61e-07/0.2448, allocations: 0 / 0.726 GB, free: 444 kB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06277/0.3075, allocations: 15.78 MB / 0.7414 GB, free: 0.9023 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.76/12.07, allocations: 18.58 kB / 0.7414 GB, free: 0.8906 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)