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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo", uses=false) Using package NcDataReader2 with version 2.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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.8787/0.8787, allocations: 140 MB / 156 MB, free: 8.414 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001318/0.001318, allocations: 172.5 kB / 188.5 MB, free: 9.02 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.978/1.978, allocations: 205.4 MB / 426.3 MB, free: 8.137 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00107/0.00107, allocations: 94.34 kB / 0.4945 GB, free: 8.07 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo): time 0.001817/0.001817, allocations: 265.2 kB / 0.5728 GB, free: 66.16 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005675/0.0005675, allocations: 16 kB / 0.662 GB, free: 6.75 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4943/0.4949, allocations: 79.3 MB / 0.7394 GB, free: 46.31 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2271/0.7221, allocations: 125.2 MB / 0.8617 GB, free: 0.9648 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002567/0.7224, allocations: 83.95 kB / 0.8618 GB, free: 0.8828 MB / 0.5261 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.32/3.043, allocations: 475.1 MB / 1.326 GB, free: 78.59 MB / 0.6667 GB Notification: Performance of FrontEnd: time 4.308e-06/3.043, allocations: 3.984 kB / 1.326 GB, free: 78.59 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 0.001886/3.045, allocations: 200 kB / 1.326 GB, free: 78.39 MB / 0.6667 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.03779/3.083, allocations: 13.63 MB / 1.339 GB, free: 64.61 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 5.517e-05/3.083, allocations: 8.031 kB / 1.339 GB, free: 64.6 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01073/3.093, allocations: 2.302 MB / 1.342 GB, free: 62.28 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02394/3.117, allocations: 8.407 MB / 1.35 GB, free: 53.93 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002386/3.118, allocations: 134.9 kB / 1.35 GB, free: 53.78 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001755/3.119, allocations: 156.4 kB / 1.35 GB, free: 53.63 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01473/3.134, allocations: 11.88 MB / 1.362 GB, free: 41.7 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.377e-05/3.134, allocations: 3.938 kB / 1.362 GB, free: 41.7 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009168/3.135, allocations: 116 kB / 1.362 GB, free: 41.59 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.366e-05/3.135, allocations: 15.94 kB / 1.362 GB, free: 41.57 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01433/3.15, allocations: 11.02 MB / 1.372 GB, free: 30.55 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.9996/4.149, allocations: 17.35 MB / 1.389 GB, free: 195.6 MB / 0.6668 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03697/4.186, allocations: 10.88 MB / 1.4 GB, free: 195.6 MB / 0.6668 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0284/4.215, allocations: 10.21 MB / 1.41 GB, free: 195.6 MB / 0.6668 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00286/4.218, allocations: 2.192 MB / 1.412 GB, free: 193.1 MB / 0.6668 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02966/4.248, allocations: 11.41 MB / 1.423 GB, free: 192.2 MB / 0.6668 GB Notification: Performance of pre-optimization done (n=81): time 9.288e-06/4.248, allocations: 0 / 1.423 GB, free: 192.2 MB / 0.6668 GB Notification: Performance of matching and sorting (n=81): time 2.725/6.973, allocations: 44.97 MB / 1.467 GB, free: 162 MB / 0.6668 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001094/6.973, allocations: 170.9 kB / 1.467 GB, free: 161.8 MB / 0.6668 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0605/7.034, allocations: 20.92 MB / 1.488 GB, free: 144.7 MB / 0.6668 GB Notification: Performance of collectPreVariables (initialization): time 0.003086/7.037, allocations: 139.4 kB / 1.488 GB, free: 144.6 MB / 0.6668 GB Notification: Performance of collectInitialEqns (initialization): time 0.0184/7.055, allocations: 8.698 MB / 1.496 GB, free: 136.5 MB / 0.6668 GB Notification: Performance of collectInitialBindings (initialization): time 0.003914/7.059, allocations: 365.5 kB / 1.497 GB, free: 136.2 MB / 0.6668 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00381/7.063, allocations: 108 kB / 1.497 GB, free: 136.1 MB / 0.6668 GB Notification: Performance of setup shared object (initialization): time 0.0001557/7.063, allocations: 337 kB / 1.497 GB, free: 135.8 MB / 0.6668 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01496/7.078, allocations: 10.17 MB / 1.507 GB, free: 126.1 MB / 0.6668 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01507/7.093, allocations: 10.31 MB / 1.517 GB, free: 115.7 MB / 0.6668 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.666/10.76, allocations: 0.5691 GB / 2.086 GB, free: 78.4 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.786e-06/10.76, allocations: 0 / 2.086 GB, free: 78.4 MB / 0.698 GB Notification: Performance of matching and sorting (n=107) (initialization): time 1.145/11.9, allocations: 33.9 MB / 2.119 GB, free: 48.01 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 6.71e-05/11.9, allocations: 41.69 kB / 2.119 GB, free: 47.96 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.637e-05/11.9, allocations: 4 kB / 2.119 GB, free: 47.96 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000883/11.91, allocations: 215.4 kB / 2.12 GB, free: 47.75 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001349/11.91, allocations: 239.4 kB / 2.12 GB, free: 47.53 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00465/11.91, allocations: 2.221 MB / 2.122 GB, free: 45.2 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00753/11.92, allocations: 271.8 kB / 2.122 GB, free: 44.96 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004258/11.92, allocations: 1.042 MB / 2.123 GB, free: 43.93 MB / 0.698 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.01329/11.94, allocations: 5.03 MB / 2.128 GB, free: 38.91 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006357/11.94, allocations: 1.807 MB / 2.13 GB, free: 37.13 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.025/14.97, allocations: 34.89 MB / 2.164 GB, free: 227.3 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.473e-05/14.97, allocations: 10.44 kB / 2.164 GB, free: 227.3 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.136e-05/14.97, allocations: 0 / 2.164 GB, free: 227.3 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-05/14.97, allocations: 3.375 kB / 2.164 GB, free: 227.3 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 2.651/17.62, allocations: 43.91 MB / 2.207 GB, free: 210.1 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.846e-05/17.62, allocations: 3.812 kB / 2.207 GB, free: 210.1 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001976/17.62, allocations: 217.1 kB / 2.207 GB, free: 209.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001208/17.62, allocations: 166.8 kB / 2.207 GB, free: 209.8 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003853/17.63, allocations: 311.4 kB / 2.208 GB, free: 209.5 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005161/17.63, allocations: 2.002 MB / 2.21 GB, free: 207.6 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/17.63, allocations: 3.938 kB / 2.21 GB, free: 207.6 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 2.496/20.13, allocations: 50.82 MB / 2.259 GB, free: 164.1 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01121/20.14, allocations: 3.922 MB / 2.263 GB, free: 160.2 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006348/20.15, allocations: 120 kB / 2.263 GB, free: 160.1 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007092/20.15, allocations: 198.2 kB / 2.263 GB, free: 159.9 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000437/20.15, allocations: 71.05 kB / 2.263 GB, free: 159.8 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004525/20.16, allocations: 1.031 MB / 2.264 GB, free: 158.8 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.04201/20.2, allocations: 14.71 MB / 2.279 GB, free: 144.2 MB / 0.698 GB Notification: Performance of sort global known variables: time 9.82e-07/20.2, allocations: 0 / 2.279 GB, free: 144.2 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.00495/20.2, allocations: 0.7241 MB / 2.28 GB, free: 143.5 MB / 0.698 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.002042/20.21, allocations: 0.6064 MB / 2.28 GB, free: 143.2 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.009768/20.22, allocations: 12.69 MB / 2.293 GB, free: 130.5 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.04e-05/20.22, allocations: 4 kB / 2.293 GB, free: 130.5 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0048/20.22, allocations: 6.466 MB / 2.299 GB, free: 124 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00797/20.23, allocations: 0.5468 MB / 2.299 GB, free: 123.5 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.057/20.29, allocations: 38.2 MB / 2.337 GB, free: 85.33 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009708/20.3, allocations: 7.595 MB / 2.344 GB, free: 77.7 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001325/20.3, allocations: 171.3 kB / 2.344 GB, free: 77.55 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004325/20.3, allocations: 83.38 kB / 2.344 GB, free: 77.46 MB / 0.698 GB Notification: Performance of SimCode: time 1.573e-06/20.3, allocations: 4 kB / 2.344 GB, free: 77.46 MB / 0.698 GB Notification: Performance of Templates: time 0.1139/20.41, allocations: 31.82 MB / 2.375 GB, free: 45.86 MB / 0.698 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)