Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.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.PVModuleSimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple") translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004747/0.004752, allocations: 99.56 kB / 15.73 MB, free: 6.035 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.001134/0.001134, allocations: 193.4 kB / 16.67 MB, free: 5.961 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.32/1.32, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002199/0.002199, allocations: 283 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9606/0.9606, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001764/0.001764, allocations: 92.27 kB / 0.6814 GB, free: 15.53 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1604/0.1621, allocations: 86.97 MB / 0.7663 GB, free: 8.473 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple): time 0.004876/0.1671, allocations: 3.755 MB / 0.77 GB, free: 4.699 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.004846/0.1719, allocations: 3.431 MB / 0.7734 GB, free: 1.25 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000377/0.1723, allocations: 7.938 kB / 0.7734 GB, free: 1.242 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.0005299/0.1729, allocations: 134.9 kB / 0.7735 GB, free: 1.109 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.00128/0.1742, allocations: 457.5 kB / 0.7739 GB, free: 0.6602 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.00083/0.175, allocations: 350.4 kB / 0.7743 GB, free: 328 kB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.3161/0.4912, allocations: 0.741 MB / 0.775 GB, free: 8.809 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003879/0.4916, allocations: 198.8 kB / 0.7752 GB, free: 8.789 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000448/0.4921, allocations: 302.9 kB / 0.7755 GB, free: 8.77 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004667/0.4926, allocations: 323.6 kB / 0.7758 GB, free: 8.703 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001155/0.4927, allocations: 63.97 kB / 0.7758 GB, free: 8.703 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001019/0.4937, allocations: 0.4942 MB / 0.7763 GB, free: 8.703 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001797/0.4939, allocations: 167.5 kB / 0.7765 GB, free: 8.68 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.000275/0.4942, allocations: 324.3 kB / 0.7768 GB, free: 8.586 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001384/0.4956, allocations: 1.096 MB / 0.7779 GB, free: 8.434 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.4956, allocations: 0 / 0.7779 GB, free: 8.434 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.583e-06/0.4956, allocations: 0 / 0.7779 GB, free: 8.434 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.588e-06/0.4956, allocations: 1.688 kB / 0.7779 GB, free: 8.434 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.001778/0.4974, allocations: 1.018 MB / 0.7789 GB, free: 7.777 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.4974, allocations: 11.91 kB / 0.7789 GB, free: 7.777 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003546/0.501, allocations: 0.626 MB / 0.7795 GB, free: 7.73 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001213/0.5022, allocations: 0.6225 MB / 0.7801 GB, free: 7.465 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001032/0.5023, allocations: 118.8 kB / 0.7802 GB, free: 7.371 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.105e-05/0.5024, allocations: 44 kB / 0.7802 GB, free: 7.371 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001464/0.5039, allocations: 0.7016 MB / 0.7809 GB, free: 7.289 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.647e-05/0.5039, allocations: 4 kB / 0.7809 GB, free: 7.285 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.306e-05/0.504, allocations: 21.22 kB / 0.7809 GB, free: 7.281 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.223e-05/0.504, allocations: 12.41 kB / 0.781 GB, free: 7.281 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00192/0.5059, allocations: 0.759 MB / 0.7817 GB, free: 7.27 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003535/0.5095, allocations: 1.812 MB / 0.7835 GB, free: 6.664 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002827/0.5123, allocations: 0.8337 MB / 0.7843 GB, free: 6.391 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008768/0.5132, allocations: 356.8 kB / 0.7846 GB, free: 6.27 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001315/0.5145, allocations: 1.767 MB / 0.7864 GB, free: 4.285 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001012/0.5156, allocations: 429.3 kB / 0.7868 GB, free: 4.125 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=53): time 2.405e-06/0.5156, allocations: 1.969 kB / 0.7868 GB, free: 4.125 MB / 0.5606 GB Notification: Performance of matching and sorting (n=53): time 0.002739/0.5183, allocations: 1.014 MB / 0.7878 GB, free: 3.781 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.228e-05/0.5184, allocations: 109.4 kB / 0.7879 GB, free: 3.656 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006197/0.519, allocations: 432.4 kB / 0.7883 GB, free: 19.45 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.897e-05/0.5191, allocations: 35.11 kB / 0.7883 GB, free: 19.41 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001746/0.5193, allocations: 282.2 kB / 0.7886 GB, free: 19.18 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001166/0.5194, allocations: 184.4 kB / 0.7887 GB, free: 19.04 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002136/0.5196, allocations: 117.9 kB / 0.7889 GB, free: 18.98 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001341/0.5197, allocations: 372.6 kB / 0.7892 GB, free: 18.64 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008339/0.5206, allocations: 301.3 kB / 0.7895 GB, free: 18.55 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008885/0.5215, allocations: 442.2 kB / 0.7899 GB, free: 18.31 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001671/0.5232, allocations: 0.7011 MB / 0.7906 GB, free: 17.96 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/0.5232, allocations: 0 / 0.7906 GB, free: 17.96 MB / 0.5762 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002012/0.5252, allocations: 0.8181 MB / 0.7914 GB, free: 17.68 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.5252, allocations: 10.22 kB / 0.7914 GB, free: 17.68 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.5252, allocations: 3 kB / 0.7914 GB, free: 17.68 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.5253, allocations: 6.375 kB / 0.7914 GB, free: 17.68 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008751/0.5261, allocations: 184.3 kB / 0.7916 GB, free: 17.67 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.221e-05/0.5262, allocations: 6.641 kB / 0.7916 GB, free: 17.67 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006703/0.5268, allocations: 104.1 kB / 0.7917 GB, free: 17.63 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.529e-05/0.5269, allocations: 30.62 kB / 0.7917 GB, free: 17.63 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): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003052/0.5272, allocations: 215.1 kB / 0.7919 GB, free: 17.46 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001063/0.5273, allocations: 52.77 kB / 0.792 GB, free: 17.43 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002179/0.5295, allocations: 0.8883 MB / 0.7929 GB, free: 17.11 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.356e-06/0.5296, allocations: 7.344 kB / 0.7929 GB, free: 17.11 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.219e-06/0.5296, allocations: 3.562 kB / 0.7929 GB, free: 17.11 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.5296, allocations: 7.125 kB / 0.7929 GB, free: 17.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002812/0.5324, allocations: 1.588 MB / 0.7944 GB, free: 16.31 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.5324, allocations: 0.625 kB / 0.7944 GB, free: 16.31 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007641/0.5332, allocations: 152 kB / 0.7946 GB, free: 16.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.274e-06/0.5332, allocations: 3.438 kB / 0.7946 GB, free: 16.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.724e-05/0.5333, allocations: 21.7 kB / 0.7946 GB, free: 16.29 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.78e-06/0.5333, allocations: 4.719 kB / 0.7946 GB, free: 16.29 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.5333, allocations: 0 / 0.7946 GB, free: 16.29 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001905/0.5352, allocations: 0.8574 MB / 0.7954 GB, free: 15.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002566/0.5355, allocations: 209.9 kB / 0.7956 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.446e-05/0.5356, allocations: 15.98 kB / 0.7957 GB, free: 15.72 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005893/0.5362, allocations: 57.08 kB / 0.7957 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001064/0.5363, allocations: 43.2 kB / 0.7958 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.252e-05/0.5363, allocations: 22.92 kB / 0.7958 GB, free: 15.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003522/0.5367, allocations: 300.1 kB / 0.7961 GB, free: 15.56 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5367, allocations: 0 / 0.7961 GB, free: 15.56 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007864/0.5375, allocations: 232.5 kB / 0.7963 GB, free: 15.49 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 (66): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001107/0.5386, allocations: 0.5048 MB / 0.7968 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002034/0.5407, allocations: 0.7217 MB / 0.7975 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.5407, allocations: 0.5938 kB / 0.7975 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001033/0.5417, allocations: 389.8 kB / 0.7979 GB, free: 14.99 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005011/0.5422, allocations: 68.23 kB / 0.7979 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002298/0.5445, allocations: 1.235 MB / 0.7991 GB, free: 14.34 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004568/0.545, allocations: 0.8762 MB / 0.8 GB, free: 13.62 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0006184/0.5456, allocations: 160 kB / 0.8001 GB, free: 13.57 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002743/0.5459, allocations: 70.19 kB / 0.8002 GB, free: 13.56 MB / 0.5762 GB Notification: Performance of SimCode: time 2.3e-07/0.5459, allocations: 0 / 0.8002 GB, free: 13.56 MB / 0.5762 GB Notification: Performance of Templates: time 0.01515/0.5611, allocations: 8.692 MB / 0.8087 GB, free: 11.44 MB / 0.5762 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.makefile (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.sim & ./BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe 2>&1)