Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex") translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8064/0.8064, allocations: 143.4 MB / 159.2 MB, free: 4.883 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001406/0.001406, allocations: 183.6 kB / 191.9 MB, free: 5.719 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.428/1.428, allocations: 222.9 MB / 447.3 MB, free: 5.855 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001329/0.001329, allocations: 99.55 kB / 0.517 GB, free: 3.719 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002109/0.002108, allocations: 283.2 kB / 0.5973 GB, free: 49.39 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 79.88 kB / 0.6885 GB, free: 3.855 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3669/0.3684, allocations: 81.29 MB / 0.7679 GB, free: 27.68 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex): time 0.004664/0.3731, allocations: 3.713 MB / 0.7715 GB, free: 23.96 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.005131/0.3783, allocations: 3.442 MB / 0.7749 GB, free: 20.5 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004089/0.3787, allocations: 11.94 kB / 0.7749 GB, free: 20.49 MB / 458.7 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.0005677/0.3793, allocations: 103.3 kB / 0.775 GB, free: 20.39 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001144/0.3805, allocations: 370.2 kB / 0.7754 GB, free: 20.03 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008376/0.3813, allocations: 323.7 kB / 0.7757 GB, free: 19.71 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006649/0.382, allocations: 0.7058 MB / 0.7764 GB, free: 19.01 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003099/0.3823, allocations: 197.5 kB / 0.7766 GB, free: 18.81 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000335/0.3827, allocations: 270.8 kB / 0.7768 GB, free: 18.54 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004328/0.3831, allocations: 298.6 kB / 0.7771 GB, free: 18.25 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 8.825e-05/0.3832, allocations: 32 kB / 0.7771 GB, free: 18.22 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009597/0.3842, allocations: 475.5 kB / 0.7776 GB, free: 17.75 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001574/0.3843, allocations: 139.4 kB / 0.7777 GB, free: 17.62 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002542/0.3846, allocations: 278.4 kB / 0.778 GB, free: 17.34 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001157/0.3858, allocations: 1.044 MB / 0.779 GB, free: 16.3 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.3858, allocations: 0 / 0.779 GB, free: 16.3 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.3858, allocations: 0 / 0.779 GB, free: 16.3 MB / 458.7 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.3858, allocations: 0 / 0.779 GB, free: 16.3 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.00212/0.3879, allocations: 0.9876 MB / 0.78 GB, free: 15.26 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.388, allocations: 12.03 kB / 0.78 GB, free: 15.25 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003937/0.3919, allocations: 0.5659 MB / 0.7805 GB, free: 14.68 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001586/0.3935, allocations: 0.6196 MB / 0.7811 GB, free: 14.02 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001213/0.3937, allocations: 122.7 kB / 0.7812 GB, free: 13.88 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.844e-05/0.3938, allocations: 43.94 kB / 0.7813 GB, free: 13.84 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001574/0.3954, allocations: 0.6558 MB / 0.7819 GB, free: 13.16 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.729e-05/0.3954, allocations: 0 / 0.7819 GB, free: 13.16 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.045e-05/0.3955, allocations: 16 kB / 0.7819 GB, free: 13.14 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.353e-05/0.3955, allocations: 12 kB / 0.782 GB, free: 13.13 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001989/0.3975, allocations: 0.6986 MB / 0.7826 GB, free: 12.44 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004369/0.4019, allocations: 1.758 MB / 0.7844 GB, free: 10.62 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003377/0.4053, allocations: 0.8121 MB / 0.7851 GB, free: 9.801 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009437/0.4063, allocations: 326 kB / 0.7855 GB, free: 9.48 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001698/0.408, allocations: 1.765 MB / 0.7872 GB, free: 7.328 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001051/0.4091, allocations: 389.2 kB / 0.7876 GB, free: 6.934 MB / 458.7 MB Notification: Performance of pre-optimization done (n=53): time 3.577e-06/0.4091, allocations: 0 / 0.7876 GB, free: 6.934 MB / 458.7 MB Notification: Performance of matching and sorting (n=53): time 0.003051/0.4121, allocations: 0.9355 MB / 0.7885 GB, free: 5.996 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.991e-05/0.4122, allocations: 107.2 kB / 0.7886 GB, free: 5.867 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005579/0.4128, allocations: 419.1 kB / 0.789 GB, free: 5.457 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.696e-05/0.4128, allocations: 37.7 kB / 0.789 GB, free: 5.414 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001864/0.413, allocations: 272.6 kB / 0.7893 GB, free: 5.141 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000149/0.4132, allocations: 185.3 kB / 0.7894 GB, free: 4.957 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002471/0.4134, allocations: 122.1 kB / 0.7896 GB, free: 4.832 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.2e-05/0.4135, allocations: 362.7 kB / 0.7899 GB, free: 4.469 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008898/0.4144, allocations: 276.9 kB / 0.7902 GB, free: 4.199 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009966/0.4155, allocations: 408.5 kB / 0.7906 GB, free: 3.75 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00183/0.4173, allocations: 0.6594 MB / 0.7912 GB, free: 3.047 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.059e-06/0.4173, allocations: 0 / 0.7912 GB, free: 3.047 MB / 458.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002287/0.4196, allocations: 0.7638 MB / 0.7919 GB, free: 2.277 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.103e-05/0.4197, allocations: 9.562 kB / 0.792 GB, free: 2.27 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.21e-05/0.4197, allocations: 4 kB / 0.792 GB, free: 2.266 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.696e-05/0.4197, allocations: 4.219 kB / 0.792 GB, free: 2.262 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001912/0.4216, allocations: 251.7 kB / 0.7922 GB, free: 2.016 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001712/0.4234, allocations: 1.48 MB / 0.7936 GB, free: 408 kB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009954/0.4244, allocations: 79.47 kB / 0.7937 GB, free: 328 kB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.427e-05/0.4245, allocations: 27.98 kB / 0.7938 GB, free: 300 kB / 458.7 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 {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004755/0.425, allocations: 217.7 kB / 0.794 GB, free: 72 kB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001694/0.4251, allocations: 51.34 kB / 0.794 GB, free: 20 kB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003862/0.429, allocations: 0.9347 MB / 0.7949 GB, free: 15.07 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.119e-05/0.429, allocations: 8 kB / 0.7949 GB, free: 15.06 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.4291, allocations: 0 / 0.7949 GB, free: 15.06 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.673e-05/0.4291, allocations: 11.97 kB / 0.7949 GB, free: 15.05 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004474/0.4336, allocations: 1.606 MB / 0.7965 GB, free: 13.38 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.4336, allocations: 0 / 0.7965 GB, free: 13.38 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007685/0.4344, allocations: 139.8 kB / 0.7966 GB, free: 13.25 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005623/0.435, allocations: 64.8 kB / 0.7967 GB, free: 13.18 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.683e-05/0.435, allocations: 19.97 kB / 0.7967 GB, free: 13.16 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001752/0.4368, allocations: 1.481 MB / 0.7982 GB, free: 11.54 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.4368, allocations: 3.938 kB / 0.7982 GB, free: 11.54 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003591/0.4404, allocations: 1.906 MB / 0.8 GB, free: 9.566 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003262/0.4407, allocations: 204.2 kB / 0.8002 GB, free: 9.348 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.291e-05/0.4408, allocations: 12 kB / 0.8002 GB, free: 9.336 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005897/0.4414, allocations: 55.88 kB / 0.8003 GB, free: 9.281 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001101/0.4416, allocations: 44.64 kB / 0.8003 GB, free: 9.238 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.556e-05/0.4416, allocations: 27.92 kB / 0.8004 GB, free: 9.211 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0003278/0.442, allocations: 291.1 kB / 0.8006 GB, free: 8.926 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.442, allocations: 0 / 0.8006 GB, free: 8.926 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0008776/0.4429, allocations: 239.6 kB / 0.8009 GB, free: 8.691 MB / 474.7 MB 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 (66): * Single equations (assignments): 64 * 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 {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001248/0.4441, allocations: 0.4928 MB / 0.8013 GB, free: 8.34 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002565/0.4467, allocations: 0.7651 MB / 0.8021 GB, free: 7.574 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.4467, allocations: 0 / 0.8021 GB, free: 7.574 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001083/0.4478, allocations: 0.4941 MB / 0.8026 GB, free: 7.07 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005357/0.4484, allocations: 69.45 kB / 0.8026 GB, free: 7.012 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002888/0.4513, allocations: 1.79 MB / 0.8044 GB, free: 5.18 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005519/0.4518, allocations: 0.8892 MB / 0.8053 GB, free: 4.27 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0007504/0.4526, allocations: 152.5 kB / 0.8054 GB, free: 4.117 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002562/0.4529, allocations: 71.39 kB / 0.8055 GB, free: 4.047 MB / 474.7 MB Notification: Performance of SimCode: time 1.022e-06/0.4529, allocations: 0 / 0.8055 GB, free: 4.047 MB / 474.7 MB Notification: Performance of Templates: time 0.01615/0.469, allocations: 8.638 MB / 0.8139 GB, free: 11.45 MB / 490.7 MB make -j1 -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.makefile (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.sim & ./BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe 2>&1)