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.0009076/0.0009076, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0008986/0.0008986, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.16/1.16, allocations: 223.2 MB / 239.9 MB, free: 5.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001629/0.001629, allocations: 262.9 kB / 291.3 MB, free: 1.934 MB / 238.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:5:3-5:34:writable] Warning: Got element f_alp that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_lay but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Got element f_lay that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_loss but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Got element f_loss that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_pv but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Got element f_pv that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:2:1-34:14:writable] Warning: f_pv was referenced in the package.order file, but was not found in package.mo, f_pv/package.mo or f_pv.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7116/0.7116, allocations: 144.6 MB / 487 MB, free: 7.199 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003638/0.0003639, allocations: 15 kB / 0.5683 GB, free: 38.23 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.1219, allocations: 83.09 MB / 0.6494 GB, free: 3.656 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP): time 0.003334/0.1253, allocations: 3.048 MB / 0.6524 GB, free: 0.5898 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.003945/0.1293, allocations: 3.122 MB / 0.6554 GB, free: 13.48 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000226/0.1295, allocations: 7.938 kB / 0.6555 GB, free: 13.47 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002909/0.1298, allocations: 99.92 kB / 0.6555 GB, free: 13.37 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009012/0.1307, allocations: 397.3 kB / 0.6559 GB, free: 12.98 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005786/0.1313, allocations: 286.2 kB / 0.6562 GB, free: 12.71 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004739/0.1318, allocations: 476.9 kB / 0.6567 GB, free: 12.25 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001986/0.132, allocations: 146.4 kB / 0.6568 GB, free: 12.1 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002837/0.1323, allocations: 275.8 kB / 0.6571 GB, free: 11.83 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003405/0.1327, allocations: 264.3 kB / 0.6573 GB, free: 11.57 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.106e-05/0.1327, allocations: 31.88 kB / 0.6573 GB, free: 11.54 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006382/0.1334, allocations: 441.1 kB / 0.6578 GB, free: 11.11 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001231/0.1335, allocations: 119.5 kB / 0.6579 GB, free: 11 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 9.255e-05/0.1336, allocations: 125.4 kB / 0.658 GB, free: 10.87 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007276/0.1343, allocations: 0.8116 MB / 0.6588 GB, free: 10.05 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.255e-06/0.1343, allocations: 0 / 0.6588 GB, free: 10.05 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1344, allocations: 2.531 kB / 0.6588 GB, free: 10.05 MB / 462.1 MB Notification: Performance of Transformations before backend: time 6.331e-06/0.1344, allocations: 0 / 0.6588 GB, free: 10.05 MB / 462.1 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.001658/0.136, allocations: 0.8952 MB / 0.6597 GB, free: 9.113 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.235e-05/0.1361, allocations: 8.031 kB / 0.6597 GB, free: 9.105 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002897/0.139, allocations: 0.5872 MB / 0.6602 GB, free: 8.523 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001289/0.1403, allocations: 0.6147 MB / 0.6608 GB, free: 7.867 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001084/0.1404, allocations: 118.1 kB / 0.661 GB, free: 7.734 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.373e-05/0.1405, allocations: 44 kB / 0.661 GB, free: 7.691 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001243/0.1417, allocations: 0.6752 MB / 0.6617 GB, free: 6.996 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.1417, allocations: 0 / 0.6617 GB, free: 6.996 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.548e-05/0.1418, allocations: 20 kB / 0.6617 GB, free: 6.977 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.216e-05/0.1418, allocations: 16 kB / 0.6617 GB, free: 6.961 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001522/0.1434, allocations: 0.7026 MB / 0.6624 GB, free: 6.262 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003088/0.1465, allocations: 1.875 MB / 0.6642 GB, free: 4.328 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002379/0.1488, allocations: 0.848 MB / 0.665 GB, free: 3.473 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001544/0.1504, allocations: 1.761 MB / 0.6668 GB, free: 1.324 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008236/0.1512, allocations: 430.9 kB / 0.6672 GB, free: 0.8945 MB / 462.1 MB Notification: Performance of pre-optimization done (n=56): time 1.943e-06/0.1513, allocations: 0 / 0.6672 GB, free: 0.8945 MB / 462.1 MB Notification: Performance of matching and sorting (n=56): time 0.006044/0.1573, allocations: 1.508 MB / 0.6686 GB, free: 15.36 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.57e-05/0.1574, allocations: 111.4 kB / 0.6687 GB, free: 15.22 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003834/0.1578, allocations: 398 kB / 0.6691 GB, free: 14.83 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 5.999e-05/0.1578, allocations: 37.7 kB / 0.6692 GB, free: 14.79 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001725/0.158, allocations: 268.6 kB / 0.6694 GB, free: 14.52 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001368/0.1582, allocations: 193.2 kB / 0.6696 GB, free: 14.32 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.733e-05/0.1582, allocations: 12 kB / 0.6696 GB, free: 14.31 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.1583, allocations: 362.8 kB / 0.67 GB, free: 13.95 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006715/0.159, allocations: 293.1 kB / 0.6702 GB, free: 13.66 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007493/0.1598, allocations: 433.4 kB / 0.6707 GB, free: 13.19 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006997/0.1605, allocations: 326 kB / 0.671 GB, free: 12.88 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1605, allocations: 0 / 0.671 GB, free: 12.88 MB / 478.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003784/0.1643, allocations: 1.073 MB / 0.672 GB, free: 11.79 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.1643, allocations: 8 kB / 0.672 GB, free: 11.78 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.1643, allocations: 7.984 kB / 0.672 GB, free: 11.77 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002837/0.1672, allocations: 384.8 kB / 0.6724 GB, free: 11.39 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000715/0.1679, allocations: 163.7 kB / 0.6726 GB, free: 11.23 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003361/0.1713, allocations: 2.05 MB / 0.6746 GB, free: 9.043 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006162/0.1719, allocations: 95.36 kB / 0.6746 GB, free: 8.949 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.714e-05/0.172, allocations: 36.03 kB / 0.6747 GB, free: 8.914 MB / 478.1 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 ($whenCondition1,$PRE.weatherData.weatherData.conTim.tNext,weatherData.weatherData.conTim.tNext,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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {3} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002574/0.1722, allocations: 206.1 kB / 0.6749 GB, free: 8.703 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.771e-05/0.1723, allocations: 51.42 kB / 0.6749 GB, free: 8.652 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00287/0.1752, allocations: 1.081 MB / 0.676 GB, free: 7.559 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.1752, allocations: 4 kB / 0.676 GB, free: 7.555 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.1752, allocations: 0 / 0.676 GB, free: 7.555 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.1752, allocations: 11.94 kB / 0.676 GB, free: 7.543 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006956/0.1759, allocations: 0.7133 MB / 0.6767 GB, free: 6.777 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.1759, allocations: 0 / 0.6767 GB, free: 6.777 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006773/0.1766, allocations: 147.8 kB / 0.6768 GB, free: 6.633 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001073/0.1777, allocations: 192.6 kB / 0.677 GB, free: 6.441 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.929e-05/0.1778, allocations: 19.98 kB / 0.677 GB, free: 6.422 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002314/0.1801, allocations: 1.79 MB / 0.6788 GB, free: 4.496 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1801, allocations: 4 kB / 0.6788 GB, free: 4.492 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00245/0.1825, allocations: 0.9573 MB / 0.6797 GB, free: 3.512 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002547/0.1828, allocations: 212.2 kB / 0.6799 GB, free: 3.285 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.23e-05/0.1829, allocations: 16 kB / 0.6799 GB, free: 3.27 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000519/0.1834, allocations: 59.94 kB / 0.68 GB, free: 3.211 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.278e-05/0.1835, allocations: 48.58 kB / 0.68 GB, free: 3.164 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.032e-05/0.1836, allocations: 19.98 kB / 0.6801 GB, free: 3.145 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0002686/0.1839, allocations: 283.1 kB / 0.6803 GB, free: 2.875 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.513e-06/0.1839, allocations: 0 / 0.6803 GB, free: 2.875 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0006254/0.1845, allocations: 239.6 kB / 0.6806 GB, free: 2.641 MB / 478.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001017/0.1855, allocations: 0.5105 MB / 0.6811 GB, free: 2.27 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001964/0.1875, allocations: 0.8835 MB / 0.6819 GB, free: 1.371 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1875, allocations: 0 / 0.6819 GB, free: 1.371 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00112/0.1886, allocations: 0.5531 MB / 0.6825 GB, free: 0.8008 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002741/0.1889, allocations: 55.39 kB / 0.6825 GB, free: 0.7461 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002039/0.191, allocations: 1.503 MB / 0.684 GB, free: 15.22 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004396/0.1914, allocations: 0.8853 MB / 0.6848 GB, free: 14.3 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0006586/0.1921, allocations: 156.4 kB / 0.685 GB, free: 14.15 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002173/0.1923, allocations: 75.38 kB / 0.6851 GB, free: 14.08 MB / 494.1 MB Notification: Performance of SimCode: time 6.62e-07/0.1923, allocations: 0 / 0.6851 GB, free: 14.08 MB / 494.1 MB Notification: Performance of Templates: time 0.01488/0.2072, allocations: 9.318 MB / 0.6942 GB, free: 4.82 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: