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.007161/0.007161, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.00178/0.00178, allocations: 195.2 kB / 16.67 MB, free: 5.977 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.401/1.401, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002622/0.002622, allocations: 278.7 kB / 290.8 MB, free: 1.902 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.026/1.026, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002903/0.002903, allocations: 97.11 kB / 0.6809 GB, free: 44 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.163/0.1659, allocations: 86.98 MB / 0.7659 GB, free: 8.988 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP): time 0.005766/0.1717, allocations: 3.68 MB / 0.7695 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.005739/0.1775, allocations: 3.469 MB / 0.7729 GB, free: 1.805 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003843/0.1779, allocations: 11.94 kB / 0.7729 GB, free: 1.793 MB / 0.5606 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.0005894/0.1785, allocations: 123 kB / 0.773 GB, free: 1.672 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001306/0.1798, allocations: 453.5 kB / 0.7734 GB, free: 1.227 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009186/0.1808, allocations: 395.1 kB / 0.7738 GB, free: 0.8398 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001032/0.1818, allocations: 0.8073 MB / 0.7746 GB, free: 32 kB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.302/0.4838, allocations: 198 kB / 0.7748 GB, free: 8.352 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006445/0.4845, allocations: 326.6 kB / 0.7751 GB, free: 8.344 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005509/0.4851, allocations: 344.9 kB / 0.7754 GB, free: 8.281 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001186/0.4852, allocations: 69.41 kB / 0.7755 GB, free: 8.281 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001023/0.4862, allocations: 0.4989 MB / 0.776 GB, free: 8.281 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001752/0.4864, allocations: 179.8 kB / 0.7761 GB, free: 8.258 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002894/0.4867, allocations: 330 kB / 0.7765 GB, free: 8.164 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001484/0.4882, allocations: 1.125 MB / 0.7776 GB, free: 8.02 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.4882, allocations: 0.6562 kB / 0.7776 GB, free: 8.02 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.272e-06/0.4882, allocations: 2.719 kB / 0.7776 GB, free: 8.02 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.124e-05/0.4883, allocations: 0 / 0.7776 GB, free: 8.02 MB / 0.5606 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.002259/0.4905, allocations: 1.052 MB / 0.7786 GB, free: 7.367 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.4906, allocations: 11.34 kB / 0.7786 GB, free: 7.367 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001018/0.4907, allocations: 90.34 kB / 0.7787 GB, free: 7.328 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003268/0.494, allocations: 0.5623 MB / 0.7792 GB, free: 7.285 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001442/0.4954, allocations: 0.6336 MB / 0.7798 GB, free: 7.016 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001091/0.4955, allocations: 117.4 kB / 0.78 GB, free: 6.922 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001096/0.4957, allocations: 53.25 kB / 0.78 GB, free: 6.914 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001377/0.497, allocations: 0.6846 MB / 0.7807 GB, free: 6.836 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.4971, allocations: 0 / 0.7807 GB, free: 6.836 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.872e-05/0.4971, allocations: 21.84 kB / 0.7807 GB, free: 6.836 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.362e-05/0.4972, allocations: 12.44 kB / 0.7807 GB, free: 6.836 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001678/0.4988, allocations: 0.708 MB / 0.7814 GB, free: 6.824 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003621/0.5025, allocations: 1.864 MB / 0.7832 GB, free: 6.359 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002674/0.5052, allocations: 0.8255 MB / 0.784 GB, free: 6.082 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007991/0.506, allocations: 353.1 kB / 0.7844 GB, free: 5.957 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001655/0.5076, allocations: 1.765 MB / 0.7861 GB, free: 19.97 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00091/0.5086, allocations: 430.2 kB / 0.7865 GB, free: 19.81 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=56): time 2.645e-06/0.5086, allocations: 0 / 0.7865 GB, free: 19.81 MB / 0.5762 GB Notification: Performance of matching and sorting (n=56): time 0.007105/0.5157, allocations: 1.51 MB / 0.788 GB, free: 19.31 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.953e-05/0.5158, allocations: 110 kB / 0.7881 GB, free: 19.19 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005665/0.5164, allocations: 405.2 kB / 0.7885 GB, free: 18.98 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 8.661e-05/0.5165, allocations: 40.55 kB / 0.7885 GB, free: 18.94 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001965/0.5167, allocations: 270.7 kB / 0.7888 GB, free: 18.72 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001418/0.5168, allocations: 198.1 kB / 0.789 GB, free: 18.57 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002106/0.517, allocations: 121 kB / 0.7891 GB, free: 18.52 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001822/0.5172, allocations: 366.4 kB / 0.7894 GB, free: 18.18 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007263/0.518, allocations: 289.6 kB / 0.7897 GB, free: 18.08 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007579/0.5187, allocations: 430.8 kB / 0.7901 GB, free: 17.84 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00145/0.5202, allocations: 0.696 MB / 0.7908 GB, free: 17.48 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.5202, allocations: 0.9062 kB / 0.7908 GB, free: 17.48 MB / 0.5762 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004529/0.5247, allocations: 1.076 MB / 0.7918 GB, free: 17.16 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.5248, allocations: 9.312 kB / 0.7918 GB, free: 17.16 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.5248, allocations: 4.531 kB / 0.7918 GB, free: 17.16 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003459/0.5282, allocations: 379.3 kB / 0.7922 GB, free: 17.12 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008561/0.5291, allocations: 159.9 kB / 0.7924 GB, free: 17.12 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004181/0.5333, allocations: 2.171 MB / 0.7945 GB, free: 15.34 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008934/0.5342, allocations: 91.3 kB / 0.7946 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.138e-05/0.5343, allocations: 30.83 kB / 0.7946 GB, free: 15.3 MB / 0.5762 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.0004212/0.5347, allocations: 210.5 kB / 0.7948 GB, free: 15.13 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001249/0.5349, allocations: 53.3 kB / 0.7949 GB, free: 15.1 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003209/0.5381, allocations: 1.064 MB / 0.7959 GB, free: 14.73 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.898e-06/0.5381, allocations: 11.45 kB / 0.7959 GB, free: 14.72 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.5381, allocations: 5.312 kB / 0.7959 GB, free: 14.72 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/0.5381, allocations: 3 kB / 0.7959 GB, free: 14.72 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004219/0.5424, allocations: 1.779 MB / 0.7976 GB, free: 13.87 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.5424, allocations: 0.75 kB / 0.7976 GB, free: 13.87 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008282/0.5432, allocations: 147.4 kB / 0.7978 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001011/0.5442, allocations: 139 kB / 0.7979 GB, free: 13.84 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.171e-05/0.5443, allocations: 23 kB / 0.7979 GB, free: 13.83 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002888/0.5472, allocations: 1.93 MB / 0.7998 GB, free: 12.16 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.5472, allocations: 0.5 kB / 0.7998 GB, free: 12.16 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003429/0.5507, allocations: 1.028 MB / 0.8008 GB, free: 11.73 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003629/0.551, allocations: 201.3 kB / 0.801 GB, free: 11.57 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.713e-05/0.5511, allocations: 20.42 kB / 0.801 GB, free: 11.55 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006623/0.5518, allocations: 49.73 kB / 0.8011 GB, free: 11.54 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001388/0.552, allocations: 47.84 kB / 0.8011 GB, free: 11.54 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.513e-05/0.552, allocations: 27.45 kB / 0.8012 GB, free: 11.53 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003954/0.5524, allocations: 279 kB / 0.8014 GB, free: 11.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5525, allocations: 4 kB / 0.8014 GB, free: 11.39 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001092/0.5535, allocations: 243.3 kB / 0.8017 GB, free: 11.33 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.004996/0.5586, allocations: 1.968 MB / 0.8036 GB, free: 10.26 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002519/0.5611, allocations: 0.8874 MB / 0.8045 GB, free: 9.914 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.5611, allocations: 2.625 kB / 0.8045 GB, free: 9.914 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001263/0.5624, allocations: 0.5452 MB / 0.805 GB, free: 9.668 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000669/0.5631, allocations: 82 kB / 0.8051 GB, free: 9.621 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0159/0.579, allocations: 5.779 MB / 0.8107 GB, free: 6.691 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006483/0.5797, allocations: 0.8822 MB / 0.8116 GB, free: 5.977 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0007627/0.5804, allocations: 148.5 kB / 0.8117 GB, free: 5.934 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004557/0.5809, allocations: 220.7 kB / 0.8119 GB, free: 5.789 MB / 0.5762 GB Notification: Performance of SimCode: time 1.202e-06/0.5809, allocations: 0 / 0.8119 GB, free: 5.789 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09823/0.6791, allocations: 15.65 MB / 0.8272 GB, free: 14.8 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.39/13.06, allocations: 14.14 kB / 0.8272 GB, free: 14.8 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)