Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.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.PVModuleComplex,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplex",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.001319/0.001319, 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.001222/0.001222, allocations: 193.8 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.36/1.36, allocations: 222.9 MB / 240.2 MB, free: 4.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002376/0.002376, allocations: 294.7 kB / 290.7 MB, free: 1.957 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.028/1.028, allocations: 178.6 MB / 0.5073 GB, free: 4.535 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002643/0.002643, allocations: 100.3 kB / 0.6065 GB, free: 24.85 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1673/0.1699, allocations: 89.15 MB / 0.6936 GB, free: 4.203 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex): time 0.00536/0.1753, allocations: 3.702 MB / 0.6972 GB, free: 500 kB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.005623/0.181, allocations: 3.44 MB / 0.7006 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004447/0.1815, allocations: 7.938 kB / 0.7006 GB, free: 13.03 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.0005654/0.1821, allocations: 133.3 kB / 0.7007 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001164/0.1833, allocations: 453.5 kB / 0.7011 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008399/0.1841, allocations: 372 kB / 0.7015 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0008494/0.185, allocations: 0.7565 MB / 0.7022 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003609/0.1853, allocations: 193.9 kB / 0.7024 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004244/0.1858, allocations: 302.9 kB / 0.7027 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005156/0.1863, allocations: 326.6 kB / 0.703 GB, free: 10.53 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001044/0.1864, allocations: 64 kB / 0.7031 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009017/0.1873, allocations: 0.5034 MB / 0.7036 GB, free: 9.965 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001931/0.1875, allocations: 167.4 kB / 0.7037 GB, free: 9.801 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003169/0.1879, allocations: 322.4 kB / 0.704 GB, free: 9.484 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001258/0.1891, allocations: 1.067 MB / 0.7051 GB, free: 8.414 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.1891, allocations: 4 kB / 0.7051 GB, free: 8.41 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.142e-06/0.1891, allocations: 0 / 0.7051 GB, free: 8.41 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.362e-05/0.1892, allocations: 0 / 0.7051 GB, free: 8.41 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.002072/0.1912, allocations: 0.9953 MB / 0.7061 GB, free: 7.363 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.1913, allocations: 12.03 kB / 0.7061 GB, free: 7.352 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001141/0.1914, allocations: 90.7 kB / 0.7061 GB, free: 7.254 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003177/0.1946, allocations: 0.562 MB / 0.7067 GB, free: 6.691 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001359/0.196, allocations: 0.6274 MB / 0.7073 GB, free: 6.027 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001332/0.1961, allocations: 118.4 kB / 0.7074 GB, free: 5.891 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.756e-05/0.1962, allocations: 48 kB / 0.7075 GB, free: 5.844 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001386/0.1976, allocations: 0.6635 MB / 0.7081 GB, free: 5.16 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/0.1976, allocations: 0 / 0.7081 GB, free: 5.16 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.073e-05/0.1977, allocations: 19.98 kB / 0.7081 GB, free: 5.141 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.303e-05/0.1977, allocations: 12 kB / 0.7081 GB, free: 5.129 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001698/0.1994, allocations: 0.6987 MB / 0.7088 GB, free: 4.43 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003356/0.2028, allocations: 1.777 MB / 0.7106 GB, free: 2.598 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002679/0.2055, allocations: 0.8011 MB / 0.7113 GB, free: 1.785 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008211/0.2063, allocations: 326 kB / 0.7117 GB, free: 1.465 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001928/0.2083, allocations: 1.773 MB / 0.7134 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000912/0.2092, allocations: 397.1 kB / 0.7138 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=53): time 2.605e-06/0.2092, allocations: 0 / 0.7138 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of matching and sorting (n=53): time 0.002529/0.2117, allocations: 0.9238 MB / 0.7147 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.051e-05/0.2118, allocations: 115.2 kB / 0.7148 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005419/0.2124, allocations: 415.2 kB / 0.7152 GB, free: 13.44 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 6.161e-05/0.2124, allocations: 37.7 kB / 0.7152 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002318/0.2127, allocations: 284.5 kB / 0.7155 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001727/0.2129, allocations: 181.4 kB / 0.7157 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002145/0.2131, allocations: 118.1 kB / 0.7158 GB, free: 12.81 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001749/0.2133, allocations: 358.8 kB / 0.7161 GB, free: 12.45 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007458/0.214, allocations: 272.9 kB / 0.7164 GB, free: 12.18 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008376/0.2149, allocations: 408.6 kB / 0.7168 GB, free: 11.73 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00157/0.2164, allocations: 0.6554 MB / 0.7174 GB, free: 11.03 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/0.2165, allocations: 4 kB / 0.7174 GB, free: 11.03 MB / 0.5137 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001876/0.2183, allocations: 0.7599 MB / 0.7181 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.21e-05/0.2184, allocations: 5.719 kB / 0.7182 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.2184, allocations: 7.984 kB / 0.7182 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.482e-05/0.2184, allocations: 12.22 kB / 0.7182 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001528/0.2199, allocations: 239.7 kB / 0.7184 GB, free: 10 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00178/0.2217, allocations: 1.582 MB / 0.7199 GB, free: 8.273 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006894/0.2224, allocations: 91.53 kB / 0.72 GB, free: 8.184 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.359e-05/0.2225, allocations: 35.91 kB / 0.7201 GB, free: 8.148 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): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003451/0.2229, allocations: 214.7 kB / 0.7203 GB, free: 7.93 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001129/0.223, allocations: 51.34 kB / 0.7203 GB, free: 7.879 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002611/0.2256, allocations: 0.923 MB / 0.7212 GB, free: 6.949 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.2256, allocations: 8 kB / 0.7212 GB, free: 6.941 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.2256, allocations: 4 kB / 0.7212 GB, free: 6.938 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.176e-05/0.2257, allocations: 7.922 kB / 0.7212 GB, free: 6.93 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003178/0.2288, allocations: 1.606 MB / 0.7228 GB, free: 5.262 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.2289, allocations: 4 kB / 0.7228 GB, free: 5.258 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000726/0.2296, allocations: 143.8 kB / 0.723 GB, free: 5.117 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004358/0.23, allocations: 64.8 kB / 0.723 GB, free: 5.051 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.965e-05/0.2301, allocations: 19.98 kB / 0.723 GB, free: 5.031 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00172/0.2318, allocations: 1.576 MB / 0.7246 GB, free: 3.301 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.2318, allocations: 3.938 kB / 0.7246 GB, free: 3.297 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00222/0.2341, allocations: 0.9019 MB / 0.7255 GB, free: 2.375 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002763/0.2343, allocations: 204.2 kB / 0.7256 GB, free: 2.156 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.598e-05/0.2344, allocations: 16 kB / 0.7257 GB, free: 2.141 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005672/0.235, allocations: 51.94 kB / 0.7257 GB, free: 2.09 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.2351, allocations: 44.44 kB / 0.7258 GB, free: 2.047 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.743e-05/0.2352, allocations: 23.98 kB / 0.7258 GB, free: 2.023 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003544/0.2356, allocations: 299.1 kB / 0.7261 GB, free: 1.734 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2356, allocations: 3.938 kB / 0.7261 GB, free: 1.73 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0007646/0.2363, allocations: 235.6 kB / 0.7263 GB, free: 1.5 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,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004123/0.2405, allocations: 1.828 MB / 0.7281 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002853/0.2433, allocations: 0.8119 MB / 0.7289 GB, free: 14.98 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.676e-06/0.2433, allocations: 0 / 0.7289 GB, free: 14.98 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001062/0.2444, allocations: 0.5019 MB / 0.7294 GB, free: 14.47 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005206/0.2449, allocations: 68.58 kB / 0.7294 GB, free: 14.41 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008916/0.2539, allocations: 5.205 MB / 0.7345 GB, free: 9.027 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005627/0.2545, allocations: 0.8811 MB / 0.7354 GB, free: 8.113 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0007301/0.2552, allocations: 148.5 kB / 0.7355 GB, free: 7.969 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004018/0.2556, allocations: 215.3 kB / 0.7357 GB, free: 7.758 MB / 0.5294 GB Notification: Performance of SimCode: time 6.92e-07/0.2556, allocations: 0 / 0.7357 GB, free: 7.758 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04392/0.2996, allocations: 14.1 MB / 0.7495 GB, free: 9.895 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.68, allocations: 13.89 kB / 0.7495 GB, free: 9.887 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex_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_PVModuleComplex.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe 2>&1)