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/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001722/0.001722, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002018/0.002018, allocations: 195 kB / 16.53 MB, free: 6.664 MB / 14.72 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: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002095/0.002095, allocations: 275 kB / 290.7 MB, free: 1.996 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9026/0.9026, allocations: 169.3 MB / 0.4982 GB, free: 13.88 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00285/0.00285, allocations: 93.36 kB / 0.5952 GB, free: 27.89 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1728/0.1757, allocations: 86.98 MB / 0.6802 GB, free: 0.7227 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem): time 0.005768/0.1815, allocations: 4.584 MB / 0.6846 GB, free: 12.13 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.005828/0.1873, allocations: 4.419 MB / 0.689 GB, free: 7.699 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004109/0.1878, allocations: 19.88 kB / 0.689 GB, free: 7.68 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Technologies/Photovoltaics/BaseClasses/PVModuleGeneral.mo:38:3-39:117:writable] Warning: Connector radiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Technologies/Photovoltaics/BaseClasses/OpticalModels/OpticalModelGeneral.mo:10:3-12:121:writable] Warning: Connector radiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Climate/SolarRadiationTransformers/SolarRadiationTransformerGeneral.mo:25:3-27:116:writable] Warning: Connector radiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.01168/0.1995, allocations: 14.42 MB / 0.7031 GB, free: 9.234 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0133/0.2128, allocations: 14.74 MB / 0.7175 GB, free: 10.46 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.001552/0.2144, allocations: 0.4905 MB / 0.7179 GB, free: 9.977 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.009213/0.2236, allocations: 7.297 MB / 0.7251 GB, free: 2.668 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004501/0.2241, allocations: 235 kB / 0.7253 GB, free: 2.422 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008965/0.233, allocations: 5.755 MB / 0.7309 GB, free: 12.66 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01787/0.2509, allocations: 13.95 MB / 0.7445 GB, free: 14.69 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0009501/0.2519, allocations: 80 kB / 0.7446 GB, free: 14.61 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001832/0.2537, allocations: 0.5775 MB / 0.7452 GB, free: 14.03 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.00283/0.2566, allocations: 3.93 MB / 0.749 GB, free: 10.09 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.002877/0.2595, allocations: 4.246 MB / 0.7532 GB, free: 5.797 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.007698/0.2672, allocations: 10.03 MB / 0.763 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.2672, allocations: 0 / 0.763 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.003e-06/0.2672, allocations: 0 / 0.763 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0002028/0.2674, allocations: 0 / 0.763 GB, free: 11.72 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.5518/0.8192, allocations: 14.46 MB / 0.7771 GB, free: 83.51 MB / 0.5607 GB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.8193, allocations: 11.31 kB / 0.7771 GB, free: 83.51 MB / 0.5607 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005485/0.8248, allocations: 2.281 MB / 0.7793 GB, free: 82.53 MB / 0.5607 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005638/0.8304, allocations: 5.961 MB / 0.7851 GB, free: 78.69 MB / 0.5607 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001219/0.8306, allocations: 130.5 kB / 0.7853 GB, free: 78.58 MB / 0.5607 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001171/0.8307, allocations: 62.97 kB / 0.7853 GB, free: 78.56 MB / 0.5607 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005098/0.8358, allocations: 6.507 MB / 0.7917 GB, free: 77.48 MB / 0.5607 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.396e-05/0.8358, allocations: 7.875 kB / 0.7917 GB, free: 77.47 MB / 0.5607 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.638e-05/0.8359, allocations: 26.12 kB / 0.7917 GB, free: 77.45 MB / 0.5607 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.304e-05/0.8359, allocations: 14.12 kB / 0.7917 GB, free: 77.45 MB / 0.5607 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008416/0.8444, allocations: 6.506 MB / 0.7981 GB, free: 76.48 MB / 0.5607 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01274/0.8571, allocations: 7.911 MB / 0.8058 GB, free: 73.07 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004681/0.8618, allocations: 6.613 MB / 0.8123 GB, free: 66.75 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003195/0.8651, allocations: 6.076 MB / 0.8182 GB, free: 60.67 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00174/0.8668, allocations: 2.211 MB / 0.8203 GB, free: 57.99 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003388/0.8702, allocations: 6.187 MB / 0.8264 GB, free: 51.79 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=79): time 4.148e-06/0.8702, allocations: 0 / 0.8264 GB, free: 51.79 MB / 0.5607 GB Notification: Performance of matching and sorting (n=79): time 0.01905/0.8893, allocations: 26.13 MB / 0.8519 GB, free: 25.61 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.471e-05/0.8894, allocations: 137.2 kB / 0.852 GB, free: 25.45 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02081/0.9102, allocations: 20.83 MB / 0.8724 GB, free: 4.781 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0002087/0.9104, allocations: 39.7 kB / 0.8724 GB, free: 4.738 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.006723/0.9172, allocations: 8.714 MB / 0.8809 GB, free: 12.02 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004024/0.9176, allocations: 272 kB / 0.8812 GB, free: 11.75 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002962/0.9179, allocations: 170.5 kB / 0.8813 GB, free: 11.58 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001168/0.918, allocations: 341.7 kB / 0.8817 GB, free: 11.24 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004711/0.9227, allocations: 6.049 MB / 0.8876 GB, free: 5.191 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004799/0.9275, allocations: 6.222 MB / 0.8937 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.855/3.782, allocations: 428.1 MB / 1.312 GB, free: 6.09 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/3.782, allocations: 0 / 1.312 GB, free: 6.09 MB / 0.7325 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.01723/3.8, allocations: 19.92 MB / 1.331 GB, free: 5.578 MB / 0.7482 GB Notification: Performance of prepare postOptimizeDAE: time 5.736e-05/3.8, allocations: 37.58 kB / 1.331 GB, free: 5.539 MB / 0.7482 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.327e-05/3.8, allocations: 4 kB / 1.331 GB, free: 5.535 MB / 0.7482 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3033/4.103, allocations: 142.7 kB / 1.331 GB, free: 269 MB / 0.7482 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001252/4.104, allocations: 217.6 kB / 1.332 GB, free: 269 MB / 0.7482 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004753/4.109, allocations: 2.119 MB / 1.334 GB, free: 267.7 MB / 0.7482 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003786/4.113, allocations: 130.9 kB / 1.334 GB, free: 267.7 MB / 0.7482 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002261/4.113, allocations: 43.12 kB / 1.334 GB, free: 267.7 MB / 0.7482 GB Warning: Assuming fixed start value for the following 4 variables: battery.E_charged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy charged to the battery" type: Real battery.E_discharged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy taken from the battery" type: Real battery.EAva:VARIABLE(start = 0.315 * battery.SOC_start * battery.E_nominal unit = "J" fixed = true ) "Available charge of the battery" type: Real battery.EBou:VARIABLE(start = 0.6850000000000001 * battery.SOC_start * battery.E_nominal unit = "J" fixed = true ) "Bound charge of the battery" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 14 (SLP_July.nextEventScaled,SLP_July.nextEvent,$PRE.SLP_July.nextEvent,SLP_July.last,SLP_July.b,SLP_July.a,weatherData.weatherData.conTim.tNext,$PRE.weatherData.weatherData.conTim.tNext,$whenCondition1,$whenCondition2,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 (103): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.008308/4.122, allocations: 4.93 MB / 1.339 GB, free: 267.5 MB / 0.7482 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002935/4.124, allocations: 1.716 MB / 1.34 GB, free: 267.5 MB / 0.7482 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02374/4.148, allocations: 20.36 MB / 1.36 GB, free: 264.9 MB / 0.7482 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-05/4.148, allocations: 8 kB / 1.36 GB, free: 264.9 MB / 0.7482 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/4.148, allocations: 4.016 kB / 1.36 GB, free: 264.9 MB / 0.7482 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.207e-05/4.148, allocations: 4.359 kB / 1.36 GB, free: 264.9 MB / 0.7482 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02076/4.169, allocations: 24.9 MB / 1.385 GB, free: 242.5 MB / 0.7482 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.626e-06/4.169, allocations: 3.844 kB / 1.385 GB, free: 242.5 MB / 0.7482 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008997/4.17, allocations: 189.7 kB / 1.385 GB, free: 242.3 MB / 0.7482 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005726/4.171, allocations: 115.2 kB / 1.385 GB, free: 242.2 MB / 0.7482 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.482e-05/4.171, allocations: 27.97 kB / 1.385 GB, free: 242.2 MB / 0.7482 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003366/4.174, allocations: 1.971 MB / 1.387 GB, free: 240.1 MB / 0.7482 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/4.174, allocations: 0 / 1.387 GB, free: 240.1 MB / 0.7482 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01703/4.191, allocations: 29.49 MB / 1.416 GB, free: 210.6 MB / 0.7482 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003635/4.195, allocations: 1.526 MB / 1.417 GB, free: 209.1 MB / 0.7482 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001032/4.196, allocations: 20 kB / 1.417 GB, free: 209 MB / 0.7482 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001486/4.197, allocations: 67.86 kB / 1.417 GB, free: 209 MB / 0.7482 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001651/4.198, allocations: 56.92 kB / 1.417 GB, free: 208.9 MB / 0.7482 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.149e-05/4.198, allocations: 39.31 kB / 1.417 GB, free: 208.9 MB / 0.7482 GB Notification: Performance of sorting global known variables: time 0.01909/4.217, allocations: 14.56 MB / 1.431 GB, free: 194.5 MB / 0.7482 GB Notification: Performance of sort global known variables: time 7.61e-07/4.217, allocations: 0 / 1.431 GB, free: 194.5 MB / 0.7482 GB Notification: Performance of remove unused functions: time 0.003546/4.22, allocations: 0.6691 MB / 1.432 GB, free: 193.8 MB / 0.7482 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 (weatherData.weatherData.conTim.tNext,SLP_July.nextEvent,SLP_July.last,SLP_July.nextEventScaled,SLP_July.b,SLP_July.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001517/4.222, allocations: 0.5491 MB / 1.433 GB, free: 193.5 MB / 0.7482 GB Notification: Performance of simCode: created initialization part: time 0.008014/4.23, allocations: 12.51 MB / 1.445 GB, free: 181 MB / 0.7482 GB Notification: Performance of simCode: created event and clocks part: time 7.234e-06/4.23, allocations: 0 / 1.445 GB, free: 181 MB / 0.7482 GB Notification: Performance of simCode: created simulation system equations: time 0.004032/4.234, allocations: 6.391 MB / 1.451 GB, free: 174.6 MB / 0.7482 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004529/4.239, allocations: 0.5381 MB / 1.452 GB, free: 174 MB / 0.7482 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03577/4.274, allocations: 36.4 MB / 1.487 GB, free: 137.6 MB / 0.7482 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006677/4.281, allocations: 7.599 MB / 1.495 GB, free: 130 MB / 0.7482 GB Notification: Performance of simCode: alias equations: time 0.001012/4.282, allocations: 185.8 kB / 1.495 GB, free: 129.8 MB / 0.7482 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002619/4.282, allocations: 95.38 kB / 1.495 GB, free: 129.7 MB / 0.7482 GB Notification: Performance of SimCode: time 1.723e-06/4.282, allocations: 0 / 1.495 GB, free: 129.7 MB / 0.7482 GB Notification: Performance of Templates: time 0.07523/4.358, allocations: 30.58 MB / 1.525 GB, free: 99.22 MB / 0.7482 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)