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.0012/0.0012, allocations: 104.6 kB / 16.35 MB, free: 5.824 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.001129/0.001129, allocations: 193.1 kB / 17.29 MB, free: 5.48 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.234/1.234, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002058/0.002058, allocations: 290.2 kB / 291.4 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8838/0.8838, allocations: 169.3 MB / 0.4989 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001691/0.001691, allocations: 91.05 kB / 0.5966 GB, free: 14.45 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1452/0.1469, allocations: 86.98 MB / 0.6816 GB, free: 7.465 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP): time 0.005494/0.1524, allocations: 3.686 MB / 0.6852 GB, free: 3.758 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.005276/0.1577, allocations: 3.47 MB / 0.6886 GB, free: 280 kB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002955/0.158, allocations: 11.94 kB / 0.6886 GB, free: 268 kB / 494.1 MB [/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.000428/0.1585, allocations: 115 kB / 0.6887 GB, free: 152 kB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2395/0.3981, allocations: 449 kB / 0.6891 GB, free: 13.26 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009024/0.399, allocations: 400.4 kB / 0.6895 GB, free: 13.26 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008011/0.3998, allocations: 0.8091 MB / 0.6903 GB, free: 13.26 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000281/0.4001, allocations: 199.1 kB / 0.6905 GB, free: 13.23 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003595/0.4005, allocations: 329.4 kB / 0.6908 GB, free: 13.2 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004517/0.4009, allocations: 346.1 kB / 0.6911 GB, free: 13.14 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001093/0.401, allocations: 70.47 kB / 0.6912 GB, free: 13.14 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008405/0.4019, allocations: 0.5012 MB / 0.6917 GB, free: 13.14 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001715/0.4021, allocations: 179.8 kB / 0.6919 GB, free: 13.11 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002691/0.4024, allocations: 331.2 kB / 0.6922 GB, free: 13.02 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001216/0.4036, allocations: 1.121 MB / 0.6933 GB, free: 12.87 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.706e-06/0.4036, allocations: 0 / 0.6933 GB, free: 12.87 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.4036, allocations: 1.75 kB / 0.6933 GB, free: 12.87 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.776e-06/0.4036, allocations: 0 / 0.6933 GB, free: 12.87 MB / 494.1 MB 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.001952/0.4056, allocations: 1.025 MB / 0.6943 GB, free: 12.2 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.179e-05/0.4056, allocations: 9.75 kB / 0.6943 GB, free: 12.2 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003099/0.4087, allocations: 0.5636 MB / 0.6948 GB, free: 12.15 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001287/0.41, allocations: 0.6273 MB / 0.6954 GB, free: 11.79 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.371e-05/0.4101, allocations: 119.3 kB / 0.6956 GB, free: 11.68 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.915e-05/0.4102, allocations: 50.64 kB / 0.6956 GB, free: 11.66 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001332/0.4115, allocations: 0.6841 MB / 0.6963 GB, free: 11.39 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.4116, allocations: 0.7031 kB / 0.6963 GB, free: 11.39 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.345e-05/0.4116, allocations: 19.59 kB / 0.6963 GB, free: 11.37 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.437e-05/0.4117, allocations: 12.5 kB / 0.6963 GB, free: 11.37 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001613/0.4133, allocations: 0.7123 MB / 0.697 GB, free: 11.15 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003134/0.4164, allocations: 1.864 MB / 0.6988 GB, free: 10.18 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002467/0.4189, allocations: 0.8214 MB / 0.6996 GB, free: 9.895 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007669/0.4197, allocations: 353.2 kB / 0.7 GB, free: 9.77 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001342/0.421, allocations: 1.769 MB / 0.7017 GB, free: 7.785 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008828/0.4219, allocations: 432.8 kB / 0.7021 GB, free: 7.621 MB / 494.1 MB Notification: Performance of pre-optimization done (n=56): time 2.535e-06/0.4219, allocations: 0 / 0.7021 GB, free: 7.621 MB / 494.1 MB Notification: Performance of matching and sorting (n=56): time 0.006586/0.4285, allocations: 1.5 MB / 0.7036 GB, free: 7.137 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.606e-05/0.4286, allocations: 113.9 kB / 0.7037 GB, free: 7.008 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005339/0.4291, allocations: 399.9 kB / 0.7041 GB, free: 6.812 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 6.341e-05/0.4292, allocations: 35.89 kB / 0.7041 GB, free: 6.773 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001608/0.4294, allocations: 272.5 kB / 0.7043 GB, free: 6.551 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001421/0.4295, allocations: 185.5 kB / 0.7045 GB, free: 6.41 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002354/0.4298, allocations: 125.4 kB / 0.7046 GB, free: 6.352 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.559e-05/0.4298, allocations: 357.2 kB / 0.705 GB, free: 6.02 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007187/0.4306, allocations: 293.3 kB / 0.7053 GB, free: 5.922 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000797/0.4314, allocations: 439.1 kB / 0.7057 GB, free: 5.672 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00148/0.4329, allocations: 0.7011 MB / 0.7064 GB, free: 5.312 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.4329, allocations: 1.375 kB / 0.7064 GB, free: 5.312 MB / 494.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004307/0.4372, allocations: 1.067 MB / 0.7074 GB, free: 4.996 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.19e-05/0.4372, allocations: 6.625 kB / 0.7074 GB, free: 4.996 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.4372, allocations: 4.625 kB / 0.7074 GB, free: 4.996 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003166/0.4404, allocations: 382.9 kB / 0.7078 GB, free: 4.961 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008126/0.4412, allocations: 157.7 kB / 0.7079 GB, free: 4.957 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003647/0.4449, allocations: 2.171 MB / 0.7101 GB, free: 3.176 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007867/0.4457, allocations: 96.64 kB / 0.7101 GB, free: 3.137 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.678e-05/0.4458, allocations: 35.12 kB / 0.7102 GB, free: 3.129 MB / 494.1 MB 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.000338/0.4461, allocations: 201.3 kB / 0.7104 GB, free: 2.969 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001542/0.4463, allocations: 50.31 kB / 0.7104 GB, free: 2.941 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003161/0.4495, allocations: 1.063 MB / 0.7115 GB, free: 2.555 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.4495, allocations: 8 kB / 0.7115 GB, free: 2.555 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.4495, allocations: 4 kB / 0.7115 GB, free: 2.551 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.184e-05/0.4495, allocations: 12.67 kB / 0.7115 GB, free: 2.543 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003722/0.4533, allocations: 1.773 MB / 0.7132 GB, free: 1.703 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.4533, allocations: 0 / 0.7132 GB, free: 1.703 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007161/0.454, allocations: 143.7 kB / 0.7134 GB, free: 1.699 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008814/0.4549, allocations: 140 kB / 0.7135 GB, free: 1.676 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.059e-05/0.455, allocations: 21.75 kB / 0.7135 GB, free: 1.664 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00211/0.4571, allocations: 1.921 MB / 0.7154 GB, free: 4 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.4571, allocations: 1.531 kB / 0.7154 GB, free: 4 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002813/0.4599, allocations: 1.029 MB / 0.7164 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003448/0.4603, allocations: 209.7 kB / 0.7166 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001073/0.4604, allocations: 16 kB / 0.7166 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006121/0.461, allocations: 57.11 kB / 0.7167 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001181/0.4611, allocations: 45.03 kB / 0.7167 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.001e-05/0.4612, allocations: 23.98 kB / 0.7167 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000321/0.4615, allocations: 284.4 kB / 0.717 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.2e-07/0.4615, allocations: 0 / 0.717 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0008883/0.4624, allocations: 234.3 kB / 0.7172 GB, free: 15.16 MB / 0.4981 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.00116/0.4636, allocations: 0.5022 MB / 0.7177 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002157/0.4658, allocations: 0.8788 MB / 0.7186 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4658, allocations: 1.344 kB / 0.7186 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001076/0.4669, allocations: 0.5393 MB / 0.7191 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004831/0.4674, allocations: 76.7 kB / 0.7192 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002187/0.4696, allocations: 1.228 MB / 0.7204 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004233/0.47, allocations: 0.8831 MB / 0.7212 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0005664/0.4706, allocations: 152.2 kB / 0.7214 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002339/0.4708, allocations: 70.48 kB / 0.7214 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of SimCode: time 3.41e-07/0.4708, allocations: 0 / 0.7214 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of Templates: time 0.01692/0.4877, allocations: 10 MB / 0.7312 GB, free: 7.773 MB / 0.4981 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 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.pipe 2>&1)