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/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.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/BuildingSystems 2.0.0-master/package.mo): time 0.8275/0.8275, allocations: 143.4 MB / 159.2 MB, free: 4.875 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.001185/0.001185, allocations: 180.5 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.429/1.429, allocations: 222.9 MB / 447.3 MB, free: 5.844 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.0009986/0.0009987, allocations: 99.66 kB / 0.517 GB, free: 3.707 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002105/0.002105, allocations: 281.4 kB / 0.5973 GB, free: 49.39 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00147/0.001471, allocations: 75.89 kB / 0.6885 GB, free: 3.867 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3617/0.3631, allocations: 81.29 MB / 0.7679 GB, free: 27.7 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP): time 0.004864/0.3681, allocations: 3.708 MB / 0.7715 GB, free: 23.98 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.004635/0.3727, allocations: 3.461 MB / 0.7749 GB, free: 20.5 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005174/0.3733, allocations: 15.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.0005607/0.3739, allocations: 103.3 kB / 0.775 GB, free: 20.39 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001168/0.3751, allocations: 366.2 kB / 0.7754 GB, free: 20.03 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007719/0.3759, allocations: 350.3 kB / 0.7757 GB, free: 19.69 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005454/0.3764, allocations: 0.7449 MB / 0.7764 GB, free: 18.94 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002573/0.3767, allocations: 198.3 kB / 0.7766 GB, free: 18.74 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002908/0.377, allocations: 294.7 kB / 0.7769 GB, free: 18.45 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003963/0.3774, allocations: 314.7 kB / 0.7772 GB, free: 18.14 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 7.573e-05/0.3775, allocations: 32 kB / 0.7772 GB, free: 18.11 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000685/0.3782, allocations: 479.4 kB / 0.7777 GB, free: 17.64 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001387/0.3783, allocations: 139.4 kB / 0.7778 GB, free: 17.51 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002069/0.3785, allocations: 282.4 kB / 0.7781 GB, free: 17.23 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008696/0.3794, allocations: 1.067 MB / 0.7791 GB, free: 16.16 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.3794, allocations: 0 / 0.7791 GB, free: 16.16 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3794, allocations: 0 / 0.7791 GB, free: 16.16 MB / 458.7 MB Notification: Performance of Transformations before backend: time 7.423e-06/0.3794, allocations: 0 / 0.7791 GB, free: 16.16 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.001974/0.3814, allocations: 1.021 MB / 0.7801 GB, free: 15.09 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.3815, allocations: 12.03 kB / 0.7801 GB, free: 15.08 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002933/0.3844, allocations: 0.5621 MB / 0.7807 GB, free: 14.52 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001197/0.3856, allocations: 0.6234 MB / 0.7813 GB, free: 13.85 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.453e-05/0.3857, allocations: 122.2 kB / 0.7814 GB, free: 13.71 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.377e-05/0.3858, allocations: 48 kB / 0.7815 GB, free: 13.67 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001196/0.387, allocations: 0.6752 MB / 0.7821 GB, free: 12.97 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.387, allocations: 0 / 0.7821 GB, free: 12.97 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.838e-05/0.3871, allocations: 20 kB / 0.7821 GB, free: 12.95 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.847e-06/0.3871, allocations: 16 kB / 0.7822 GB, free: 12.93 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00149/0.3886, allocations: 0.6987 MB / 0.7828 GB, free: 12.24 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00285/0.3915, allocations: 1.867 MB / 0.7847 GB, free: 10.31 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002371/0.3938, allocations: 0.8259 MB / 0.7855 GB, free: 9.48 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007263/0.3946, allocations: 362.3 kB / 0.7858 GB, free: 9.125 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001389/0.396, allocations: 1.765 MB / 0.7875 GB, free: 6.969 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008178/0.3968, allocations: 426.9 kB / 0.7879 GB, free: 6.543 MB / 458.7 MB Notification: Performance of pre-optimization done (n=56): time 2.906e-06/0.3968, allocations: 0 / 0.7879 GB, free: 6.543 MB / 458.7 MB Notification: Performance of matching and sorting (n=56): time 0.006141/0.403, allocations: 1.503 MB / 0.7894 GB, free: 5.016 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.883e-05/0.403, allocations: 111.4 kB / 0.7895 GB, free: 4.883 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003907/0.4034, allocations: 398 kB / 0.7899 GB, free: 4.492 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.929e-05/0.4035, allocations: 37.7 kB / 0.7899 GB, free: 4.449 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001391/0.4036, allocations: 272.8 kB / 0.7902 GB, free: 4.176 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001124/0.4038, allocations: 189.2 kB / 0.7904 GB, free: 3.988 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001844/0.404, allocations: 122.3 kB / 0.7905 GB, free: 3.863 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 7.003e-05/0.404, allocations: 354.8 kB / 0.7908 GB, free: 3.508 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006501/0.4047, allocations: 297 kB / 0.7911 GB, free: 3.219 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000716/0.4054, allocations: 441.3 kB / 0.7915 GB, free: 2.734 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00134/0.4068, allocations: 0.6989 MB / 0.7922 GB, free: 1.984 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.4068, allocations: 0 / 0.7922 GB, free: 1.984 MB / 458.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003893/0.4107, allocations: 1.073 MB / 0.7933 GB, free: 0.9062 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.301e-05/0.4107, allocations: 5.875 kB / 0.7933 GB, free: 0.9023 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.4107, allocations: 4.344 kB / 0.7933 GB, free: 0.8984 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002874/0.4136, allocations: 384.5 kB / 0.7936 GB, free: 0.5195 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007416/0.4144, allocations: 159.7 kB / 0.7938 GB, free: 372 kB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003689/0.4181, allocations: 2.015 MB / 0.7958 GB, free: 14.21 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008091/0.4189, allocations: 103.4 kB / 0.7959 GB, free: 14.11 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.045e-05/0.419, allocations: 27.97 kB / 0.7959 GB, free: 14.08 MB / 474.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 {3} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004428/0.4195, allocations: 205.6 kB / 0.7961 GB, free: 13.87 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001335/0.4196, allocations: 51.34 kB / 0.7961 GB, free: 13.82 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003182/0.4228, allocations: 1.07 MB / 0.7972 GB, free: 12.74 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.726e-06/0.4228, allocations: 8 kB / 0.7972 GB, free: 12.73 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.364e-06/0.4228, allocations: 0 / 0.7972 GB, free: 12.73 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/0.4228, allocations: 3.984 kB / 0.7972 GB, free: 12.73 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003858/0.4267, allocations: 1.769 MB / 0.7989 GB, free: 10.89 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.4267, allocations: 0 / 0.7989 GB, free: 10.89 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007402/0.4275, allocations: 143.8 kB / 0.7991 GB, free: 10.75 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001165/0.4286, allocations: 184.7 kB / 0.7992 GB, free: 10.57 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.445e-05/0.4287, allocations: 19.98 kB / 0.7992 GB, free: 10.55 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002487/0.4312, allocations: 1.778 MB / 0.801 GB, free: 8.637 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.4312, allocations: 3.938 kB / 0.801 GB, free: 8.633 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00405/0.4353, allocations: 2.049 MB / 0.803 GB, free: 6.52 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003343/0.4357, allocations: 212.2 kB / 0.8032 GB, free: 6.293 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.39e-05/0.4357, allocations: 19.94 kB / 0.8032 GB, free: 6.273 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005672/0.4363, allocations: 52.12 kB / 0.8033 GB, free: 6.223 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001269/0.4364, allocations: 44.59 kB / 0.8033 GB, free: 6.176 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.051e-05/0.4365, allocations: 27.98 kB / 0.8033 GB, free: 6.148 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0003225/0.4368, allocations: 283.1 kB / 0.8036 GB, free: 5.871 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4368, allocations: 4 kB / 0.8036 GB, free: 5.867 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0008839/0.4377, allocations: 243.6 kB / 0.8038 GB, free: 5.629 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 (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.001185/0.4389, allocations: 0.4909 MB / 0.8043 GB, free: 5.277 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002228/0.4412, allocations: 0.8834 MB / 0.8052 GB, free: 4.379 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.4412, allocations: 0 / 0.8052 GB, free: 4.379 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001104/0.4423, allocations: 0.5297 MB / 0.8057 GB, free: 3.836 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004669/0.4428, allocations: 73.95 kB / 0.8058 GB, free: 3.77 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002684/0.4455, allocations: 1.833 MB / 0.8076 GB, free: 1.898 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004737/0.446, allocations: 0.8932 MB / 0.8084 GB, free: 0.9805 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0006907/0.4467, allocations: 144.5 kB / 0.8086 GB, free: 0.8359 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000224/0.4469, allocations: 75.39 kB / 0.8086 GB, free: 0.7617 MB / 474.7 MB Notification: Performance of SimCode: time 5.21e-07/0.4469, allocations: 0 / 0.8086 GB, free: 0.7617 MB / 474.7 MB Notification: Performance of Templates: time 0.01623/0.4631, allocations: 9.908 MB / 0.8183 GB, free: 6.895 MB / 490.7 MB 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)