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.001267/0.001267, allocations: 108 kB / 15.61 MB, free: 152 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.001277/0.001277, allocations: 195.4 kB / 16.53 MB, free: 6.664 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.384/1.384, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002365/0.002365, allocations: 283 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 1.083/1.083, allocations: 178.6 MB / 0.5073 GB, free: 4.574 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002607/0.002607, allocations: 92.36 kB / 0.6065 GB, free: 24.8 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1699/0.1725, allocations: 89.14 MB / 0.6936 GB, free: 4.242 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP): time 0.005553/0.1781, allocations: 3.731 MB / 0.6972 GB, free: 0.5 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.005073/0.1832, allocations: 3.437 MB / 0.7006 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002857/0.1835, allocations: 11.88 kB / 0.7006 GB, free: 13.04 MB / 0.4981 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.0005079/0.184, allocations: 131 kB / 0.7007 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001106/0.1852, allocations: 449.5 kB / 0.7012 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008035/0.186, allocations: 361 kB / 0.7015 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0007711/0.1868, allocations: 0.7527 MB / 0.7022 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003102/0.1871, allocations: 193.9 kB / 0.7024 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004199/0.1875, allocations: 302.9 kB / 0.7027 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004991/0.188, allocations: 328.9 kB / 0.703 GB, free: 10.56 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001067/0.1881, allocations: 68 kB / 0.7031 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008669/0.189, allocations: 0.4917 MB / 0.7036 GB, free: 10 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002503/0.1893, allocations: 175.4 kB / 0.7037 GB, free: 9.828 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003125/0.1896, allocations: 322.3 kB / 0.704 GB, free: 9.512 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001228/0.1908, allocations: 1.067 MB / 0.7051 GB, free: 8.441 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1908, allocations: 0 / 0.7051 GB, free: 8.441 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.773e-06/0.1908, allocations: 0 / 0.7051 GB, free: 8.441 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.155e-06/0.1909, allocations: 4 kB / 0.7051 GB, free: 8.438 MB / 0.4981 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.002125/0.193, allocations: 0.9914 MB / 0.7061 GB, free: 7.395 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.193, allocations: 8.031 kB / 0.7061 GB, free: 7.387 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001203/0.1932, allocations: 90.7 kB / 0.7061 GB, free: 7.289 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003508/0.1967, allocations: 0.6166 MB / 0.7067 GB, free: 6.672 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001376/0.1981, allocations: 0.6196 MB / 0.7074 GB, free: 6.016 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001555/0.1982, allocations: 134.3 kB / 0.7075 GB, free: 5.863 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.837e-05/0.1983, allocations: 44 kB / 0.7075 GB, free: 5.82 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001536/0.1999, allocations: 0.6909 MB / 0.7082 GB, free: 5.109 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.1999, allocations: 0 / 0.7082 GB, free: 5.109 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.671e-05/0.2, allocations: 20 kB / 0.7082 GB, free: 5.09 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.2, allocations: 8 kB / 0.7082 GB, free: 5.082 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002064/0.2021, allocations: 0.765 MB / 0.709 GB, free: 4.316 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003541/0.2056, allocations: 1.814 MB / 0.7107 GB, free: 2.445 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002853/0.2085, allocations: 0.8491 MB / 0.7116 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001012/0.2095, allocations: 365.9 kB / 0.7119 GB, free: 1.23 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002069/0.2116, allocations: 1.777 MB / 0.7137 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001089/0.2127, allocations: 450.6 kB / 0.7141 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=55): time 2.705e-06/0.2127, allocations: 0 / 0.7141 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of matching and sorting (n=55): time 0.006737/0.2194, allocations: 1.605 MB / 0.7157 GB, free: 12.99 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.126e-05/0.2195, allocations: 119.3 kB / 0.7158 GB, free: 12.85 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000541/0.2201, allocations: 413.9 kB / 0.7162 GB, free: 12.44 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 6.64e-05/0.2202, allocations: 29.7 kB / 0.7162 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002327/0.2204, allocations: 272.8 kB / 0.7165 GB, free: 12.13 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001829/0.2206, allocations: 189.3 kB / 0.7166 GB, free: 11.95 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000232/0.2208, allocations: 126.2 kB / 0.7168 GB, free: 11.82 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001792/0.221, allocations: 362.8 kB / 0.7171 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008976/0.2219, allocations: 309 kB / 0.7174 GB, free: 11.15 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001013/0.223, allocations: 441.5 kB / 0.7178 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001856/0.2248, allocations: 0.7145 MB / 0.7185 GB, free: 9.902 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.2248, allocations: 0 / 0.7185 GB, free: 9.902 MB / 0.5137 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.003683/0.2285, allocations: 1.045 MB / 0.7195 GB, free: 8.848 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.102e-05/0.2286, allocations: 11.94 kB / 0.7195 GB, free: 8.836 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.397e-06/0.2286, allocations: 4 kB / 0.7195 GB, free: 8.832 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007465/0.2293, allocations: 141 kB / 0.7197 GB, free: 8.691 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007806/0.2301, allocations: 151.8 kB / 0.7198 GB, free: 8.543 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005033/0.2352, allocations: 2.126 MB / 0.7219 GB, free: 6.27 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007624/0.2359, allocations: 99.5 kB / 0.722 GB, free: 6.172 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.204e-05/0.236, allocations: 31.97 kB / 0.722 GB, free: 6.141 MB / 0.5137 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.0003351/0.2363, allocations: 210.3 kB / 0.7222 GB, free: 5.926 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001156/0.2365, allocations: 51.34 kB / 0.7223 GB, free: 5.875 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003455/0.2399, allocations: 1.052 MB / 0.7233 GB, free: 4.812 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.568e-05/0.24, allocations: 8 kB / 0.7233 GB, free: 4.805 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.24, allocations: 7.875 kB / 0.7233 GB, free: 4.797 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.24, allocations: 0 / 0.7233 GB, free: 4.797 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004052/0.244, allocations: 1.758 MB / 0.725 GB, free: 2.977 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.2441, allocations: 0 / 0.725 GB, free: 2.977 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007293/0.2448, allocations: 139.8 kB / 0.7252 GB, free: 2.84 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006176/0.2454, allocations: 116.7 kB / 0.7253 GB, free: 2.723 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.292e-05/0.2455, allocations: 15.98 kB / 0.7253 GB, free: 2.707 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003476/0.249, allocations: 1.912 MB / 0.7272 GB, free: 0.6406 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.249, allocations: 0 / 0.7272 GB, free: 0.6406 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003035/0.252, allocations: 1.011 MB / 0.7282 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002795/0.2523, allocations: 212.1 kB / 0.7284 GB, free: 15.38 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.761e-05/0.2524, allocations: 12 kB / 0.7284 GB, free: 15.37 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006208/0.253, allocations: 59.94 kB / 0.7284 GB, free: 15.31 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/0.2532, allocations: 48.48 kB / 0.7285 GB, free: 15.27 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.776e-05/0.2532, allocations: 23.92 kB / 0.7285 GB, free: 15.24 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003452/0.2536, allocations: 287.1 kB / 0.7288 GB, free: 14.96 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2536, allocations: 0 / 0.7288 GB, free: 14.96 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0007335/0.2543, allocations: 235.7 kB / 0.729 GB, free: 14.73 MB / 0.5294 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.004785/0.2591, allocations: 1.951 MB / 0.7309 GB, free: 12.9 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00253/0.2617, allocations: 0.9163 MB / 0.7318 GB, free: 11.97 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.2617, allocations: 4 kB / 0.7318 GB, free: 11.97 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001099/0.2628, allocations: 0.5251 MB / 0.7323 GB, free: 11.43 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005142/0.2633, allocations: 67.17 kB / 0.7324 GB, free: 11.37 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01273/0.2761, allocations: 5.834 MB / 0.7381 GB, free: 5.359 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005071/0.2766, allocations: 0.8851 MB / 0.7389 GB, free: 4.449 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.000737/0.2773, allocations: 148.5 kB / 0.7391 GB, free: 4.305 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000387/0.2777, allocations: 215.3 kB / 0.7393 GB, free: 4.094 MB / 0.5294 GB Notification: Performance of SimCode: time 6.92e-07/0.2777, allocations: 0 / 0.7393 GB, free: 4.094 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04818/0.3259, allocations: 15.8 MB / 0.7547 GB, free: 4.531 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.55, allocations: 11.94 kB / 0.7547 GB, free: 4.52 MB / 0.545 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)