Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem") translateModel(BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9395/0.9395, allocations: 143.4 MB / 158.3 MB, free: 5.816 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001583/0.001583, allocations: 179.4 kB / 191.5 MB, free: 5.766 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.744/1.744, allocations: 223.2 MB / 447.7 MB, free: 4.797 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 92.31 kB / 0.5188 GB, free: 1.152 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001966/0.001966, allocations: 263.9 kB / 0.6005 GB, free: 48.74 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005241/0.0005243, allocations: 13.92 kB / 0.6928 GB, free: 59.67 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.212/0.2125, allocations: 82.79 MB / 0.7737 GB, free: 13.86 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7732/0.9858, allocations: 127 MB / 0.8977 GB, free: 22.01 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003078/0.9862, allocations: 85.02 kB / 0.8978 GB, free: 22.01 MB / 0.5417 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Interfaces/RadiationPort.mo:2:1-11:18:writable] Warning: Connector .BuildingSystems.Interfaces.RadiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). Notification: Performance of FrontEnd - DAE generated: time 2.218/3.204, allocations: 475.5 MB / 1.362 GB, free: 92.81 MB / 0.7292 GB Notification: Performance of FrontEnd: time 4.308e-06/3.204, allocations: 8 kB / 1.362 GB, free: 92.8 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 0.00181/3.206, allocations: 200 kB / 1.362 GB, free: 92.61 MB / 0.7292 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.03383/3.24, allocations: 13.81 MB / 1.376 GB, free: 78.77 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/3.24, allocations: 8.828 kB / 1.376 GB, free: 78.77 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008481/3.249, allocations: 2.293 MB / 1.378 GB, free: 76.45 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02869/3.277, allocations: 7.494 MB / 1.385 GB, free: 69.34 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002229/3.278, allocations: 134.4 kB / 1.386 GB, free: 69.2 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009677/3.279, allocations: 152 kB / 1.386 GB, free: 69.05 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01423/3.293, allocations: 11.88 MB / 1.397 GB, free: 57.12 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.079e-05/3.293, allocations: 7.906 kB / 1.397 GB, free: 57.11 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006217/3.294, allocations: 120 kB / 1.397 GB, free: 57 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.152e-05/3.294, allocations: 12 kB / 1.397 GB, free: 56.98 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01369/3.307, allocations: 11 MB / 1.408 GB, free: 45.98 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.9387/4.246, allocations: 17.34 MB / 1.425 GB, free: 241.4 MB / 0.7293 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02501/4.271, allocations: 10.92 MB / 1.436 GB, free: 241.3 MB / 0.7293 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002081/4.273, allocations: 2.196 MB / 1.438 GB, free: 238.9 MB / 0.7293 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01984/4.293, allocations: 11.42 MB / 1.449 GB, free: 237.7 MB / 0.7293 GB Notification: Performance of pre-optimization done (n=81): time 4.779e-06/4.293, allocations: 1.75 kB / 1.449 GB, free: 237.7 MB / 0.7293 GB Notification: Performance of matching and sorting (n=81): time 2.501/6.794, allocations: 44.68 MB / 1.493 GB, free: 213.3 MB / 0.7293 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/6.795, allocations: 166.9 kB / 1.493 GB, free: 213.1 MB / 0.7293 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.05612/6.851, allocations: 18.2 MB / 1.511 GB, free: 198.1 MB / 0.7293 GB Notification: Performance of collectPreVariables (initialization): time 0.004797/6.856, allocations: 139.9 kB / 1.511 GB, free: 198 MB / 0.7293 GB Notification: Performance of collectInitialEqns (initialization): time 0.01639/6.872, allocations: 8.694 MB / 1.519 GB, free: 189.9 MB / 0.7293 GB Notification: Performance of collectInitialBindings (initialization): time 0.003851/6.876, allocations: 365.3 kB / 1.52 GB, free: 189.6 MB / 0.7293 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003773/6.88, allocations: 108 kB / 1.52 GB, free: 189.5 MB / 0.7293 GB Notification: Performance of setup shared object (initialization): time 0.0001725/6.88, allocations: 340.4 kB / 1.52 GB, free: 189.2 MB / 0.7293 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01423/6.894, allocations: 10.17 MB / 1.53 GB, free: 180.7 MB / 0.7293 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01591/6.91, allocations: 10.31 MB / 1.54 GB, free: 171.1 MB / 0.7293 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01729/6.927, allocations: 10.18 MB / 1.55 GB, free: 160.9 MB / 0.7293 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.666e-05/6.928, allocations: 1.859 kB / 1.55 GB, free: 160.9 MB / 0.7293 GB Notification: Performance of matching and sorting (n=107) (initialization): time 1.075/8.003, allocations: 33.54 MB / 1.583 GB, free: 127.3 MB / 0.7293 GB Notification: Performance of prepare postOptimizeDAE: time 7.988e-05/8.003, allocations: 46.25 kB / 1.583 GB, free: 127.3 MB / 0.7293 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.662e-05/8.003, allocations: 4 kB / 1.583 GB, free: 127.3 MB / 0.7293 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00101/8.004, allocations: 204.8 kB / 1.583 GB, free: 127.1 MB / 0.7293 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001396/8.005, allocations: 241.5 kB / 1.583 GB, free: 126.9 MB / 0.7293 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005207/8.011, allocations: 2.285 MB / 1.585 GB, free: 124.5 MB / 0.7293 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007263/8.018, allocations: 272.6 kB / 1.586 GB, free: 124.2 MB / 0.7293 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005594/8.024, allocations: 1.043 MB / 1.587 GB, free: 123.2 MB / 0.7293 GB Warning: Assuming fixed start value for the following 4 variables: battery.E_discharged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy taken from the battery" type: Real battery.E_charged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy charged to the battery" type: Real battery.EBou:VARIABLE(start = (1.0 - battery.c) * battery.SOC_start * battery.E_nominal unit = "J" fixed = true ) "Bound charge of the battery" type: Real battery.EAva:VARIABLE(start = battery.c * battery.SOC_start * battery.E_nominal unit = "J" fixed = true ) "Available charge of the battery" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition2,$whenCondition1,$PRE.weatherData.weatherData.conTim.tNext,weatherData.weatherData.conTim.tNext,SLP_July.a,SLP_July.b,SLP_July.last,$PRE.SLP_July.nextEvent,SLP_July.nextEvent,SLP_July.nextEventScaled,radiation.outsidePolarCircle,Eload.local_reset,EGrid.local_reset,EField.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (101): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * 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 1} Notification: Performance of prepare postOptimizeDAE: time 0.01631/8.04, allocations: 5.015 MB / 1.592 GB, free: 118.2 MB / 0.7293 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.008844/8.049, allocations: 1.813 MB / 1.593 GB, free: 116.4 MB / 0.7293 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.684/10.73, allocations: 34.53 MB / 1.627 GB, free: 81.82 MB / 0.7293 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.26e-05/10.73, allocations: 8 kB / 1.627 GB, free: 81.81 MB / 0.7293 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/10.73, allocations: 2.812 kB / 1.627 GB, free: 81.81 MB / 0.7293 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.517e-05/10.73, allocations: 7.75 kB / 1.627 GB, free: 81.8 MB / 0.7293 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03135/10.76, allocations: 8.752 MB / 1.636 GB, free: 73.05 MB / 0.7293 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.97e-05/10.76, allocations: 0 / 1.636 GB, free: 73.05 MB / 0.7293 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001444/10.77, allocations: 217.4 kB / 1.636 GB, free: 72.84 MB / 0.7293 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008755/10.77, allocations: 168.2 kB / 1.636 GB, free: 72.68 MB / 0.7293 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002316/10.77, allocations: 308.8 kB / 1.636 GB, free: 72.38 MB / 0.7293 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003598/10.77, allocations: 2.047 MB / 1.638 GB, free: 70.21 MB / 0.7293 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.399e-06/10.77, allocations: 6.656 kB / 1.638 GB, free: 70.2 MB / 0.7293 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 2.993/13.76, allocations: 50.39 MB / 1.688 GB, free: 239.7 MB / 0.7293 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01305/13.78, allocations: 3.921 MB / 1.691 GB, free: 238.8 MB / 0.7293 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004703/13.78, allocations: 114.5 kB / 1.692 GB, free: 238.8 MB / 0.7293 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00557/13.79, allocations: 205.5 kB / 1.692 GB, free: 238.8 MB / 0.7293 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003801/13.79, allocations: 69.61 kB / 1.692 GB, free: 238.8 MB / 0.7293 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002949/13.79, allocations: 1.032 MB / 1.693 GB, free: 238.8 MB / 0.7293 GB Notification: Performance of sorting global known variables: time 0.03916/13.83, allocations: 14.72 MB / 1.707 GB, free: 236.1 MB / 0.7293 GB Notification: Performance of sort global known variables: time 9.01e-07/13.83, allocations: 0 / 1.707 GB, free: 236.1 MB / 0.7293 GB Notification: Performance of remove unused functions: time 0.004275/13.84, allocations: 0.7294 MB / 1.708 GB, free: 236.1 MB / 0.7293 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (battery.EAva,battery.EBou,battery.E_charged,battery.E_discharged,EField.y,EGrid.y,Eload.y) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,weatherData.weatherData.conTim.tNext,SLP_July.a,SLP_July.b,SLP_July.last,SLP_July.nextEvent,SLP_July.nextEventScaled) * Number of discrete states: 7 (SLP_July.nextEvent,SLP_July.last,SLP_July.nextEventScaled,SLP_July.b,SLP_July.a,$whenCondition1,weatherData.weatherData.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 1 * 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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001792/13.84, allocations: 0.6044 MB / 1.708 GB, free: 235.9 MB / 0.7293 GB Notification: Performance of simCode: created initialization part: time 0.01085/13.85, allocations: 12.69 MB / 1.721 GB, free: 234 MB / 0.7293 GB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/13.85, allocations: 0 / 1.721 GB, free: 234 MB / 0.7293 GB Notification: Performance of simCode: created simulation system equations: time 0.005602/13.85, allocations: 6.467 MB / 1.727 GB, free: 231.3 MB / 0.7293 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006271/13.86, allocations: 0.5271 MB / 1.728 GB, free: 230.8 MB / 0.7293 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06185/13.92, allocations: 38.2 MB / 1.765 GB, free: 195.8 MB / 0.7293 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01998/13.94, allocations: 7.889 MB / 1.773 GB, free: 190.5 MB / 0.7293 GB Notification: Performance of simCode: alias equations: time 0.001491/13.94, allocations: 165.9 kB / 1.773 GB, free: 190.3 MB / 0.7293 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004775/13.94, allocations: 86.91 kB / 1.773 GB, free: 190.3 MB / 0.7293 GB Notification: Performance of SimCode: time 1.232e-06/13.94, allocations: 4 kB / 1.773 GB, free: 190.3 MB / 0.7293 GB Notification: Performance of Templates: time 0.1069/14.05, allocations: 31.89 MB / 1.804 GB, free: 165.3 MB / 0.7293 GB make -j1 -f BuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem.makefile (rm -f BuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem.pipe ; mkfifo BuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem.pipe >> ../files/BuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem.sim & ./BuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem.pipe 2>&1)