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.001207/0.001207, allocations: 105.6 kB / 16.36 MB, free: 6.012 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.001213/0.001213, allocations: 195.2 kB / 17.31 MB, free: 5.613 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.252/1.252, allocations: 222.9 MB / 241 MB, free: 4.207 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002/0.002, allocations: 279 kB / 291.4 MB, free: 1.809 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9041/0.9041, allocations: 169.3 MB / 0.4989 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001662/0.001662, allocations: 101.5 kB / 0.5967 GB, free: 27.77 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1355/0.1372, allocations: 86.97 MB / 0.6816 GB, free: 15.97 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP): time 0.004504/0.1417, allocations: 3.685 MB / 0.6852 GB, free: 12.28 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004184/0.1459, allocations: 3.474 MB / 0.6886 GB, free: 8.789 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001805/0.1461, allocations: 11.94 kB / 0.6886 GB, free: 8.777 MB / 494.1 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.00042/0.1465, allocations: 119 kB / 0.6887 GB, free: 8.66 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000851/0.1474, allocations: 453.5 kB / 0.6891 GB, free: 8.215 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006828/0.1481, allocations: 395.2 kB / 0.6895 GB, free: 7.832 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006556/0.1488, allocations: 0.8112 MB / 0.6903 GB, free: 7.02 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002832/0.1491, allocations: 214.5 kB / 0.6905 GB, free: 6.805 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003482/0.1494, allocations: 322.9 kB / 0.6908 GB, free: 6.488 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005183/0.1499, allocations: 346.6 kB / 0.6912 GB, free: 6.148 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.707e-05/0.15, allocations: 72 kB / 0.6912 GB, free: 6.078 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007929/0.1508, allocations: 0.4995 MB / 0.6917 GB, free: 5.578 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002048/0.1511, allocations: 179.4 kB / 0.6919 GB, free: 5.402 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003353/0.1514, allocations: 326.4 kB / 0.6922 GB, free: 5.082 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001196/0.1526, allocations: 1.122 MB / 0.6933 GB, free: 3.957 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.1526, allocations: 0 / 0.6933 GB, free: 3.957 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1526, allocations: 0 / 0.6933 GB, free: 3.957 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.011e-05/0.1526, allocations: 0 / 0.6933 GB, free: 3.957 MB / 494.1 MB 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.002094/0.1547, allocations: 1.027 MB / 0.6943 GB, free: 2.879 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/0.1548, allocations: 12.03 kB / 0.6943 GB, free: 2.867 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002999/0.1578, allocations: 0.5582 MB / 0.6948 GB, free: 2.309 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001252/0.159, allocations: 0.6312 MB / 0.6955 GB, free: 1.641 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001098/0.1592, allocations: 118.2 kB / 0.6956 GB, free: 1.508 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.991e-05/0.1593, allocations: 52 kB / 0.6956 GB, free: 1.457 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001308/0.1606, allocations: 0.6831 MB / 0.6963 GB, free: 0.7578 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.1606, allocations: 0 / 0.6963 GB, free: 0.7578 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.865e-05/0.1607, allocations: 16 kB / 0.6963 GB, free: 0.7422 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.1607, allocations: 12 kB / 0.6963 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001559/0.1622, allocations: 0.7103 MB / 0.697 GB, free: 16 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003142/0.1654, allocations: 1.859 MB / 0.6988 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002498/0.1679, allocations: 0.8286 MB / 0.6996 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000772/0.1687, allocations: 354.3 kB / 0.7 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001636/0.1703, allocations: 1.765 MB / 0.7017 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008627/0.1712, allocations: 430.8 kB / 0.7021 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=56): time 1.943e-06/0.1712, allocations: 0 / 0.7021 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of matching and sorting (n=56): time 0.006613/0.1778, allocations: 1.507 MB / 0.7036 GB, free: 8.797 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.63e-05/0.1779, allocations: 111.4 kB / 0.7037 GB, free: 8.664 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004435/0.1784, allocations: 397.9 kB / 0.7041 GB, free: 8.27 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.615e-05/0.1784, allocations: 37.7 kB / 0.7041 GB, free: 8.227 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001705/0.1786, allocations: 268.8 kB / 0.7044 GB, free: 7.957 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001333/0.1787, allocations: 185.3 kB / 0.7045 GB, free: 7.773 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002088/0.179, allocations: 130.2 kB / 0.7047 GB, free: 7.641 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001181/0.1791, allocations: 358.8 kB / 0.705 GB, free: 7.281 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006867/0.1798, allocations: 285.1 kB / 0.7053 GB, free: 7 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007814/0.1806, allocations: 443.3 kB / 0.7057 GB, free: 6.52 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001431/0.182, allocations: 0.6911 MB / 0.7064 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.182, allocations: 0 / 0.7064 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004191/0.1862, allocations: 1.077 MB / 0.7074 GB, free: 4.695 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.155e-05/0.1863, allocations: 11.98 kB / 0.7074 GB, free: 4.684 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.1863, allocations: 4 kB / 0.7074 GB, free: 4.68 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003219/0.1895, allocations: 376.7 kB / 0.7078 GB, free: 4.309 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007886/0.1903, allocations: 163.7 kB / 0.708 GB, free: 4.148 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003783/0.1941, allocations: 2.168 MB / 0.7101 GB, free: 1.832 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000732/0.1949, allocations: 87.38 kB / 0.7102 GB, free: 1.746 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.295e-05/0.1949, allocations: 31.92 kB / 0.7102 GB, free: 1.715 MB / 0.4981 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.000322/0.1953, allocations: 215.7 kB / 0.7104 GB, free: 1.496 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001052/0.1954, allocations: 47.44 kB / 0.7104 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002989/0.1984, allocations: 1.062 MB / 0.7115 GB, free: 384 kB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.325e-06/0.1984, allocations: 11.94 kB / 0.7115 GB, free: 372 kB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.1984, allocations: 0 / 0.7115 GB, free: 372 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.305e-06/0.1984, allocations: 3.984 kB / 0.7115 GB, free: 368 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003527/0.2019, allocations: 1.773 MB / 0.7132 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.2019, allocations: 0 / 0.7132 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007223/0.2027, allocations: 151.8 kB / 0.7134 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009192/0.2036, allocations: 140.7 kB / 0.7135 GB, free: 14.24 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.113e-05/0.2037, allocations: 23.91 kB / 0.7135 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002593/0.2063, allocations: 1.928 MB / 0.7154 GB, free: 12.14 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.2063, allocations: 0 / 0.7154 GB, free: 12.14 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002703/0.209, allocations: 1.027 MB / 0.7164 GB, free: 11.09 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003145/0.2093, allocations: 208.2 kB / 0.7166 GB, free: 10.87 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.141e-05/0.2094, allocations: 12 kB / 0.7166 GB, free: 10.86 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005719/0.21, allocations: 53.31 kB / 0.7167 GB, free: 10.8 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001196/0.2101, allocations: 44.59 kB / 0.7167 GB, free: 10.76 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.2e-05/0.2102, allocations: 27.97 kB / 0.7167 GB, free: 10.73 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003801/0.2106, allocations: 287.1 kB / 0.717 GB, free: 10.46 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2106, allocations: 0 / 0.717 GB, free: 10.46 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0008295/0.2114, allocations: 244.8 kB / 0.7172 GB, free: 10.22 MB / 0.5137 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.001195/0.2126, allocations: 0.492 MB / 0.7177 GB, free: 9.863 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002155/0.2148, allocations: 0.8913 MB / 0.7186 GB, free: 8.961 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2148, allocations: 0 / 0.7186 GB, free: 8.961 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001053/0.2159, allocations: 0.5374 MB / 0.7191 GB, free: 8.41 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004494/0.2163, allocations: 75.66 kB / 0.7192 GB, free: 8.34 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002133/0.2185, allocations: 1.215 MB / 0.7204 GB, free: 7.098 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004496/0.2189, allocations: 0.8812 MB / 0.7212 GB, free: 6.191 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0005236/0.2195, allocations: 152.5 kB / 0.7214 GB, free: 6.039 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002159/0.2197, allocations: 71.39 kB / 0.7215 GB, free: 5.969 MB / 0.5137 GB Notification: Performance of SimCode: time 2.8e-07/0.2197, allocations: 3.938 kB / 0.7215 GB, free: 5.965 MB / 0.5137 GB Notification: Performance of Templates: time 0.01585/0.2355, allocations: 10.02 MB / 0.7312 GB, free: 12.01 MB / 0.5294 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.pipe 2>&1)