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.7106/0.7106, allocations: 141.7 MB / 154.3 MB, free: 15.49 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.0009668/0.0009668, allocations: 179.1 kB / 187.3 MB, free: 11.89 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.338/1.338, allocations: 221.3 MB / 441.4 MB, free: 4.598 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.0009043/0.0009042, allocations: 96.86 kB / 0.5124 GB, free: 24.18 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001684/0.001685, allocations: 270.2 kB / 0.5939 GB, free: 7.965 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.959e-05/3.961e-05, allocations: 11.98 kB / 0.6835 GB, free: 12.15 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3953/0.3954, allocations: 82.76 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1447/0.5401, allocations: 127 MB / 0.8883 GB, free: 13.55 MB / 0.5573 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002564/0.5404, allocations: 79.95 kB / 0.8884 GB, free: 13.48 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.295/2.835, allocations: 475.3 MB / 1.353 GB, free: 74.11 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.544e-06/2.835, allocations: 0 / 1.353 GB, free: 74.11 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.001648/2.837, allocations: 204 kB / 1.353 GB, free: 73.91 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.02273/2.86, allocations: 10.54 MB / 1.363 GB, free: 63.28 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.175e-05/2.86, allocations: 8.031 kB / 1.363 GB, free: 63.27 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002047/2.862, allocations: 194.5 kB / 1.363 GB, free: 63.07 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007171/2.869, allocations: 2.301 MB / 1.365 GB, free: 60.75 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01812/2.887, allocations: 7.401 MB / 1.373 GB, free: 53.27 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001874/2.887, allocations: 130.4 kB / 1.373 GB, free: 53.12 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001754/2.889, allocations: 152 kB / 1.373 GB, free: 52.97 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01715/2.906, allocations: 11.73 MB / 1.384 GB, free: 41.2 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.319e-05/2.906, allocations: 0 / 1.384 GB, free: 41.2 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001472/2.908, allocations: 116 kB / 1.385 GB, free: 41.08 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.633e-05/2.908, allocations: 12 kB / 1.385 GB, free: 41.07 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01376/2.922, allocations: 10.72 MB / 1.395 GB, free: 30.34 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04079/2.962, allocations: 17.35 MB / 1.412 GB, free: 12.91 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.7567/3.719, allocations: 10.6 MB / 1.422 GB, free: 194.6 MB / 0.6824 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01444/3.734, allocations: 10.06 MB / 1.432 GB, free: 194.6 MB / 0.6824 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001857/3.736, allocations: 2.19 MB / 1.434 GB, free: 192.2 MB / 0.6824 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01559/3.751, allocations: 11.27 MB / 1.445 GB, free: 192.1 MB / 0.6824 GB Notification: Performance of pre-optimization done (n=81): time 6.012e-06/3.751, allocations: 0 / 1.445 GB, free: 192.1 MB / 0.6824 GB Notification: Performance of matching and sorting (n=81): time 2.429/6.18, allocations: 33.71 MB / 1.478 GB, free: 183.5 MB / 0.6824 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.557e-05/6.181, allocations: 171 kB / 1.478 GB, free: 183.3 MB / 0.6824 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04477/6.225, allocations: 18.01 MB / 1.496 GB, free: 167.7 MB / 0.6824 GB Notification: Performance of collectPreVariables (initialization): time 0.002144/6.228, allocations: 133.7 kB / 1.496 GB, free: 167.6 MB / 0.6824 GB Notification: Performance of collectInitialEqns (initialization): time 0.0139/6.241, allocations: 8.702 MB / 1.505 GB, free: 159.5 MB / 0.6824 GB Notification: Performance of collectInitialBindings (initialization): time 0.001991/6.244, allocations: 361.2 kB / 1.505 GB, free: 159.2 MB / 0.6824 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001702/6.245, allocations: 108 kB / 1.505 GB, free: 159.1 MB / 0.6824 GB Notification: Performance of setup shared object (initialization): time 0.0001195/6.245, allocations: 343.2 kB / 1.505 GB, free: 158.7 MB / 0.6824 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01208/6.257, allocations: 10.02 MB / 1.515 GB, free: 150.4 MB / 0.6824 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01208/6.27, allocations: 10.17 MB / 1.525 GB, free: 141.8 MB / 0.6824 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01208/6.282, allocations: 10.03 MB / 1.535 GB, free: 133.5 MB / 0.6824 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.119e-05/6.282, allocations: 4 kB / 1.535 GB, free: 133.5 MB / 0.6824 GB Notification: Performance of matching and sorting (n=107) (initialization): time 1.099/7.381, allocations: 33.23 MB / 1.567 GB, free: 100.9 MB / 0.6824 GB Notification: Performance of prepare postOptimizeDAE: time 5.487e-05/7.381, allocations: 39.44 kB / 1.567 GB, free: 100.9 MB / 0.6824 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.329e-05/7.381, allocations: 4 kB / 1.567 GB, free: 100.8 MB / 0.6824 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000647/7.382, allocations: 167.3 kB / 1.568 GB, free: 100.7 MB / 0.6824 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001156/7.383, allocations: 237.7 kB / 1.568 GB, free: 100.5 MB / 0.6824 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003199/7.386, allocations: 1.98 MB / 1.57 GB, free: 98.39 MB / 0.6824 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004974/7.391, allocations: 273.7 kB / 1.57 GB, free: 98.15 MB / 0.6824 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002777/7.394, allocations: 1.043 MB / 1.571 GB, free: 97.11 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.001724/7.396, allocations: 311.8 kB / 1.571 GB, free: 96.81 MB / 0.6824 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003619/7.399, allocations: 1.809 MB / 1.573 GB, free: 94.98 MB / 0.6824 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.405/9.804, allocations: 34.33 MB / 1.607 GB, free: 60.65 MB / 0.6824 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-05/9.804, allocations: 12 kB / 1.607 GB, free: 60.64 MB / 0.6824 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/9.804, allocations: 0 / 1.607 GB, free: 60.64 MB / 0.6824 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.197e-05/9.804, allocations: 3.984 kB / 1.607 GB, free: 60.63 MB / 0.6824 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 2.451/12.26, allocations: 43.37 MB / 1.649 GB, free: 17.23 MB / 0.6824 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.118e-05/12.26, allocations: 2.938 kB / 1.649 GB, free: 17.23 MB / 0.6824 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001174/12.26, allocations: 222 kB / 1.649 GB, free: 17.03 MB / 0.6824 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005138/12.26, allocations: 148.6 kB / 1.649 GB, free: 16.89 MB / 0.6824 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001663/12.26, allocations: 308 kB / 1.65 GB, free: 16.59 MB / 0.6824 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002991/12.26, allocations: 2.012 MB / 1.652 GB, free: 14.46 MB / 0.6824 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/12.26, allocations: 0 / 1.652 GB, free: 14.46 MB / 0.6824 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 2.85/15.11, allocations: 50.14 MB / 1.7 GB, free: 209.8 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008499/15.12, allocations: 3.925 MB / 1.704 GB, free: 208.4 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00325/15.12, allocations: 113.1 kB / 1.704 GB, free: 208.4 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003897/15.13, allocations: 208.6 kB / 1.705 GB, free: 208.4 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002189/15.13, allocations: 68.84 kB / 1.705 GB, free: 208.4 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002141/15.13, allocations: 1.035 MB / 1.706 GB, free: 208.2 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.03209/15.16, allocations: 14.52 MB / 1.72 GB, free: 204.5 MB / 0.698 GB Notification: Performance of sort global known variables: time 5.61e-07/15.16, allocations: 0 / 1.72 GB, free: 204.5 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.00307/15.17, allocations: 0.7344 MB / 1.721 GB, free: 204.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.02096/15.19, allocations: 30.72 MB / 1.751 GB, free: 184.3 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.00737/15.19, allocations: 12.41 MB / 1.763 GB, free: 173.1 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/15.19, allocations: 0 / 1.763 GB, free: 173.1 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.003867/15.2, allocations: 6.338 MB / 1.769 GB, free: 167.4 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007796/15.21, allocations: 0.5284 MB / 1.769 GB, free: 166.9 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05202/15.26, allocations: 34.43 MB / 1.803 GB, free: 136.5 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00902/15.27, allocations: 7.881 MB / 1.811 GB, free: 131.1 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001012/15.27, allocations: 173 kB / 1.811 GB, free: 131 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006548/15.27, allocations: 6.722 MB / 1.817 GB, free: 124.7 MB / 0.698 GB Notification: Performance of SimCode: time 1.072e-06/15.27, allocations: 0 / 1.817 GB, free: 124.7 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.032/16.31, allocations: 187.3 MB / 2 GB, free: 173 MB / 0.6982 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001688/16.31, allocations: 242.9 kB / 2.001 GB, free: 172.7 MB / 0.6982 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.96/29.26, allocations: 0 / 2.001 GB, free: 172.7 MB / 0.6982 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)