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.9394/0.9394, allocations: 141.8 MB / 149.3 MB, free: 9.219 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.001163/0.001163, allocations: 176.9 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.407/1.407, 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.00104/0.00104, allocations: 99.41 kB / 0.5074 GB, free: 10.17 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002129/0.002129, allocations: 281.5 kB / 0.5889 GB, free: 54.67 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.93e-05/1.923e-05, allocations: 4 kB / 0.6766 GB, free: 12.75 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3959/0.3959, allocations: 82.77 MB / 0.7574 GB, free: 31.94 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1568/0.5528, allocations: 126.3 MB / 0.8808 GB, free: 1.465 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002404/0.5531, allocations: 83.94 kB / 0.8808 GB, free: 1.383 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.408/2.962, allocations: 473.3 MB / 1.343 GB, free: 71.94 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.834e-06/2.962, allocations: 0 / 1.343 GB, free: 71.94 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.00146/2.963, allocations: 200 kB / 1.343 GB, free: 71.74 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.02185/2.985, allocations: 10.53 MB / 1.354 GB, free: 61.12 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/2.985, allocations: 12.03 kB / 1.354 GB, free: 61.11 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00721/2.992, allocations: 2.297 MB / 1.356 GB, free: 58.79 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02116/3.013, allocations: 7.4 MB / 1.363 GB, free: 51.3 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002157/3.014, allocations: 113.7 kB / 1.363 GB, free: 51.18 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002016/3.016, allocations: 132 kB / 1.363 GB, free: 51.05 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01295/3.029, allocations: 10.58 MB / 1.374 GB, free: 40.46 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01558/3.044, allocations: 11.56 MB / 1.385 GB, free: 28.86 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.487e-05/3.044, allocations: 4 kB / 1.385 GB, free: 28.85 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00137/3.046, allocations: 97.31 kB / 1.385 GB, free: 28.76 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.314e-05/3.046, allocations: 12 kB / 1.385 GB, free: 28.75 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04282/3.089, allocations: 17.07 MB / 1.402 GB, free: 11.61 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.871/3.96, allocations: 10.47 MB / 1.412 GB, free: 201.4 MB / 0.6824 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01213/3.972, allocations: 9.944 MB / 1.422 GB, free: 201.4 MB / 0.6824 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002016/3.974, allocations: 2.198 MB / 1.424 GB, free: 199 MB / 0.6824 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01602/3.99, allocations: 11.15 MB / 1.435 GB, free: 198.7 MB / 0.6824 GB Notification: Performance of pre-optimization done (n=81): time 6.843e-06/3.99, allocations: 0 / 1.435 GB, free: 198.7 MB / 0.6824 GB Notification: Performance of matching and sorting (n=81): time 2.526/6.516, allocations: 36.56 MB / 1.47 GB, free: 178.7 MB / 0.6824 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/6.516, allocations: 170.7 kB / 1.471 GB, free: 178.5 MB / 0.6824 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.05403/6.57, allocations: 17.02 MB / 1.487 GB, free: 163.9 MB / 0.6824 GB Notification: Performance of collectPreVariables (initialization): time 0.004053/6.575, allocations: 121.7 kB / 1.487 GB, free: 163.8 MB / 0.6824 GB Notification: Performance of collectInitialEqns (initialization): time 0.02189/6.597, allocations: 8.702 MB / 1.496 GB, free: 155.7 MB / 0.6824 GB Notification: Performance of collectInitialBindings (initialization): time 0.004933/6.602, allocations: 348.8 kB / 1.496 GB, free: 155.4 MB / 0.6824 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003669/6.605, allocations: 96.56 kB / 1.496 GB, free: 155.3 MB / 0.6824 GB Notification: Performance of setup shared object (initialization): time 0.0001769/6.605, allocations: 340.9 kB / 1.496 GB, free: 155 MB / 0.6824 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01114/6.617, allocations: 9.919 MB / 1.506 GB, free: 146.7 MB / 0.6824 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01159/6.628, allocations: 10.06 MB / 1.516 GB, free: 137.8 MB / 0.6824 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03836/6.667, allocations: 13.03 MB / 1.529 GB, free: 124.8 MB / 0.6824 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.039e-05/6.667, allocations: 0 / 1.529 GB, free: 124.8 MB / 0.6824 GB Notification: Performance of matching and sorting (n=107) (initialization): time 1.132/7.799, allocations: 36.08 MB / 1.564 GB, free: 88.67 MB / 0.6824 GB Notification: Performance of prepare postOptimizeDAE: time 9.603e-05/7.799, allocations: 37.69 kB / 1.564 GB, free: 88.63 MB / 0.6824 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.349e-05/7.799, allocations: 4 kB / 1.564 GB, free: 88.62 MB / 0.6824 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007335/7.8, allocations: 164.6 kB / 1.564 GB, free: 88.47 MB / 0.6824 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00133/7.802, allocations: 243.6 kB / 1.564 GB, free: 88.24 MB / 0.6824 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00373/7.805, allocations: 1.911 MB / 1.566 GB, free: 86.23 MB / 0.6824 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009681/7.815, allocations: 251.3 kB / 1.567 GB, free: 86 MB / 0.6824 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004878/7.82, allocations: 1.051 MB / 1.568 GB, free: 84.95 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.004321/7.824, allocations: 280.9 kB / 1.568 GB, free: 84.68 MB / 0.6824 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 2.514/10.34, allocations: 36.56 MB / 1.603 GB, free: 48.07 MB / 0.6824 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005938/10.34, allocations: 1.809 MB / 1.605 GB, free: 46.24 MB / 0.6824 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.541/12.89, allocations: 37.55 MB / 1.642 GB, free: 8.672 MB / 0.6824 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.169e-05/12.89, allocations: 12 kB / 1.642 GB, free: 8.66 MB / 0.6824 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/12.89, allocations: 3.953 kB / 1.642 GB, free: 8.656 MB / 0.6824 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.86e-05/12.89, allocations: 3.984 kB / 1.642 GB, free: 8.652 MB / 0.6824 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.115/16, allocations: 46.39 MB / 1.687 GB, free: 216.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.361e-05/16, allocations: 3.375 kB / 1.687 GB, free: 216.9 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001433/16, allocations: 216.9 kB / 1.687 GB, free: 216.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006169/16, allocations: 143.8 kB / 1.688 GB, free: 216.9 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003614/16.01, allocations: 301.7 kB / 1.688 GB, free: 216.9 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003636/16.01, allocations: 1.953 MB / 1.69 GB, free: 215.6 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-05/16.01, allocations: 1.312 kB / 1.69 GB, free: 215.6 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 2.547/18.56, allocations: 53.26 MB / 1.742 GB, free: 181.4 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01108/18.57, allocations: 3.918 MB / 1.746 GB, free: 177.7 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006076/18.57, allocations: 104 kB / 1.746 GB, free: 177.6 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007159/18.58, allocations: 189.6 kB / 1.746 GB, free: 177.5 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004349/18.58, allocations: 65.98 kB / 1.746 GB, free: 177.4 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004279/18.59, allocations: 1.034 MB / 1.747 GB, free: 176.4 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.04017/18.63, allocations: 13.48 MB / 1.76 GB, free: 165 MB / 0.698 GB Notification: Performance of sort global known variables: time 8.11e-07/18.63, allocations: 0 / 1.76 GB, free: 165 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.003986/18.63, allocations: 0.7059 MB / 1.761 GB, free: 164.4 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.04889/18.68, allocations: 34.06 MB / 1.794 GB, free: 133.1 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.009054/18.69, allocations: 12.36 MB / 1.806 GB, free: 120.8 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 6.662e-06/18.69, allocations: 3.938 kB / 1.806 GB, free: 120.8 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.00397/18.69, allocations: 6.302 MB / 1.812 GB, free: 114.5 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007125/18.7, allocations: 0.5154 MB / 1.813 GB, free: 114 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05828/18.76, allocations: 34.33 MB / 1.846 GB, free: 79.59 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01101/18.77, allocations: 7.884 MB / 1.854 GB, free: 71.67 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.00109/18.77, allocations: 177.2 kB / 1.854 GB, free: 71.52 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007415/18.78, allocations: 6.716 MB / 1.861 GB, free: 64.8 MB / 0.698 GB Notification: Performance of SimCode: time 1.432e-06/18.78, allocations: 0 / 1.861 GB, free: 64.8 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.282/20.06, allocations: 185.6 MB / 2.042 GB, free: 113 MB / 0.6981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002031/20.06, allocations: 188.7 kB / 2.042 GB, free: 112.8 MB / 0.6981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.93/33.99, allocations: 4 kB / 2.042 GB, free: 112.8 MB / 0.6981 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)