Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.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.PVModuleComplexMPP,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplexMPP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplexMPP",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.001558/0.001558, 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.001572/0.001572, allocations: 191.9 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.364/1.364, allocations: 222.9 MB / 240.2 MB, free: 4.227 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002368/0.002368, allocations: 290.1 kB / 290.7 MB, free: 1.836 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.044/1.044, allocations: 178.6 MB / 0.5073 GB, free: 4.566 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002728/0.002728, allocations: 97.64 kB / 0.6065 GB, free: 24.55 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1748/0.1776, allocations: 89.14 MB / 0.6936 GB, free: 4.238 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP): time 0.005465/0.1831, allocations: 3.703 MB / 0.6972 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.005164/0.1883, allocations: 3.464 MB / 0.7006 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002703/0.1886, allocations: 11.94 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.0005346/0.1891, allocations: 122.9 kB / 0.7007 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001043/0.1901, allocations: 453.4 kB / 0.7011 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008558/0.191, allocations: 398.4 kB / 0.7015 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0008114/0.1918, allocations: 0.8033 MB / 0.7023 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003121/0.1922, allocations: 197.9 kB / 0.7025 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003995/0.1926, allocations: 330.9 kB / 0.7028 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005339/0.1931, allocations: 349.1 kB / 0.7031 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001111/0.1932, allocations: 72 kB / 0.7032 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000815/0.1941, allocations: 0.4956 MB / 0.7037 GB, free: 9.859 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001915/0.1943, allocations: 179.4 kB / 0.7039 GB, free: 9.684 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003178/0.1946, allocations: 326.4 kB / 0.7042 GB, free: 9.363 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001287/0.1959, allocations: 1.102 MB / 0.7053 GB, free: 8.258 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.1959, allocations: 8 kB / 0.7053 GB, free: 8.25 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.653e-06/0.1959, allocations: 0 / 0.7053 GB, free: 8.25 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.414e-05/0.1959, allocations: 0 / 0.7053 GB, free: 8.25 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.002227/0.1981, allocations: 1.019 MB / 0.7063 GB, free: 7.18 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.1982, allocations: 12.03 kB / 0.7063 GB, free: 7.168 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001111/0.1983, allocations: 90.7 kB / 0.7064 GB, free: 7.07 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003137/0.2015, allocations: 0.5581 MB / 0.7069 GB, free: 6.512 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0014/0.2029, allocations: 0.6274 MB / 0.7075 GB, free: 5.848 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001571/0.203, allocations: 126 kB / 0.7076 GB, free: 5.703 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.215e-05/0.2031, allocations: 44 kB / 0.7077 GB, free: 5.66 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001464/0.2046, allocations: 0.683 MB / 0.7083 GB, free: 4.957 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.57e-05/0.2046, allocations: 0 / 0.7083 GB, free: 4.957 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.123e-05/0.2047, allocations: 16 kB / 0.7084 GB, free: 4.941 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.261e-05/0.2047, allocations: 16 kB / 0.7084 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001749/0.2065, allocations: 0.7104 MB / 0.7091 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003351/0.2099, allocations: 1.871 MB / 0.7109 GB, free: 2.289 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002632/0.2125, allocations: 0.8364 MB / 0.7117 GB, free: 1.445 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008375/0.2134, allocations: 346.3 kB / 0.712 GB, free: 1.105 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001867/0.2152, allocations: 1.765 MB / 0.7138 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009321/0.2162, allocations: 430.8 kB / 0.7142 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=56): time 2.124e-06/0.2162, allocations: 0 / 0.7142 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of matching and sorting (n=56): time 0.006642/0.2228, allocations: 1.507 MB / 0.7157 GB, free: 12.99 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.086e-05/0.2229, allocations: 115.4 kB / 0.7158 GB, free: 12.85 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004762/0.2234, allocations: 405.9 kB / 0.7161 GB, free: 12.45 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 5.967e-05/0.2235, allocations: 37.7 kB / 0.7162 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002101/0.2237, allocations: 268.6 kB / 0.7164 GB, free: 12.14 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001796/0.2239, allocations: 185.3 kB / 0.7166 GB, free: 11.95 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002121/0.2241, allocations: 122.2 kB / 0.7167 GB, free: 11.83 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001537/0.2243, allocations: 358.8 kB / 0.7171 GB, free: 11.47 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007619/0.225, allocations: 293.1 kB / 0.7174 GB, free: 11.18 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008481/0.2259, allocations: 433.4 kB / 0.7178 GB, free: 10.71 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001601/0.2275, allocations: 0.695 MB / 0.7184 GB, free: 9.969 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.2275, allocations: 0 / 0.7184 GB, free: 9.969 MB / 0.5137 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004232/0.2318, allocations: 1.08 MB / 0.7195 GB, free: 8.875 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/0.2318, allocations: 8.344 kB / 0.7195 GB, free: 8.867 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.2318, allocations: 8 kB / 0.7195 GB, free: 8.859 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003064/0.2349, allocations: 376.5 kB / 0.7199 GB, free: 8.488 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000779/0.2357, allocations: 163.7 kB / 0.72 GB, free: 8.328 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004077/0.2398, allocations: 2.172 MB / 0.7222 GB, free: 6.004 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007287/0.2405, allocations: 83.52 kB / 0.7222 GB, free: 5.922 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.845e-05/0.2406, allocations: 31.97 kB / 0.7223 GB, free: 5.891 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 {3} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003652/0.2409, allocations: 213.6 kB / 0.7225 GB, free: 5.672 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001251/0.2411, allocations: 55.47 kB / 0.7225 GB, free: 5.617 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003256/0.2443, allocations: 1.062 MB / 0.7236 GB, free: 4.547 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.29e-05/0.2444, allocations: 11.94 kB / 0.7236 GB, free: 4.535 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-06/0.2444, allocations: 0 / 0.7236 GB, free: 4.535 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.927e-06/0.2444, allocations: 3.984 kB / 0.7236 GB, free: 4.531 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003926/0.2483, allocations: 1.768 MB / 0.7253 GB, free: 2.699 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.2483, allocations: 4 kB / 0.7253 GB, free: 2.695 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007327/0.2491, allocations: 147.8 kB / 0.7254 GB, free: 2.551 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008867/0.25, allocations: 144.7 kB / 0.7256 GB, free: 2.406 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.016e-05/0.25, allocations: 15.98 kB / 0.7256 GB, free: 2.391 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002704/0.2527, allocations: 1.931 MB / 0.7275 GB, free: 324 kB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2528, allocations: 0 / 0.7275 GB, free: 324 kB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002964/0.2557, allocations: 1.018 MB / 0.7285 GB, free: 15.28 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003926/0.2561, allocations: 208.2 kB / 0.7287 GB, free: 15.06 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.877e-05/0.2562, allocations: 12 kB / 0.7287 GB, free: 15.05 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006/0.2568, allocations: 62.28 kB / 0.7287 GB, free: 14.99 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001454/0.257, allocations: 48.59 kB / 0.7288 GB, free: 14.94 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.64e-05/0.2571, allocations: 20.17 kB / 0.7288 GB, free: 14.92 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003844/0.2574, allocations: 283.1 kB / 0.7291 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2575, allocations: 0 / 0.7291 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0008853/0.2583, allocations: 243.6 kB / 0.7293 GB, free: 14.4 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 (67): * Single equations (assignments): 65 * 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 {(3,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004825/0.2632, allocations: 1.959 MB / 0.7312 GB, free: 12.56 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00281/0.266, allocations: 0.9457 MB / 0.7322 GB, free: 11.6 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/0.266, allocations: 4 kB / 0.7322 GB, free: 11.59 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001194/0.2672, allocations: 0.5336 MB / 0.7327 GB, free: 11.05 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005255/0.2678, allocations: 70.27 kB / 0.7327 GB, free: 10.98 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0145/0.2823, allocations: 5.837 MB / 0.7384 GB, free: 4.977 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006875/0.283, allocations: 0.8812 MB / 0.7393 GB, free: 4.062 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0007303/0.2837, allocations: 148.5 kB / 0.7394 GB, free: 3.918 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000396/0.2841, allocations: 215.3 kB / 0.7397 GB, free: 3.707 MB / 0.5294 GB Notification: Performance of SimCode: time 9.81e-07/0.2841, allocations: 0 / 0.7397 GB, free: 3.707 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04868/0.3328, allocations: 15.37 MB / 0.7547 GB, free: 4.582 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.7, allocations: 3.859 kB / 0.7547 GB, free: 4.578 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP_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_PVModuleComplexMPP.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.pipe 2>&1)