Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.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: "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimpleMPP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimpleMPP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006073/0.00608, allocations: 95.3 kB / 15.73 MB, free: 6.484 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.00151/0.00151, allocations: 191.2 kB / 16.67 MB, free: 6.391 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.466/1.466, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003567/0.003567, allocations: 286.5 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 1.055/1.055, allocations: 169.3 MB / 0.4983 GB, free: 13.84 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00288/0.00288, allocations: 99.83 kB / 0.6809 GB, free: 40 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1656/0.1685, allocations: 86.97 MB / 0.7659 GB, free: 8.996 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP): time 0.005742/0.1742, allocations: 3.735 MB / 0.7695 GB, free: 5.242 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.00575/0.18, allocations: 3.438 MB / 0.7729 GB, free: 1.785 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004825/0.1805, allocations: 11.94 kB / 0.7729 GB, free: 1.773 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.0006141/0.1812, allocations: 122.9 kB / 0.773 GB, free: 1.652 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001735/0.1829, allocations: 461.4 kB / 0.7734 GB, free: 1.199 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000974/0.1839, allocations: 354.9 kB / 0.7738 GB, free: 0.8555 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001047/0.185, allocations: 0.7527 MB / 0.7745 GB, free: 104 kB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.3257/0.5106, allocations: 187.1 kB / 0.7747 GB, free: 8.301 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005715/0.5113, allocations: 305.5 kB / 0.775 GB, free: 8.289 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004816/0.5118, allocations: 321.8 kB / 0.7753 GB, free: 8.227 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001202/0.5119, allocations: 64.84 kB / 0.7754 GB, free: 8.227 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009939/0.5129, allocations: 0.4969 MB / 0.7758 GB, free: 8.227 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001583/0.5131, allocations: 166 kB / 0.776 GB, free: 8.203 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002686/0.5133, allocations: 327.5 kB / 0.7763 GB, free: 8.105 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001495/0.5148, allocations: 1.091 MB / 0.7774 GB, free: 7.961 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.5148, allocations: 2.109 kB / 0.7774 GB, free: 7.961 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.502e-06/0.5149, allocations: 0 / 0.7774 GB, free: 7.961 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.05e-05/0.5149, allocations: 0 / 0.7774 GB, free: 7.961 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001928/0.5168, allocations: 1.026 MB / 0.7784 GB, free: 7.301 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.5169, allocations: 10.25 kB / 0.7784 GB, free: 7.301 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001082/0.517, allocations: 88.44 kB / 0.7785 GB, free: 7.262 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003541/0.5205, allocations: 0.6221 MB / 0.7791 GB, free: 7.223 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001308/0.5218, allocations: 0.6288 MB / 0.7797 GB, free: 6.953 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001086/0.522, allocations: 120.1 kB / 0.7798 GB, free: 6.859 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.682e-05/0.5221, allocations: 52.88 kB / 0.7799 GB, free: 6.852 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001537/0.5236, allocations: 0.7022 MB / 0.7805 GB, free: 6.77 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/0.5236, allocations: 0 / 0.7805 GB, free: 6.77 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.137e-05/0.5237, allocations: 21.78 kB / 0.7806 GB, free: 6.77 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.463e-05/0.5237, allocations: 12.25 kB / 0.7806 GB, free: 6.77 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002078/0.5258, allocations: 0.7598 MB / 0.7813 GB, free: 6.754 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003705/0.5295, allocations: 1.797 MB / 0.7831 GB, free: 6.375 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003061/0.5326, allocations: 0.8465 MB / 0.7839 GB, free: 6.141 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009222/0.5335, allocations: 370 kB / 0.7843 GB, free: 6.012 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002042/0.5356, allocations: 1.765 MB / 0.786 GB, free: 20.03 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001159/0.5368, allocations: 441.9 kB / 0.7864 GB, free: 19.87 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=55): time 3.347e-06/0.5368, allocations: 0 / 0.7864 GB, free: 19.87 MB / 0.5762 GB Notification: Performance of matching and sorting (n=55): time 0.006899/0.5437, allocations: 1.624 MB / 0.788 GB, free: 19.39 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.101e-05/0.5438, allocations: 110.9 kB / 0.7881 GB, free: 19.26 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004997/0.5443, allocations: 421.1 kB / 0.7885 GB, free: 19.05 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.863e-05/0.5444, allocations: 35.83 kB / 0.7885 GB, free: 19.01 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002/0.5446, allocations: 279 kB / 0.7888 GB, free: 18.79 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001511/0.5448, allocations: 189.4 kB / 0.789 GB, free: 18.64 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002101/0.545, allocations: 126.3 kB / 0.7891 GB, free: 18.58 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001642/0.5451, allocations: 358.2 kB / 0.7894 GB, free: 18.25 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000826/0.546, allocations: 310 kB / 0.7897 GB, free: 18.15 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009029/0.5469, allocations: 448.1 kB / 0.7902 GB, free: 17.9 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001704/0.5486, allocations: 0.7145 MB / 0.7909 GB, free: 17.55 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.838e-06/0.5486, allocations: 4 kB / 0.7909 GB, free: 17.55 MB / 0.5762 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.003773/0.5524, allocations: 1.042 MB / 0.7919 GB, free: 17.25 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.146e-05/0.5524, allocations: 6.75 kB / 0.7919 GB, free: 17.25 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.5525, allocations: 6.172 kB / 0.7919 GB, free: 17.25 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008196/0.5533, allocations: 148.7 kB / 0.792 GB, free: 17.21 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008353/0.5541, allocations: 156.2 kB / 0.7922 GB, free: 17.21 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005085/0.5592, allocations: 2.106 MB / 0.7942 GB, free: 15.63 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009785/0.5602, allocations: 104.7 kB / 0.7943 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.217e-05/0.5603, allocations: 30.97 kB / 0.7944 GB, free: 15.59 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): 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,1)} Notification: Performance of prepare postOptimizeDAE: time 0.000394/0.5607, allocations: 212.7 kB / 0.7946 GB, free: 15.42 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001437/0.5609, allocations: 61 kB / 0.7946 GB, free: 15.38 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003443/0.5643, allocations: 1.047 MB / 0.7956 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/0.5643, allocations: 10.67 kB / 0.7957 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.5643, allocations: 1.312 kB / 0.7957 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.037e-05/0.5644, allocations: 3.141 kB / 0.7957 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004273/0.5686, allocations: 1.755 MB / 0.7974 GB, free: 14.19 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.117e-06/0.5687, allocations: 1.062 kB / 0.7974 GB, free: 14.19 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007902/0.5695, allocations: 142.4 kB / 0.7975 GB, free: 14.19 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006324/0.5701, allocations: 117.6 kB / 0.7976 GB, free: 14.16 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.486e-05/0.5702, allocations: 18.55 kB / 0.7976 GB, free: 14.15 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003812/0.574, allocations: 1.914 MB / 0.7995 GB, free: 12.55 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.574, allocations: 1.25 kB / 0.7995 GB, free: 12.55 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00337/0.5774, allocations: 1.014 MB / 0.8005 GB, free: 12.12 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003376/0.5777, allocations: 211.1 kB / 0.8007 GB, free: 11.96 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.191e-05/0.5778, allocations: 15.12 kB / 0.8007 GB, free: 11.95 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006749/0.5785, allocations: 54.25 kB / 0.8008 GB, free: 11.94 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001317/0.5787, allocations: 48.08 kB / 0.8008 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.445e-05/0.5787, allocations: 27.52 kB / 0.8008 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004021/0.5792, allocations: 291.4 kB / 0.8011 GB, free: 11.78 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5792, allocations: 0.9375 kB / 0.8011 GB, free: 11.78 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001063/0.5802, allocations: 242.3 kB / 0.8014 GB, free: 11.71 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): 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005179/0.5854, allocations: 1.964 MB / 0.8033 GB, free: 10.66 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002469/0.5879, allocations: 0.8614 MB / 0.8041 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.5879, allocations: 0 / 0.8041 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001213/0.5891, allocations: 0.5254 MB / 0.8046 GB, free: 10.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000656/0.5898, allocations: 78.11 kB / 0.8047 GB, free: 10.06 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01422/0.604, allocations: 5.793 MB / 0.8104 GB, free: 7.137 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006032/0.6047, allocations: 0.8777 MB / 0.8112 GB, free: 6.422 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0007008/0.6054, allocations: 147.5 kB / 0.8114 GB, free: 6.379 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004278/0.6058, allocations: 224.2 kB / 0.8116 GB, free: 6.23 MB / 0.5762 GB Notification: Performance of SimCode: time 1.062e-06/0.6058, allocations: 0 / 0.8116 GB, free: 6.23 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04972/0.6556, allocations: 16.08 MB / 0.8273 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.71/13.37, allocations: 12.92 kB / 0.8273 GB, free: 14.97 MB / 0.5919 GB (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimpleMPP_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimpleMPP.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.pipe 2>&1)