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: translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP") translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005095/0.005095, allocations: 96.61 kB / 15.73 MB, free: 6.039 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.00128/0.00128, allocations: 197.8 kB / 16.68 MB, free: 5.969 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.311/1.311, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002042/0.002042, allocations: 281.1 kB / 290.8 MB, free: 1.926 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9514/0.9514, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001603/0.001603, allocations: 91.86 kB / 0.6814 GB, free: 15.53 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1452/0.1468, allocations: 86.98 MB / 0.7664 GB, free: 8.477 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP): time 0.004596/0.1514, allocations: 3.688 MB / 0.77 GB, free: 4.766 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.004604/0.1561, allocations: 3.466 MB / 0.7733 GB, free: 1.285 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003212/0.1564, allocations: 7.938 kB / 0.7733 GB, free: 1.277 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.0004671/0.1569, allocations: 124.8 kB / 0.7735 GB, free: 1.156 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001148/0.1581, allocations: 457.5 kB / 0.7739 GB, free: 0.707 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007812/0.1588, allocations: 390.1 kB / 0.7743 GB, free: 336 kB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.3085/0.4674, allocations: 0.8086 MB / 0.7751 GB, free: 8.859 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003648/0.4678, allocations: 190.4 kB / 0.7752 GB, free: 8.84 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00048/0.4683, allocations: 335.6 kB / 0.7756 GB, free: 8.816 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005387/0.4688, allocations: 345.5 kB / 0.7759 GB, free: 8.754 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001297/0.469, allocations: 69.88 kB / 0.776 GB, free: 8.754 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001038/0.47, allocations: 0.5002 MB / 0.7764 GB, free: 8.754 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001751/0.4702, allocations: 177.2 kB / 0.7766 GB, free: 8.73 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002756/0.4705, allocations: 328.5 kB / 0.7769 GB, free: 8.641 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001455/0.472, allocations: 1.119 MB / 0.778 GB, free: 8.496 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.472, allocations: 5.438 kB / 0.778 GB, free: 8.496 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.643e-06/0.472, allocations: 0.75 kB / 0.778 GB, free: 8.496 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.017e-05/0.472, allocations: 0 / 0.778 GB, free: 8.496 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.002021/0.474, allocations: 1.05 MB / 0.7791 GB, free: 7.844 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.497e-05/0.4741, allocations: 10.09 kB / 0.7791 GB, free: 7.844 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003008/0.4771, allocations: 0.5658 MB / 0.7796 GB, free: 7.797 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001215/0.4783, allocations: 0.6349 MB / 0.7802 GB, free: 7.527 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.593e-05/0.4784, allocations: 116.1 kB / 0.7803 GB, free: 7.434 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.287e-05/0.4785, allocations: 49.66 kB / 0.7804 GB, free: 7.43 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001302/0.4798, allocations: 0.6845 MB / 0.7811 GB, free: 7.352 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/0.4798, allocations: 1.094 kB / 0.7811 GB, free: 7.352 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.338e-05/0.4799, allocations: 26.16 kB / 0.7811 GB, free: 7.352 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.4799, allocations: 12.94 kB / 0.7811 GB, free: 7.352 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001614/0.4815, allocations: 0.7062 MB / 0.7818 GB, free: 7.336 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003173/0.4847, allocations: 1.872 MB / 0.7836 GB, free: 6.648 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002498/0.4872, allocations: 0.8191 MB / 0.7844 GB, free: 6.367 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007592/0.488, allocations: 352.8 kB / 0.7848 GB, free: 6.238 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001263/0.4893, allocations: 1.766 MB / 0.7865 GB, free: 4.254 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008843/0.4902, allocations: 426.7 kB / 0.7869 GB, free: 4.094 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=56): time 3.246e-06/0.4902, allocations: 0 / 0.7869 GB, free: 4.094 MB / 0.5606 GB Notification: Performance of matching and sorting (n=56): time 0.006206/0.4964, allocations: 1.512 MB / 0.7884 GB, free: 3.598 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000177/0.4966, allocations: 117.3 kB / 0.7885 GB, free: 19.47 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004383/0.497, allocations: 403.3 kB / 0.7889 GB, free: 19.27 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 6.533e-05/0.4971, allocations: 36.36 kB / 0.7889 GB, free: 19.23 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001563/0.4973, allocations: 271.2 kB / 0.7892 GB, free: 19.01 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001189/0.4974, allocations: 198.3 kB / 0.7893 GB, free: 18.86 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002236/0.4976, allocations: 126.1 kB / 0.7895 GB, free: 18.8 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000138/0.4978, allocations: 359.1 kB / 0.7898 GB, free: 18.46 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007182/0.4985, allocations: 292.2 kB / 0.7901 GB, free: 18.37 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007762/0.4993, allocations: 429.3 kB / 0.7905 GB, free: 18.12 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001417/0.5007, allocations: 0.6978 MB / 0.7912 GB, free: 17.76 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.5007, allocations: 0 / 0.7912 GB, free: 17.76 MB / 0.5762 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003957/0.5047, allocations: 1.074 MB / 0.7922 GB, free: 17.44 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.5047, allocations: 5.844 kB / 0.7922 GB, free: 17.44 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.5047, allocations: 4.281 kB / 0.7922 GB, free: 17.44 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002962/0.5077, allocations: 382.2 kB / 0.7926 GB, free: 17.41 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007557/0.5085, allocations: 160.5 kB / 0.7928 GB, free: 17.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003669/0.5121, allocations: 2.176 MB / 0.7949 GB, free: 15.62 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007012/0.5129, allocations: 93.22 kB / 0.795 GB, free: 15.58 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.87e-05/0.5129, allocations: 30.61 kB / 0.795 GB, free: 15.58 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.0003153/0.5133, allocations: 208.2 kB / 0.7952 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001047/0.5134, allocations: 48.86 kB / 0.7952 GB, free: 15.39 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003072/0.5165, allocations: 1.068 MB / 0.7963 GB, free: 15.01 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.5165, allocations: 7.188 kB / 0.7963 GB, free: 15.01 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.5165, allocations: 2.156 kB / 0.7963 GB, free: 15.01 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.16e-05/0.5165, allocations: 7.781 kB / 0.7963 GB, free: 15 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003715/0.5202, allocations: 1.78 MB / 0.798 GB, free: 14.16 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.5202, allocations: 0.6562 kB / 0.798 GB, free: 14.16 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007387/0.521, allocations: 139.3 kB / 0.7982 GB, free: 14.16 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009201/0.5219, allocations: 148 kB / 0.7983 GB, free: 14.13 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.874e-05/0.522, allocations: 19.5 kB / 0.7983 GB, free: 14.12 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002547/0.5245, allocations: 1.933 MB / 0.8002 GB, free: 12.45 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.5246, allocations: 0.6562 kB / 0.8002 GB, free: 12.45 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002977/0.5275, allocations: 1.029 MB / 0.8012 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002954/0.5278, allocations: 205.9 kB / 0.8014 GB, free: 11.85 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001013/0.528, allocations: 15.89 kB / 0.8014 GB, free: 11.84 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005862/0.5286, allocations: 54.47 kB / 0.8015 GB, free: 11.83 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001223/0.5287, allocations: 45.48 kB / 0.8015 GB, free: 11.82 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.487e-05/0.5288, allocations: 26.53 kB / 0.8016 GB, free: 11.82 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003486/0.5291, allocations: 278.6 kB / 0.8018 GB, free: 11.68 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.3e-07/0.5291, allocations: 0 / 0.8018 GB, free: 11.68 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0009092/0.53, allocations: 240.3 kB / 0.802 GB, free: 11.62 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.001249/0.5313, allocations: 0.5156 MB / 0.8026 GB, free: 11.42 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002376/0.5337, allocations: 0.8805 MB / 0.8034 GB, free: 11.08 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.5337, allocations: 4.188 kB / 0.8034 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001185/0.5349, allocations: 0.5338 MB / 0.8039 GB, free: 10.83 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005108/0.5354, allocations: 88.09 kB / 0.804 GB, free: 10.78 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00234/0.5378, allocations: 1.238 MB / 0.8052 GB, free: 10.16 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004761/0.5383, allocations: 0.8826 MB / 0.8061 GB, free: 9.441 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.00062/0.5389, allocations: 149.9 kB / 0.8062 GB, free: 9.395 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002529/0.5391, allocations: 73.3 kB / 0.8063 GB, free: 9.379 MB / 0.5762 GB Notification: Performance of SimCode: time 2.51e-07/0.5391, allocations: 0 / 0.8063 GB, free: 9.379 MB / 0.5762 GB Notification: Performance of Templates: time 0.0172/0.5563, allocations: 10.13 MB / 0.8162 GB, free: 5.852 MB / 0.5762 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.makefile (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 & ./BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.pipe 2>&1)