Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.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.PVModuleComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex") translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008054/0.0008054, allocations: 98.92 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.000821/0.0008211, 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.165/1.165, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001687/0.001687, allocations: 266.9 kB / 291.2 MB, free: 2 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.7289/0.7289, allocations: 144.6 MB / 487 MB, free: 7.145 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003581/0.0003582, allocations: 9.906 kB / 0.5683 GB, free: 38.91 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1208, allocations: 83.08 MB / 0.6494 GB, free: 3.711 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex): time 0.003323/0.1242, allocations: 3.048 MB / 0.6524 GB, free: 0.6484 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.003913/0.1281, allocations: 3.109 MB / 0.6554 GB, free: 13.54 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002066/0.1284, allocations: 7.938 kB / 0.6554 GB, free: 13.54 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002926/0.1287, allocations: 96.11 kB / 0.6555 GB, free: 13.44 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008194/0.1295, allocations: 397.8 kB / 0.6559 GB, free: 13.05 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005636/0.1301, allocations: 272 kB / 0.6562 GB, free: 12.79 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004436/0.1305, allocations: 456.1 kB / 0.6566 GB, free: 12.35 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000209/0.1307, allocations: 151.9 kB / 0.6567 GB, free: 12.2 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002634/0.131, allocations: 247 kB / 0.657 GB, free: 11.96 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003261/0.1313, allocations: 255.8 kB / 0.6572 GB, free: 11.71 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.128e-05/0.1314, allocations: 21.72 kB / 0.6572 GB, free: 11.69 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006316/0.132, allocations: 439.3 kB / 0.6577 GB, free: 11.26 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000121/0.1322, allocations: 115.5 kB / 0.6578 GB, free: 11.14 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 9.554e-05/0.1323, allocations: 126.1 kB / 0.6579 GB, free: 11.02 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000693/0.133, allocations: 0.7835 MB / 0.6587 GB, free: 10.23 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.324e-06/0.133, allocations: 0.875 kB / 0.6587 GB, free: 10.23 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.133, allocations: 0 / 0.6587 GB, free: 10.23 MB / 462.1 MB Notification: Performance of Transformations before backend: time 6.082e-06/0.133, allocations: 0.75 kB / 0.6587 GB, free: 10.23 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.00149/0.1345, allocations: 0.8757 MB / 0.6595 GB, free: 9.309 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.79e-05/0.1345, allocations: 10.91 kB / 0.6595 GB, free: 9.301 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002835/0.1374, allocations: 0.5793 MB / 0.6601 GB, free: 8.723 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001202/0.1386, allocations: 0.6146 MB / 0.6607 GB, free: 8.066 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001117/0.1387, allocations: 122.1 kB / 0.6608 GB, free: 7.93 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.988e-05/0.1388, allocations: 44 kB / 0.6609 GB, free: 7.887 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00119/0.14, allocations: 0.6635 MB / 0.6615 GB, free: 7.203 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.14, allocations: 0 / 0.6615 GB, free: 7.203 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.003e-05/0.1401, allocations: 20 kB / 0.6615 GB, free: 7.184 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.282e-05/0.1401, allocations: 12 kB / 0.6615 GB, free: 7.172 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001541/0.1416, allocations: 0.6908 MB / 0.6622 GB, free: 6.484 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002996/0.1446, allocations: 1.77 MB / 0.6639 GB, free: 4.656 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002387/0.147, allocations: 0.8284 MB / 0.6647 GB, free: 3.82 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001487/0.1485, allocations: 1.757 MB / 0.6665 GB, free: 1.676 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008093/0.1494, allocations: 397.1 kB / 0.6668 GB, free: 1.277 MB / 462.1 MB Notification: Performance of pre-optimization done (n=53): time 2.534e-06/0.1494, allocations: 3.938 kB / 0.6668 GB, free: 1.273 MB / 462.1 MB Notification: Performance of matching and sorting (n=53): time 0.002132/0.1515, allocations: 0.9394 MB / 0.6678 GB, free: 336 kB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.608e-05/0.1516, allocations: 115.2 kB / 0.6679 GB, free: 196 kB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004323/0.152, allocations: 414.5 kB / 0.6683 GB, free: 15.78 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 5.078e-05/0.1521, allocations: 37.7 kB / 0.6683 GB, free: 15.73 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001738/0.1523, allocations: 276.4 kB / 0.6686 GB, free: 15.46 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001255/0.1524, allocations: 177.4 kB / 0.6687 GB, free: 15.29 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.663e-05/0.1524, allocations: 12 kB / 0.6687 GB, free: 15.27 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.1526, allocations: 362.8 kB / 0.6691 GB, free: 14.91 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006339/0.1532, allocations: 276.9 kB / 0.6694 GB, free: 14.64 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007129/0.1539, allocations: 408.6 kB / 0.6697 GB, free: 14.19 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000663/0.1546, allocations: 302 kB / 0.67 GB, free: 13.9 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.818e-06/0.1546, allocations: 0 / 0.67 GB, free: 13.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001556/0.1562, allocations: 0.7677 MB / 0.6708 GB, free: 13.12 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.1562, allocations: 8 kB / 0.6708 GB, free: 13.12 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.1562, allocations: 0 / 0.6708 GB, free: 13.12 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.1562, allocations: 11.95 kB / 0.6708 GB, free: 13.11 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001388/0.1576, allocations: 251.9 kB / 0.671 GB, free: 12.86 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001361/0.159, allocations: 1.471 MB / 0.6725 GB, free: 11.25 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005927/0.1596, allocations: 99.62 kB / 0.6726 GB, free: 11.15 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.393e-05/0.1597, allocations: 27.98 kB / 0.6726 GB, free: 11.12 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 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002566/0.1599, allocations: 205.6 kB / 0.6728 GB, free: 10.91 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.509e-05/0.16, allocations: 51.34 kB / 0.6728 GB, free: 10.86 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002254/0.1623, allocations: 0.9463 MB / 0.6738 GB, free: 9.902 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/0.1623, allocations: 8 kB / 0.6738 GB, free: 9.895 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-06/0.1623, allocations: 4 kB / 0.6738 GB, free: 9.891 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.1623, allocations: 3.984 kB / 0.6738 GB, free: 9.887 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006728/0.163, allocations: 0.6846 MB / 0.6745 GB, free: 9.152 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.163, allocations: 0 / 0.6745 GB, free: 9.152 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006619/0.1637, allocations: 147.8 kB / 0.6746 GB, free: 9.008 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004114/0.1641, allocations: 64.8 kB / 0.6747 GB, free: 8.941 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.374e-05/0.1641, allocations: 15.98 kB / 0.6747 GB, free: 8.926 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001242/0.1654, allocations: 1.485 MB / 0.6761 GB, free: 7.301 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.1654, allocations: 3.984 kB / 0.6761 GB, free: 7.297 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001878/0.1673, allocations: 0.8333 MB / 0.6769 GB, free: 6.438 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002521/0.1676, allocations: 208.2 kB / 0.6771 GB, free: 6.215 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.886e-05/0.1676, allocations: 15.94 kB / 0.6772 GB, free: 6.199 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004979/0.1681, allocations: 63.84 kB / 0.6772 GB, free: 6.137 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.894e-05/0.1682, allocations: 48.48 kB / 0.6773 GB, free: 6.09 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.194e-05/0.1683, allocations: 27.94 kB / 0.6773 GB, free: 6.062 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0002756/0.1686, allocations: 283.1 kB / 0.6776 GB, free: 5.789 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1686, allocations: 0 / 0.6776 GB, free: 5.789 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0006219/0.1692, allocations: 231.8 kB / 0.6778 GB, free: 5.562 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 (66): * Single equations (assignments): 64 * 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 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009839/0.1702, allocations: 0.4923 MB / 0.6783 GB, free: 5.211 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002145/0.1724, allocations: 0.7652 MB / 0.679 GB, free: 4.449 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1724, allocations: 3.938 kB / 0.679 GB, free: 4.445 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008893/0.1733, allocations: 0.5019 MB / 0.6795 GB, free: 3.926 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002924/0.1736, allocations: 57.94 kB / 0.6796 GB, free: 3.871 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001939/0.1755, allocations: 1.486 MB / 0.681 GB, free: 2.359 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003525/0.1759, allocations: 0.8931 MB / 0.6819 GB, free: 1.441 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.000631/0.1765, allocations: 144.5 kB / 0.682 GB, free: 1.301 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001978/0.1767, allocations: 67.39 kB / 0.6821 GB, free: 1.234 MB / 478.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1767, allocations: 0 / 0.6821 GB, free: 1.234 MB / 478.1 MB Notification: Performance of Templates: time 0.01204/0.1888, allocations: 8.134 MB / 0.69 GB, free: 9.16 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.makefile Environment - environmentSimulation: (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.sim & ./BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe 2>&1) Environment - environmentSimulation: