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.005047/0.005048, allocations: 106.2 kB / 15.73 MB, free: 5.984 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.001164/0.001164, allocations: 194.8 kB / 16.67 MB, free: 5.906 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.279/1.279, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002121/0.002121, allocations: 301.4 kB / 290.8 MB, free: 14.42 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8936/0.8936, allocations: 169.3 MB / 0.4983 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001837/0.001837, allocations: 95.83 kB / 0.6809 GB, free: 7.477 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4235/0.4253, allocations: 86.98 MB / 0.7659 GB, free: 3.836 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP): time 0.005003/0.4304, allocations: 3.697 MB / 0.7695 GB, free: 120 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.005185/0.4356, allocations: 3.466 MB / 0.7729 GB, free: 12.64 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000462/0.4361, allocations: 11.94 kB / 0.7729 GB, free: 12.62 MB / 0.545 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.0005895/0.4367, allocations: 118.9 kB / 0.773 GB, free: 12.51 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001368/0.4381, allocations: 453.5 kB / 0.7734 GB, free: 12.06 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009529/0.4391, allocations: 398.8 kB / 0.7738 GB, free: 11.68 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001027/0.4401, allocations: 0.8112 MB / 0.7746 GB, free: 10.86 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003671/0.4405, allocations: 193.9 kB / 0.7748 GB, free: 10.67 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005726/0.4411, allocations: 342.9 kB / 0.7751 GB, free: 10.34 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006387/0.4417, allocations: 338.7 kB / 0.7754 GB, free: 10 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001743/0.4419, allocations: 68 kB / 0.7755 GB, free: 9.938 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001059/0.443, allocations: 0.4956 MB / 0.776 GB, free: 9.441 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002257/0.4432, allocations: 183.4 kB / 0.7761 GB, free: 9.262 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0003861/0.4436, allocations: 330.3 kB / 0.7765 GB, free: 8.938 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001606/0.4453, allocations: 1.122 MB / 0.7776 GB, free: 7.812 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.4453, allocations: 0 / 0.7776 GB, free: 7.812 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.184e-06/0.4453, allocations: 0 / 0.7776 GB, free: 7.812 MB / 0.545 GB Notification: Performance of Transformations before backend: time 3.17e-05/0.4453, allocations: 0 / 0.7776 GB, free: 7.812 MB / 0.545 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.002569/0.4479, allocations: 1.03 MB / 0.7786 GB, free: 6.73 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.4479, allocations: 8.031 kB / 0.7786 GB, free: 6.723 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001318/0.4481, allocations: 86.7 kB / 0.7787 GB, free: 6.629 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003138/0.4512, allocations: 0.5659 MB / 0.7792 GB, free: 6.062 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001412/0.4527, allocations: 0.6274 MB / 0.7798 GB, free: 5.398 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000126/0.4528, allocations: 118 kB / 0.7799 GB, free: 5.266 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001085/0.4529, allocations: 48 kB / 0.78 GB, free: 5.219 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001404/0.4543, allocations: 0.6869 MB / 0.7806 GB, free: 4.516 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.609e-05/0.4544, allocations: 4 kB / 0.7807 GB, free: 4.512 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.054e-05/0.4544, allocations: 24 kB / 0.7807 GB, free: 4.488 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.471e-05/0.4545, allocations: 12 kB / 0.7807 GB, free: 4.477 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001638/0.4561, allocations: 0.7065 MB / 0.7814 GB, free: 3.766 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003375/0.4595, allocations: 1.859 MB / 0.7832 GB, free: 1.852 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002596/0.4621, allocations: 0.8286 MB / 0.784 GB, free: 1.012 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008148/0.4629, allocations: 350.3 kB / 0.7843 GB, free: 0.668 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001821/0.4648, allocations: 1.765 MB / 0.7861 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009739/0.4658, allocations: 430.8 kB / 0.7865 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=56): time 3.246e-06/0.4658, allocations: 0 / 0.7865 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of matching and sorting (n=56): time 0.007192/0.473, allocations: 1.507 MB / 0.7879 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.297e-05/0.4731, allocations: 111.4 kB / 0.788 GB, free: 12.41 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005162/0.4736, allocations: 409.9 kB / 0.7884 GB, free: 12 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 9.364e-05/0.4737, allocations: 33.7 kB / 0.7885 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002014/0.4739, allocations: 264.6 kB / 0.7887 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001897/0.4741, allocations: 189.3 kB / 0.7889 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002237/0.4744, allocations: 122.2 kB / 0.789 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001326/0.4745, allocations: 362.7 kB / 0.7894 GB, free: 11.03 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007967/0.4753, allocations: 289.1 kB / 0.7896 GB, free: 10.74 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008347/0.4761, allocations: 437.4 kB / 0.7901 GB, free: 10.27 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00159/0.4777, allocations: 0.6989 MB / 0.7907 GB, free: 9.523 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.572e-06/0.4778, allocations: 0 / 0.7907 GB, free: 9.523 MB / 0.5606 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004623/0.4824, allocations: 1.076 MB / 0.7918 GB, free: 8.434 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.616e-05/0.4824, allocations: 8 kB / 0.7918 GB, free: 8.426 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.4825, allocations: 352 / 0.7918 GB, free: 8.426 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003399/0.4859, allocations: 380.5 kB / 0.7922 GB, free: 8.051 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008882/0.4868, allocations: 159.7 kB / 0.7923 GB, free: 7.895 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004069/0.4909, allocations: 2.172 MB / 0.7944 GB, free: 5.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008218/0.4917, allocations: 94.27 kB / 0.7945 GB, free: 5.48 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001101/0.4919, allocations: 27.97 kB / 0.7946 GB, free: 5.453 MB / 0.5606 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.0004014/0.4923, allocations: 207.5 kB / 0.7948 GB, free: 5.246 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001662/0.4924, allocations: 59.22 kB / 0.7948 GB, free: 5.188 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003346/0.4958, allocations: 1.07 MB / 0.7959 GB, free: 4.109 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.376e-05/0.4958, allocations: 11.94 kB / 0.7959 GB, free: 4.098 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.4958, allocations: 4 kB / 0.7959 GB, free: 4.094 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.292e-05/0.4959, allocations: 7.984 kB / 0.7959 GB, free: 4.086 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004086/0.5, allocations: 1.774 MB / 0.7976 GB, free: 2.258 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.551e-06/0.5, allocations: 0 / 0.7976 GB, free: 2.258 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000792/0.5008, allocations: 143.8 kB / 0.7977 GB, free: 2.117 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000969/0.5018, allocations: 144.7 kB / 0.7979 GB, free: 1.973 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.086e-05/0.5019, allocations: 23.92 kB / 0.7979 GB, free: 1.949 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002648/0.5045, allocations: 1.919 MB / 0.7998 GB, free: 15.88 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.5045, allocations: 0 / 0.7998 GB, free: 15.88 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002906/0.5074, allocations: 1.019 MB / 0.8008 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004046/0.5079, allocations: 208.2 kB / 0.801 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001207/0.508, allocations: 16 kB / 0.801 GB, free: 14.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000673/0.5087, allocations: 55.94 kB / 0.801 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001515/0.5088, allocations: 48.58 kB / 0.8011 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.653e-05/0.5089, allocations: 23.98 kB / 0.8011 GB, free: 14.48 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004423/0.5094, allocations: 283.1 kB / 0.8014 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5094, allocations: 0 / 0.8014 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001017/0.5104, allocations: 231.7 kB / 0.8016 GB, free: 13.98 MB / 0.5762 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.004496/0.5149, allocations: 1.971 MB / 0.8035 GB, free: 12.12 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002486/0.5174, allocations: 0.8873 MB / 0.8044 GB, free: 11.22 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.5174, allocations: 0 / 0.8044 GB, free: 11.22 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001149/0.5186, allocations: 0.5336 MB / 0.8049 GB, free: 10.68 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005531/0.5192, allocations: 66.05 kB / 0.805 GB, free: 10.61 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01406/0.5332, allocations: 5.77 MB / 0.8106 GB, free: 4.664 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004454/0.5337, allocations: 0.8812 MB / 0.8115 GB, free: 3.758 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000638/0.5344, allocations: 152.4 kB / 0.8116 GB, free: 3.605 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004196/0.5348, allocations: 223.3 kB / 0.8118 GB, free: 3.387 MB / 0.5762 GB Notification: Performance of SimCode: time 1.203e-06/0.5348, allocations: 0 / 0.8118 GB, free: 3.387 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0419/0.5767, allocations: 15.89 MB / 0.8273 GB, free: 3.73 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.85, allocations: 9.531 kB / 0.8274 GB, free: 3.727 MB / 0.5919 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplexMPP_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplexMPP.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.pipe 2>&1)