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: "" <> buildModelFMU(BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem,fileNamePrefix="BuildingSystems_BuildingSystems_Applications_PhotovoltaicSystems_PhotovoltaicSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem,fileNamePrefix="BuildingSystems_BuildingSystems_Applications_PhotovoltaicSystems_PhotovoltaicSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.927/0.927, allocations: 143.3 MB / 158.3 MB, free: 5.758 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.001522/0.001522, allocations: 181 kB / 191.5 MB, free: 5.742 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.563/1.563, allocations: 223.2 MB / 447.7 MB, free: 6.551 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.0009933/0.0009933, allocations: 95.7 kB / 0.5187 GB, free: 2.902 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.0019/0.0019, allocations: 276.1 kB / 0.6005 GB, free: 48.98 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00068/0.0006801, allocations: 12 kB / 0.6929 GB, free: 2.223 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5131/0.5138, allocations: 82.77 MB / 0.7738 GB, free: 26.2 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1786/0.6924, allocations: 127 MB / 0.8978 GB, free: 11 MB / 0.5573 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002773/0.6928, allocations: 83.95 kB / 0.8979 GB, free: 10.92 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.634/3.327, allocations: 475.5 MB / 1.362 GB, free: 57.31 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.955e-06/3.327, allocations: 0 / 1.362 GB, free: 57.31 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.001576/3.328, allocations: 200 kB / 1.362 GB, free: 57.11 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.02956/3.358, allocations: 13.82 MB / 1.376 GB, free: 43.13 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.323e-05/3.358, allocations: 8.031 kB / 1.376 GB, free: 43.12 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002763/3.361, allocations: 198.5 kB / 1.376 GB, free: 42.92 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008513/3.369, allocations: 2.297 MB / 1.378 GB, free: 40.6 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01812/3.387, allocations: 7.495 MB / 1.386 GB, free: 33.02 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001986/3.388, allocations: 126.4 kB / 1.386 GB, free: 32.88 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009034/3.389, allocations: 159.9 kB / 1.386 GB, free: 32.73 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01593/3.404, allocations: 11.88 MB / 1.398 GB, free: 20.8 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.237e-05/3.405, allocations: 4 kB / 1.398 GB, free: 20.8 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001688/3.406, allocations: 112 kB / 1.398 GB, free: 20.69 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.765e-05/3.406, allocations: 16 kB / 1.398 GB, free: 20.67 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0156/3.422, allocations: 11 MB / 1.408 GB, free: 9.664 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.9314/4.353, allocations: 17.36 MB / 1.425 GB, free: 203.5 MB / 0.6824 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02164/4.375, allocations: 10.91 MB / 1.436 GB, free: 203.4 MB / 0.6824 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002181/4.377, allocations: 2.2 MB / 1.438 GB, free: 201 MB / 0.6824 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02397/4.401, allocations: 11.42 MB / 1.449 GB, free: 199.5 MB / 0.6824 GB Notification: Performance of pre-optimization done (n=81): time 1.192e-05/4.401, allocations: 0 / 1.449 GB, free: 199.5 MB / 0.6824 GB Notification: Performance of matching and sorting (n=81): time 2.618/7.019, allocations: 44.67 MB / 1.493 GB, free: 168.2 MB / 0.6824 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000124/7.019, allocations: 174.6 kB / 1.493 GB, free: 168 MB / 0.6824 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.05332/7.073, allocations: 18.2 MB / 1.511 GB, free: 153.1 MB / 0.6824 GB Notification: Performance of collectPreVariables (initialization): time 0.003446/7.076, allocations: 136.9 kB / 1.511 GB, free: 152.9 MB / 0.6824 GB Notification: Performance of collectInitialEqns (initialization): time 0.01123/7.087, allocations: 8.696 MB / 1.52 GB, free: 144.3 MB / 0.6824 GB Notification: Performance of collectInitialBindings (initialization): time 0.002577/7.09, allocations: 365.1 kB / 1.52 GB, free: 144 MB / 0.6824 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009776/7.091, allocations: 108 kB / 1.52 GB, free: 143.9 MB / 0.6824 GB Notification: Performance of setup shared object (initialization): time 0.0001039/7.091, allocations: 338 kB / 1.52 GB, free: 143.6 MB / 0.6824 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0101/7.101, allocations: 10.18 MB / 1.53 GB, free: 133.4 MB / 0.6824 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01254/7.114, allocations: 10.31 MB / 1.54 GB, free: 123 MB / 0.6824 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01282/7.127, allocations: 10.18 MB / 1.55 GB, free: 112.9 MB / 0.6824 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.02e-05/7.127, allocations: 0 / 1.55 GB, free: 112.9 MB / 0.6824 GB Notification: Performance of matching and sorting (n=107) (initialization): time 1.116/8.243, allocations: 33.54 MB / 1.583 GB, free: 79.32 MB / 0.6824 GB Notification: Performance of prepare postOptimizeDAE: time 7.658e-05/8.243, allocations: 33.7 kB / 1.583 GB, free: 79.29 MB / 0.6824 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.798e-05/8.243, allocations: 7.906 kB / 1.583 GB, free: 79.28 MB / 0.6824 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00106/8.244, allocations: 217.8 kB / 1.583 GB, free: 79.07 MB / 0.6824 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001459/8.245, allocations: 242.1 kB / 1.584 GB, free: 78.85 MB / 0.6824 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005458/8.251, allocations: 2.283 MB / 1.586 GB, free: 76.45 MB / 0.6824 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008742/8.26, allocations: 265.9 kB / 1.586 GB, free: 76.2 MB / 0.6824 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005981/8.266, allocations: 1.055 MB / 1.587 GB, free: 75.15 MB / 0.6824 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.01416/8.28, allocations: 5.007 MB / 1.592 GB, free: 70.14 MB / 0.6824 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006974/8.287, allocations: 1.809 MB / 1.594 GB, free: 68.31 MB / 0.6824 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.488/10.78, allocations: 34.54 MB / 1.627 GB, free: 33.74 MB / 0.6824 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.152e-05/10.78, allocations: 13.44 kB / 1.627 GB, free: 33.73 MB / 0.6824 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/10.78, allocations: 3.281 kB / 1.627 GB, free: 33.73 MB / 0.6824 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.741e-05/10.78, allocations: 3.984 kB / 1.627 GB, free: 33.73 MB / 0.6824 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03453/10.81, allocations: 8.739 MB / 1.636 GB, free: 24.98 MB / 0.6824 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.879e-05/10.81, allocations: 4 kB / 1.636 GB, free: 24.97 MB / 0.6824 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0014/10.81, allocations: 215.7 kB / 1.636 GB, free: 24.76 MB / 0.6824 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008213/10.81, allocations: 168.7 kB / 1.636 GB, free: 24.59 MB / 0.6824 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002209/10.81, allocations: 315.5 kB / 1.637 GB, free: 24.29 MB / 0.6824 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003436/10.82, allocations: 2.034 MB / 1.639 GB, free: 22.12 MB / 0.6824 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/10.82, allocations: 0 / 1.639 GB, free: 22.12 MB / 0.6824 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.038/13.86, allocations: 50.4 MB / 1.688 GB, free: 218.6 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01183/13.87, allocations: 3.919 MB / 1.692 GB, free: 217.6 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00725/13.88, allocations: 117.1 kB / 1.692 GB, free: 217.6 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006934/13.88, allocations: 199.7 kB / 1.692 GB, free: 217.6 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003442/13.88, allocations: 70.23 kB / 1.692 GB, free: 217.6 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00323/13.89, allocations: 1.033 MB / 1.693 GB, free: 217.6 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.03412/13.92, allocations: 14.71 MB / 1.707 GB, free: 214.7 MB / 0.698 GB Notification: Performance of sort global known variables: time 4.81e-07/13.92, allocations: 1 kB / 1.707 GB, free: 214.7 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.003648/13.92, allocations: 0.7353 MB / 1.708 GB, free: 214.6 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.02377/13.95, allocations: 30.99 MB / 1.738 GB, free: 193 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.008949/13.96, allocations: 12.69 MB / 1.751 GB, free: 181.6 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/13.96, allocations: 0 / 1.751 GB, free: 181.6 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.004393/13.96, allocations: 6.476 MB / 1.757 GB, free: 175.8 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005905/13.97, allocations: 0.5188 MB / 1.758 GB, free: 175.3 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.393/15.36, allocations: 290.7 MB / 2.042 GB, free: 159.7 MB / 0.7138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01718/15.38, allocations: 7.893 MB / 2.049 GB, free: 154.4 MB / 0.7138 GB Notification: Performance of simCode: alias equations: time 0.001201/15.38, allocations: 174.1 kB / 2.049 GB, free: 154.3 MB / 0.7138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009439/15.39, allocations: 6.726 MB / 2.056 GB, free: 148 MB / 0.7138 GB Notification: Performance of SimCode: time 2.164e-06/15.39, allocations: 0 / 2.056 GB, free: 148 MB / 0.7138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6965/16.08, allocations: 202.9 MB / 2.254 GB, free: 173.2 MB / 0.7138 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001852/16.09, allocations: 274.1 kB / 2.254 GB, free: 172.8 MB / 0.7138 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.99/33.08, allocations: 0 / 2.254 GB, free: 172.8 MB / 0.7138 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Applications_PhotovoltaicSystems_PhotovoltaicSystem_fmu --startTime=1.57212e+07 --stopTime=1.83996e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Applications_PhotovoltaicSystems_PhotovoltaicSystem.fmu > BuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem.pipe 2>&1)