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.8594/0.8594, allocations: 141.8 MB / 149.3 MB, free: 9.211 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.000962/0.000962, allocations: 184.4 kB / 182.2 MB, free: 9.465 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.441/1.441, allocations: 221.5 MB / 436.4 MB, free: 13.35 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.0009217/0.0009216, allocations: 96.03 kB / 0.5074 GB, free: 10.18 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001715/0.001715, allocations: 274.3 kB / 0.5889 GB, free: 54.68 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.842e-05/1.833e-05, allocations: 4 kB / 0.6765 GB, free: 12.86 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4635/0.4635, allocations: 82.77 MB / 0.7574 GB, free: 32.04 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.17/0.6336, allocations: 126.3 MB / 0.8807 GB, free: 1.574 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002669/0.634, allocations: 79.84 kB / 0.8808 GB, free: 1.5 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.537/3.171, allocations: 473.3 MB / 1.343 GB, free: 72.98 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.436e-06/3.171, allocations: 0 / 1.343 GB, free: 72.98 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.002389/3.173, allocations: 204 kB / 1.343 GB, free: 72.79 MB / 0.6823 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.02922/3.203, allocations: 10.52 MB / 1.353 GB, free: 62.16 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.144e-05/3.203, allocations: 8.031 kB / 1.353 GB, free: 62.16 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008188/3.211, allocations: 2.301 MB / 1.356 GB, free: 59.83 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02365/3.235, allocations: 7.4 MB / 1.363 GB, free: 52.35 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002341/3.235, allocations: 110.4 kB / 1.363 GB, free: 52.22 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002078/3.237, allocations: 128 kB / 1.363 GB, free: 52.1 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01348/3.251, allocations: 10.59 MB / 1.373 GB, free: 41.51 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0204/3.271, allocations: 11.56 MB / 1.385 GB, free: 29.89 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.086e-05/3.271, allocations: 0 / 1.385 GB, free: 29.89 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002375/3.274, allocations: 96 kB / 1.385 GB, free: 29.8 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.965e-05/3.274, allocations: 12 kB / 1.385 GB, free: 29.79 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04417/3.318, allocations: 17.08 MB / 1.402 GB, free: 12.65 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.8889/4.207, allocations: 10.46 MB / 1.412 GB, free: 196.7 MB / 0.6824 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01087/4.218, allocations: 9.947 MB / 1.421 GB, free: 196.7 MB / 0.6824 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001999/4.22, allocations: 2.19 MB / 1.424 GB, free: 194.3 MB / 0.6824 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01638/4.236, allocations: 11.15 MB / 1.435 GB, free: 193.9 MB / 0.6824 GB Notification: Performance of pre-optimization done (n=81): time 7.193e-06/4.236, allocations: 0 / 1.435 GB, free: 193.9 MB / 0.6824 GB Notification: Performance of matching and sorting (n=81): time 2.514/6.75, allocations: 36.56 MB / 1.47 GB, free: 176.4 MB / 0.6824 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.649e-05/6.75, allocations: 166.8 kB / 1.47 GB, free: 176.2 MB / 0.6824 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04482/6.795, allocations: 17.03 MB / 1.487 GB, free: 161.6 MB / 0.6824 GB Notification: Performance of collectPreVariables (initialization): time 0.002367/6.798, allocations: 121.7 kB / 1.487 GB, free: 161.5 MB / 0.6824 GB Notification: Performance of collectInitialEqns (initialization): time 0.01605/6.814, allocations: 8.696 MB / 1.496 GB, free: 153.4 MB / 0.6824 GB Notification: Performance of collectInitialBindings (initialization): time 0.00266/6.816, allocations: 354.5 kB / 1.496 GB, free: 153.1 MB / 0.6824 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002473/6.819, allocations: 95.28 kB / 1.496 GB, free: 153 MB / 0.6824 GB Notification: Performance of setup shared object (initialization): time 0.0001524/6.819, allocations: 340.3 kB / 1.496 GB, free: 152.7 MB / 0.6824 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01081/6.83, allocations: 9.919 MB / 1.506 GB, free: 144.4 MB / 0.6824 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01074/6.841, allocations: 10.06 MB / 1.516 GB, free: 136 MB / 0.6824 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03842/6.879, allocations: 13.03 MB / 1.529 GB, free: 124.2 MB / 0.6824 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.085e-05/6.879, allocations: 4 kB / 1.529 GB, free: 124.2 MB / 0.6824 GB Notification: Performance of matching and sorting (n=107) (initialization): time 1.168/8.047, allocations: 36.08 MB / 1.564 GB, free: 88.13 MB / 0.6824 GB Notification: Performance of prepare postOptimizeDAE: time 7.026e-05/8.047, allocations: 37.7 kB / 1.564 GB, free: 88.09 MB / 0.6824 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.61e-05/8.047, allocations: 6.156 kB / 1.564 GB, free: 88.09 MB / 0.6824 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007149/8.048, allocations: 166.3 kB / 1.564 GB, free: 87.93 MB / 0.6824 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001379/8.049, allocations: 238.6 kB / 1.564 GB, free: 87.7 MB / 0.6824 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003305/8.052, allocations: 1.919 MB / 1.566 GB, free: 85.68 MB / 0.6824 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00572/8.058, allocations: 255.3 kB / 1.566 GB, free: 85.45 MB / 0.6824 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003373/8.062, allocations: 1.039 MB / 1.567 GB, free: 84.41 MB / 0.6824 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.002413/8.064, allocations: 273.7 kB / 1.568 GB, free: 84.15 MB / 0.6824 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005238/8.069, allocations: 1.805 MB / 1.569 GB, free: 82.32 MB / 0.6824 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.55/10.62, allocations: 37.55 MB / 1.606 GB, free: 44.75 MB / 0.6824 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.938e-05/10.62, allocations: 16.75 kB / 1.606 GB, free: 44.74 MB / 0.6824 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.858e-06/10.62, allocations: 2.844 kB / 1.606 GB, free: 44.74 MB / 0.6824 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-05/10.62, allocations: 3.984 kB / 1.606 GB, free: 44.73 MB / 0.6824 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 2.548/13.17, allocations: 46.4 MB / 1.651 GB, free: 14.31 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.78e-05/13.17, allocations: 0 / 1.651 GB, free: 14.31 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001554/13.17, allocations: 213.4 kB / 1.652 GB, free: 14.11 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006493/13.17, allocations: 147.7 kB / 1.652 GB, free: 13.97 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003002/13.17, allocations: 303.9 kB / 1.652 GB, free: 13.67 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00375/13.18, allocations: 1.953 MB / 1.654 GB, free: 11.61 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.3e-05/13.18, allocations: 3.328 kB / 1.654 GB, free: 11.61 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.024/16.2, allocations: 53.26 MB / 1.706 GB, free: 207 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01047/16.21, allocations: 3.923 MB / 1.71 GB, free: 205.5 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005552/16.22, allocations: 98.66 kB / 1.71 GB, free: 205.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006688/16.22, allocations: 194.5 kB / 1.71 GB, free: 205.5 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004086/16.22, allocations: 66.62 kB / 1.71 GB, free: 205.5 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004437/16.23, allocations: 1.037 MB / 1.711 GB, free: 205.3 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.03953/16.27, allocations: 13.48 MB / 1.724 GB, free: 195.1 MB / 0.698 GB Notification: Performance of sort global known variables: time 7.42e-07/16.27, allocations: 0 / 1.724 GB, free: 195.1 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.004464/16.27, allocations: 0.7044 MB / 1.725 GB, free: 194.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) * 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.001918/16.27, allocations: 0.5325 MB / 1.726 GB, free: 194.2 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.00859/16.28, allocations: 12.35 MB / 1.738 GB, free: 183 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/16.28, allocations: 0 / 1.738 GB, free: 183 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.003767/16.29, allocations: 6.31 MB / 1.744 GB, free: 177.3 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005851/16.29, allocations: 0.5102 MB / 1.744 GB, free: 176.8 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0581/16.35, allocations: 30.81 MB / 1.774 GB, free: 148.8 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01432/16.37, allocations: 7.882 MB / 1.782 GB, free: 143.4 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001269/16.37, allocations: 172.5 kB / 1.782 GB, free: 143.3 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004296/16.37, allocations: 81.97 kB / 1.782 GB, free: 143.2 MB / 0.698 GB Notification: Performance of SimCode: time 1.793e-06/16.37, allocations: 0 / 1.782 GB, free: 143.2 MB / 0.698 GB Notification: Performance of Templates: time 0.1017/16.47, allocations: 31.58 MB / 1.813 GB, free: 113.3 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)