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.7852/0.7852, allocations: 141.7 MB / 154.3 MB, free: 15.5 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001404/0.001404, allocations: 182.9 kB / 187.3 MB, free: 11.9 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.356/1.356, allocations: 221.3 MB / 441.4 MB, free: 4.609 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.0009284/0.0009284, allocations: 101.7 kB / 0.5124 GB, free: 24.24 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001809/0.001809, allocations: 278.5 kB / 0.5939 GB, free: 7.965 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.274e-05/3.287e-05, allocations: 4 kB / 0.6834 GB, free: 12.27 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.433/0.4331, allocations: 82.76 MB / 0.7642 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.142/0.5751, allocations: 127 MB / 0.8882 GB, free: 13.58 MB / 0.5573 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003156/0.5755, allocations: 87.83 kB / 0.8883 GB, free: 13.5 MB / 0.5573 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.793/3.368, allocations: 475.2 MB / 1.352 GB, free: 106.9 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.525e-06/3.368, allocations: 192 / 1.352 GB, free: 106.9 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 0.001485/3.37, allocations: 204.9 kB / 1.353 GB, free: 106.8 MB / 0.7448 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.02756/3.397, allocations: 10.52 MB / 1.363 GB, free: 100.1 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.693e-05/3.397, allocations: 9.406 kB / 1.363 GB, free: 100.1 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009714/3.407, allocations: 2.305 MB / 1.365 GB, free: 98.37 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02697/3.434, allocations: 7.401 MB / 1.372 GB, free: 91.82 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002436/3.434, allocations: 131.6 kB / 1.373 GB, free: 91.69 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00463/3.439, allocations: 154 kB / 1.373 GB, free: 91.55 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02902/3.468, allocations: 11.73 MB / 1.384 GB, free: 81.48 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.762e-05/3.468, allocations: 8 kB / 1.384 GB, free: 81.47 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004238/3.473, allocations: 117.4 kB / 1.384 GB, free: 81.38 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.232e-05/3.473, allocations: 12 kB / 1.384 GB, free: 81.36 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0212/3.494, allocations: 10.71 MB / 1.395 GB, free: 72.37 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05643/3.55, allocations: 17.35 MB / 1.412 GB, free: 58.61 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01783/3.568, allocations: 10.6 MB / 1.422 GB, free: 49.77 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0167/3.585, allocations: 10.07 MB / 1.432 GB, free: 41.11 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002437/3.587, allocations: 2.188 MB / 1.434 GB, free: 38.45 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.035/4.623, allocations: 11.27 MB / 1.445 GB, free: 253.6 MB / 0.7449 GB Notification: Performance of pre-optimization done (n=81): time 5.741e-06/4.623, allocations: 6.469 kB / 1.445 GB, free: 253.6 MB / 0.7449 GB Notification: Performance of matching and sorting (n=81): time 2.66/7.283, allocations: 33.7 MB / 1.478 GB, free: 252.3 MB / 0.7449 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001351/7.283, allocations: 168.5 kB / 1.478 GB, free: 252.1 MB / 0.7449 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.05982/7.343, allocations: 18.02 MB / 1.496 GB, free: 240.7 MB / 0.7449 GB Notification: Performance of collectPreVariables (initialization): time 0.003442/7.347, allocations: 137.7 kB / 1.496 GB, free: 240.5 MB / 0.7449 GB Notification: Performance of collectInitialEqns (initialization): time 0.017/7.364, allocations: 8.694 MB / 1.504 GB, free: 232.4 MB / 0.7449 GB Notification: Performance of collectInitialBindings (initialization): time 0.003653/7.367, allocations: 367.6 kB / 1.505 GB, free: 232.1 MB / 0.7449 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003966/7.371, allocations: 108 kB / 1.505 GB, free: 232 MB / 0.7449 GB Notification: Performance of setup shared object (initialization): time 0.0002188/7.372, allocations: 342.8 kB / 1.505 GB, free: 231.7 MB / 0.7449 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01855/7.39, allocations: 10.02 MB / 1.515 GB, free: 223.3 MB / 0.7449 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01847/7.409, allocations: 10.16 MB / 1.525 GB, free: 214.8 MB / 0.7449 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01766/7.426, allocations: 10.03 MB / 1.535 GB, free: 206.4 MB / 0.7449 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.138e-05/7.426, allocations: 0 / 1.535 GB, free: 206.4 MB / 0.7449 GB Notification: Performance of matching and sorting (n=107) (initialization): time 1.257/8.684, allocations: 33.22 MB / 1.567 GB, free: 178.3 MB / 0.7449 GB Notification: Performance of prepare postOptimizeDAE: time 6.363e-05/8.684, allocations: 49.27 kB / 1.567 GB, free: 178.2 MB / 0.7449 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.587e-05/8.684, allocations: 4 kB / 1.567 GB, free: 178.2 MB / 0.7449 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007415/8.685, allocations: 158.1 kB / 1.567 GB, free: 178.1 MB / 0.7449 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001343/8.686, allocations: 242.6 kB / 1.567 GB, free: 177.9 MB / 0.7449 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003459/8.69, allocations: 1.976 MB / 1.569 GB, free: 176.1 MB / 0.7449 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00824/8.698, allocations: 275.6 kB / 1.57 GB, free: 175.8 MB / 0.7449 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005682/8.704, allocations: 1.045 MB / 1.571 GB, free: 174.8 MB / 0.7449 GB Warning: Assuming fixed start value for the following 4 variables: battery.E_discharged:VARIABLE(start = 0.0 unit = "J" ) "Total energy taken from the battery" type: Real battery.E_charged:VARIABLE(start = 0.0 unit = "J" ) "Total energy charged to the battery" type: Real battery.EBou:VARIABLE(start = (1.0 - battery.c) * battery.SOC_start * battery.E_nominal unit = "J" ) "Bound charge of the battery" type: Real battery.EAva:VARIABLE(start = battery.c * battery.SOC_start * battery.E_nominal unit = "J" ) "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 () * 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.004486/8.708, allocations: 306.9 kB / 1.571 GB, free: 174.5 MB / 0.7449 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00838/8.716, allocations: 1.813 MB / 1.573 GB, free: 172.7 MB / 0.7449 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.671/11.39, allocations: 34.34 MB / 1.606 GB, free: 138.5 MB / 0.7449 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.399e-05/11.39, allocations: 10.03 kB / 1.606 GB, free: 138.5 MB / 0.7449 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/11.39, allocations: 6.312 kB / 1.606 GB, free: 138.5 MB / 0.7449 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.491e-05/11.39, allocations: 3.984 kB / 1.606 GB, free: 138.5 MB / 0.7449 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 2.709/14.1, allocations: 43.37 MB / 1.649 GB, free: 95.08 MB / 0.7449 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.09e-05/14.1, allocations: 3.406 kB / 1.649 GB, free: 95.08 MB / 0.7449 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001179/14.1, allocations: 216 kB / 1.649 GB, free: 94.88 MB / 0.7449 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005476/14.1, allocations: 139.3 kB / 1.649 GB, free: 94.75 MB / 0.7449 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002888/14.1, allocations: 323.9 kB / 1.649 GB, free: 94.43 MB / 0.7449 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003183/14.1, allocations: 2.011 MB / 1.651 GB, free: 92.3 MB / 0.7449 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.686e-06/14.1, allocations: 0 / 1.651 GB, free: 92.3 MB / 0.7449 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.193/17.3, allocations: 50.14 MB / 1.7 GB, free: 255.1 MB / 0.7449 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01266/17.31, allocations: 3.921 MB / 1.704 GB, free: 254.1 MB / 0.7449 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.007655/17.32, allocations: 112.3 kB / 1.704 GB, free: 254.1 MB / 0.7449 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007453/17.32, allocations: 208.6 kB / 1.704 GB, free: 254.1 MB / 0.7449 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003748/17.33, allocations: 73.03 kB / 1.704 GB, free: 254.1 MB / 0.7449 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.005105/17.33, allocations: 1.038 MB / 1.705 GB, free: 254.1 MB / 0.7449 GB Notification: Performance of sorting global known variables: time 0.04449/17.38, allocations: 14.52 MB / 1.72 GB, free: 253.4 MB / 0.7449 GB Notification: Performance of sort global known variables: time 2.164e-06/17.38, allocations: 0 / 1.72 GB, free: 253.4 MB / 0.7449 GB Notification: Performance of remove unused functions: time 0.006003/17.38, allocations: 0.7287 MB / 1.72 GB, free: 253.4 MB / 0.7449 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) * 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 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.003024/17.38, allocations: 0.5838 MB / 1.721 GB, free: 253.3 MB / 0.7449 GB Notification: Performance of simCode: created initialization part: time 0.01906/17.4, allocations: 12.41 MB / 1.733 GB, free: 253.1 MB / 0.7449 GB Notification: Performance of simCode: created event and clocks part: time 8.917e-06/17.4, allocations: 0 / 1.733 GB, free: 253.1 MB / 0.7449 GB Notification: Performance of simCode: created simulation system equations: time 0.005253/17.41, allocations: 6.336 MB / 1.739 GB, free: 252.2 MB / 0.7449 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00654/17.42, allocations: 0.5269 MB / 1.74 GB, free: 251.7 MB / 0.7449 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05377/17.47, allocations: 30.87 MB / 1.77 GB, free: 227.1 MB / 0.7449 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01622/17.49, allocations: 7.883 MB / 1.778 GB, free: 221.7 MB / 0.7449 GB Notification: Performance of simCode: alias equations: time 0.001397/17.49, allocations: 171.5 kB / 1.778 GB, free: 221.6 MB / 0.7449 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000467/17.49, allocations: 84.03 kB / 1.778 GB, free: 221.5 MB / 0.7449 GB Notification: Performance of SimCode: time 2.445e-06/17.49, allocations: 3.75 kB / 1.778 GB, free: 221.5 MB / 0.7449 GB Notification: Performance of Templates: time 0.1041/17.59, allocations: 32.75 MB / 1.81 GB, free: 194.9 MB / 0.7449 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)