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.004571/0.004571, allocations: 99.31 kB / 15.73 MB, free: 6.047 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.001035/0.001035, allocations: 187.4 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.26/1.26, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001993/0.001993, allocations: 274.6 kB / 290.8 MB, free: 1.938 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9025/0.9025, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001795/0.001796, allocations: 97.92 kB / 0.6814 GB, free: 15.58 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1569/0.1587, allocations: 86.97 MB / 0.7664 GB, free: 8.527 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP): time 0.005251/0.164, allocations: 3.693 MB / 0.77 GB, free: 4.812 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.005134/0.1691, allocations: 3.466 MB / 0.7733 GB, free: 1.332 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003941/0.1696, allocations: 7.938 kB / 0.7734 GB, free: 1.324 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.0005384/0.1701, allocations: 115 kB / 0.7735 GB, free: 1.211 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001256/0.1714, allocations: 465.4 kB / 0.7739 GB, free: 0.7539 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008595/0.1722, allocations: 390.2 kB / 0.7743 GB, free: 384 kB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.3177/0.49, allocations: 0.8009 MB / 0.7751 GB, free: 8.832 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004398/0.4905, allocations: 195.7 kB / 0.7752 GB, free: 8.812 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007087/0.4912, allocations: 341.4 kB / 0.7756 GB, free: 8.789 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007046/0.4919, allocations: 343.2 kB / 0.7759 GB, free: 8.73 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001483/0.4921, allocations: 69.28 kB / 0.776 GB, free: 8.73 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001072/0.4931, allocations: 0.5032 MB / 0.7765 GB, free: 8.727 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001791/0.4933, allocations: 171.6 kB / 0.7766 GB, free: 8.707 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003104/0.4937, allocations: 333.2 kB / 0.7769 GB, free: 8.613 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001593/0.4953, allocations: 1.117 MB / 0.778 GB, free: 8.488 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/0.4953, allocations: 4.828 kB / 0.778 GB, free: 8.488 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.593e-06/0.4953, allocations: 0.8438 kB / 0.778 GB, free: 8.488 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.441e-05/0.4953, allocations: 1 kB / 0.778 GB, free: 8.488 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.002232/0.4975, allocations: 1.022 MB / 0.779 GB, free: 7.863 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.379e-05/0.4976, allocations: 10.81 kB / 0.779 GB, free: 7.863 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003092/0.5007, allocations: 0.5714 MB / 0.7796 GB, free: 7.82 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001221/0.5019, allocations: 0.6145 MB / 0.7802 GB, free: 7.562 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.453e-05/0.502, allocations: 123.1 kB / 0.7803 GB, free: 7.465 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.832e-05/0.5021, allocations: 53.28 kB / 0.7804 GB, free: 7.461 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001405/0.5035, allocations: 0.6843 MB / 0.781 GB, free: 7.383 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.5035, allocations: 0 / 0.781 GB, free: 7.383 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.625e-05/0.5036, allocations: 20.03 kB / 0.7811 GB, free: 7.383 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.821e-05/0.5037, allocations: 11.52 kB / 0.7811 GB, free: 7.383 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001734/0.5054, allocations: 0.7091 MB / 0.7818 GB, free: 7.371 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00378/0.5092, allocations: 1.872 MB / 0.7836 GB, free: 6.691 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00262/0.5118, allocations: 0.8199 MB / 0.7844 GB, free: 6.414 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007494/0.5126, allocations: 350.7 kB / 0.7847 GB, free: 6.285 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001362/0.514, allocations: 1.766 MB / 0.7864 GB, free: 4.301 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008704/0.5148, allocations: 430 kB / 0.7869 GB, free: 4.137 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=56): time 2.254e-06/0.5148, allocations: 1.875 kB / 0.7869 GB, free: 4.137 MB / 0.5606 GB Notification: Performance of matching and sorting (n=56): time 0.006918/0.5218, allocations: 1.502 MB / 0.7883 GB, free: 3.648 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.246e-05/0.5218, allocations: 113.7 kB / 0.7884 GB, free: 3.52 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005415/0.5224, allocations: 403.3 kB / 0.7888 GB, free: 19.32 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 6.305e-05/0.5224, allocations: 41.23 kB / 0.7889 GB, free: 19.28 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001536/0.5226, allocations: 264.8 kB / 0.7891 GB, free: 19.06 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001187/0.5227, allocations: 192.4 kB / 0.7893 GB, free: 18.92 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001971/0.5229, allocations: 124.3 kB / 0.7894 GB, free: 18.86 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001277/0.5231, allocations: 358.3 kB / 0.7898 GB, free: 18.53 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006911/0.5238, allocations: 292.7 kB / 0.79 GB, free: 18.43 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007544/0.5245, allocations: 429.7 kB / 0.7904 GB, free: 18.18 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001408/0.5259, allocations: 0.7006 MB / 0.7911 GB, free: 17.82 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.526, allocations: 0 / 0.7911 GB, free: 17.82 MB / 0.5762 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004419/0.5304, allocations: 1.077 MB / 0.7922 GB, free: 17.5 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/0.5304, allocations: 6.594 kB / 0.7922 GB, free: 17.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.5304, allocations: 4.656 kB / 0.7922 GB, free: 17.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00346/0.5339, allocations: 382 kB / 0.7926 GB, free: 17.47 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007991/0.5347, allocations: 163.6 kB / 0.7927 GB, free: 17.46 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003914/0.5386, allocations: 2.162 MB / 0.7948 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007174/0.5394, allocations: 91.16 kB / 0.7949 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.58e-05/0.5394, allocations: 31.02 kB / 0.7949 GB, free: 15.64 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.0002949/0.5397, allocations: 210.1 kB / 0.7951 GB, free: 15.48 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.5398, allocations: 48.78 kB / 0.7952 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003137/0.543, allocations: 1.069 MB / 0.7962 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.365e-06/0.543, allocations: 6.219 kB / 0.7962 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.514e-06/0.543, allocations: 1.562 kB / 0.7962 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.129e-05/0.543, allocations: 7.734 kB / 0.7962 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003758/0.5468, allocations: 1.777 MB / 0.798 GB, free: 14.23 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.5468, allocations: 0.5156 kB / 0.798 GB, free: 14.23 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007628/0.5476, allocations: 147.5 kB / 0.7981 GB, free: 14.22 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009829/0.5486, allocations: 139.9 kB / 0.7983 GB, free: 14.2 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.99e-05/0.5486, allocations: 22.5 kB / 0.7983 GB, free: 14.18 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002617/0.5513, allocations: 1.922 MB / 0.8002 GB, free: 12.52 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.5513, allocations: 1.484 kB / 0.8002 GB, free: 12.52 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003017/0.5543, allocations: 1.024 MB / 0.8012 GB, free: 12.09 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002778/0.5546, allocations: 210.1 kB / 0.8014 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.403e-05/0.5547, allocations: 11.5 kB / 0.8014 GB, free: 11.91 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006101/0.5553, allocations: 53.62 kB / 0.8014 GB, free: 11.9 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001175/0.5554, allocations: 48.98 kB / 0.8015 GB, free: 11.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.866e-05/0.5555, allocations: 23.33 kB / 0.8015 GB, free: 11.89 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003287/0.5558, allocations: 286.4 kB / 0.8018 GB, free: 11.75 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5558, allocations: 0 / 0.8018 GB, free: 11.75 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0008391/0.5567, allocations: 240 kB / 0.802 GB, free: 11.69 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.00113/0.5578, allocations: 0.5071 MB / 0.8025 GB, free: 11.5 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002209/0.56, allocations: 0.8876 MB / 0.8033 GB, free: 11.15 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.5601, allocations: 0 / 0.8033 GB, free: 11.15 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.00114/0.5612, allocations: 0.5394 MB / 0.8039 GB, free: 10.91 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005005/0.5617, allocations: 72.02 kB / 0.8039 GB, free: 10.86 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002197/0.5639, allocations: 1.226 MB / 0.8051 GB, free: 10.25 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004551/0.5644, allocations: 0.8818 MB / 0.806 GB, free: 9.535 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0005565/0.565, allocations: 152.7 kB / 0.8061 GB, free: 9.488 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002289/0.5652, allocations: 67.2 kB / 0.8062 GB, free: 9.477 MB / 0.5762 GB Notification: Performance of SimCode: time 3.21e-07/0.5652, allocations: 1.469 kB / 0.8062 GB, free: 9.477 MB / 0.5762 GB Notification: Performance of Templates: time 0.01702/0.5822, allocations: 10.34 MB / 0.8163 GB, free: 5.816 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)