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.7849/0.7849, allocations: 141.8 MB / 149.3 MB, free: 9.195 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.001077/0.001077, allocations: 184 kB / 182.2 MB, free: 9.445 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.485/1.485, allocations: 221.5 MB / 436.4 MB, free: 13.33 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.0009766/0.0009766, allocations: 95.55 kB / 0.5074 GB, free: 10.15 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001777/0.001777, allocations: 276.4 kB / 0.5889 GB, free: 54.65 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.366e-05/1.366e-05, allocations: 0 / 0.6765 GB, free: 12.82 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5162/0.5162, allocations: 82.78 MB / 0.7574 GB, free: 32 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1726/0.6888, allocations: 126.3 MB / 0.8807 GB, free: 1.531 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002756/0.6892, allocations: 83.77 kB / 0.8808 GB, free: 1.453 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.531/3.22, allocations: 473.3 MB / 1.343 GB, free: 73.05 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.845e-06/3.22, allocations: 0 / 1.343 GB, free: 73.05 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.001806/3.222, allocations: 200 kB / 1.343 GB, free: 72.85 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.02776/3.25, allocations: 10.53 MB / 1.353 GB, free: 62.23 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.057e-05/3.25, allocations: 8.031 kB / 1.353 GB, free: 62.22 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008421/3.258, allocations: 2.305 MB / 1.356 GB, free: 59.89 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02012/3.279, allocations: 7.392 MB / 1.363 GB, free: 52.42 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002176/3.279, allocations: 107.3 kB / 1.363 GB, free: 52.29 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002093/3.281, allocations: 132 kB / 1.363 GB, free: 52.16 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01351/3.295, allocations: 10.59 MB / 1.373 GB, free: 41.57 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01898/3.314, allocations: 11.56 MB / 1.385 GB, free: 29.96 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.669e-05/3.314, allocations: 3.938 kB / 1.385 GB, free: 29.96 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002817/3.317, allocations: 92 kB / 1.385 GB, free: 29.87 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.9e-05/3.317, allocations: 23.92 kB / 1.385 GB, free: 29.85 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04925/3.366, allocations: 17.07 MB / 1.402 GB, free: 12.72 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.8883/4.254, allocations: 10.47 MB / 1.412 GB, free: 201.8 MB / 0.6824 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01138/4.266, allocations: 9.944 MB / 1.422 GB, free: 201.8 MB / 0.6824 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00202/4.268, allocations: 2.195 MB / 1.424 GB, free: 199.4 MB / 0.6824 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01574/4.284, allocations: 11.15 MB / 1.435 GB, free: 199 MB / 0.6824 GB Notification: Performance of pre-optimization done (n=81): time 6.682e-06/4.284, allocations: 3.719 kB / 1.435 GB, free: 199 MB / 0.6824 GB Notification: Performance of matching and sorting (n=81): time 2.521/6.805, allocations: 36.56 MB / 1.47 GB, free: 178.3 MB / 0.6824 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/6.805, allocations: 168.6 kB / 1.47 GB, free: 178.1 MB / 0.6824 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04735/6.852, allocations: 17.02 MB / 1.487 GB, free: 163.5 MB / 0.6824 GB Notification: Performance of collectPreVariables (initialization): time 0.002999/6.855, allocations: 121.7 kB / 1.487 GB, free: 163.4 MB / 0.6824 GB Notification: Performance of collectInitialEqns (initialization): time 0.01278/6.868, allocations: 8.7 MB / 1.496 GB, free: 155.3 MB / 0.6824 GB Notification: Performance of collectInitialBindings (initialization): time 0.003533/6.872, allocations: 359.7 kB / 1.496 GB, free: 155 MB / 0.6824 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001971/6.874, allocations: 92 kB / 1.496 GB, free: 154.9 MB / 0.6824 GB Notification: Performance of setup shared object (initialization): time 0.0001527/6.874, allocations: 333.2 kB / 1.496 GB, free: 154.6 MB / 0.6824 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01009/6.884, allocations: 9.926 MB / 1.506 GB, free: 146.3 MB / 0.6824 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01062/6.894, allocations: 10.05 MB / 1.516 GB, free: 137.3 MB / 0.6824 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03705/6.932, allocations: 13.03 MB / 1.529 GB, free: 124.3 MB / 0.6824 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-05/6.932, allocations: 12.25 kB / 1.529 GB, free: 124.2 MB / 0.6824 GB Notification: Performance of matching and sorting (n=107) (initialization): time 1.164/8.095, allocations: 36.07 MB / 1.564 GB, free: 88.14 MB / 0.6824 GB Notification: Performance of prepare postOptimizeDAE: time 6.981e-05/8.095, allocations: 47.56 kB / 1.564 GB, free: 88.09 MB / 0.6824 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.452e-05/8.095, allocations: 4 kB / 1.564 GB, free: 88.09 MB / 0.6824 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006888/8.096, allocations: 161.1 kB / 1.564 GB, free: 87.94 MB / 0.6824 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001332/8.097, allocations: 238.9 kB / 1.564 GB, free: 87.71 MB / 0.6824 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003037/8.101, allocations: 1.914 MB / 1.566 GB, free: 85.69 MB / 0.6824 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004912/8.105, allocations: 253 kB / 1.566 GB, free: 85.46 MB / 0.6824 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002658/8.108, allocations: 1.043 MB / 1.567 GB, free: 84.42 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.001853/8.11, allocations: 276.6 kB / 1.568 GB, free: 84.16 MB / 0.6824 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003792/8.114, allocations: 1.805 MB / 1.569 GB, free: 82.33 MB / 0.6824 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.537/10.65, allocations: 37.55 MB / 1.606 GB, free: 44.76 MB / 0.6824 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.372e-05/10.65, allocations: 9.125 kB / 1.606 GB, free: 44.75 MB / 0.6824 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/10.65, allocations: 4 kB / 1.606 GB, free: 44.75 MB / 0.6824 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-05/10.65, allocations: 3.984 kB / 1.606 GB, free: 44.74 MB / 0.6824 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 2.551/13.2, allocations: 46.39 MB / 1.651 GB, free: 14.32 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-05/13.2, allocations: 0 / 1.651 GB, free: 14.32 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001426/13.2, allocations: 216.3 kB / 1.652 GB, free: 14.12 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006029/13.2, allocations: 149.2 kB / 1.652 GB, free: 13.98 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003063/13.21, allocations: 300 kB / 1.652 GB, free: 13.68 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003553/13.21, allocations: 1.956 MB / 1.654 GB, free: 11.61 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/13.21, allocations: 4.062 kB / 1.654 GB, free: 11.61 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.017/16.23, allocations: 53.25 MB / 1.706 GB, free: 207.3 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009621/16.24, allocations: 3.92 MB / 1.71 GB, free: 205.8 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005312/16.24, allocations: 98.59 kB / 1.71 GB, free: 205.8 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005627/16.25, allocations: 192.7 kB / 1.71 GB, free: 205.8 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003748/16.25, allocations: 73.36 kB / 1.71 GB, free: 205.8 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003386/16.25, allocations: 1.038 MB / 1.711 GB, free: 205.6 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.03364/16.29, allocations: 13.48 MB / 1.724 GB, free: 195.1 MB / 0.698 GB Notification: Performance of sort global known variables: time 4.41e-07/16.29, allocations: 0 / 1.724 GB, free: 195.1 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.003986/16.29, allocations: 0.7071 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.00178/16.29, allocations: 0.5331 MB / 1.726 GB, free: 194.2 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.008008/16.3, allocations: 12.35 MB / 1.738 GB, free: 183 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.107e-06/16.3, allocations: 1.969 kB / 1.738 GB, free: 183 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.003442/16.3, allocations: 6.312 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.005395/16.31, allocations: 0.5078 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.0518/16.36, 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.01409/16.37, allocations: 7.879 MB / 1.782 GB, free: 143.4 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001337/16.38, allocations: 178.4 kB / 1.782 GB, free: 143.3 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004352/16.38, allocations: 82.06 kB / 1.782 GB, free: 143.2 MB / 0.698 GB Notification: Performance of SimCode: time 1.623e-06/16.38, allocations: 0 / 1.782 GB, free: 143.2 MB / 0.698 GB Notification: Performance of Templates: time 0.1062/16.48, allocations: 31.57 MB / 1.813 GB, free: 113.1 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)