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.001136/0.001136, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 195.5 kB / 16.14 MB, free: 6.715 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.3/1.3, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002094/0.002094, allocations: 275.2 kB / 290.2 MB, free: 2.219 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9582/0.9582, allocations: 169.2 MB / 0.4977 GB, free: 14.15 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001784/0.001784, allocations: 90.66 kB / 0.5945 GB, free: 28.27 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.263, allocations: 86.99 MB / 0.6794 GB, free: 1.184 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem): time 0.007665/0.2708, allocations: 4.602 MB / 0.6839 GB, free: 12.57 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00826/0.2791, allocations: 4.438 MB / 0.6883 GB, free: 8.125 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007584/0.2799, allocations: 19.88 kB / 0.6883 GB, free: 8.105 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.01522/0.2952, allocations: 14.39 MB / 0.7023 GB, free: 9.684 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.01761/0.3129, allocations: 14.66 MB / 0.7166 GB, free: 11 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.002103/0.315, allocations: 435 kB / 0.7171 GB, free: 10.58 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.01374/0.3288, allocations: 7.223 MB / 0.7241 GB, free: 3.344 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007027/0.3295, allocations: 230.9 kB / 0.7243 GB, free: 3.105 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01142/0.3409, allocations: 5.073 MB / 0.7293 GB, free: 14.02 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.02118/0.3622, allocations: 13.8 MB / 0.7428 GB, free: 212 kB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0007337/0.363, allocations: 36 kB / 0.7428 GB, free: 176 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002176/0.3652, allocations: 0.5463 MB / 0.7433 GB, free: 15.62 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.004196/0.3694, allocations: 4.301 MB / 0.7475 GB, free: 11.31 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.004198/0.3736, allocations: 4.196 MB / 0.7516 GB, free: 7.07 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0117/0.3853, allocations: 9.825 MB / 0.7612 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 1.194e-05/0.3854, allocations: 0 / 0.7612 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.885e-06/0.3854, allocations: 0 / 0.7612 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0005045/0.3859, allocations: 0 / 0.7612 GB, free: 13.2 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.6653/1.051, allocations: 14.45 MB / 0.7753 GB, free: 83.7 MB / 0.5607 GB Notification: Performance of prepare preOptimizeDAE: time 7.267e-05/1.051, allocations: 10 kB / 0.7753 GB, free: 83.7 MB / 0.5607 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005694/1.057, allocations: 2.277 MB / 0.7776 GB, free: 82.72 MB / 0.5607 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006208/1.063, allocations: 5.962 MB / 0.7834 GB, free: 79.02 MB / 0.5607 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001263/1.063, allocations: 138.1 kB / 0.7835 GB, free: 78.93 MB / 0.5607 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001232/1.064, allocations: 60.59 kB / 0.7836 GB, free: 78.93 MB / 0.5607 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005661/1.069, allocations: 6.505 MB / 0.7899 GB, free: 78.02 MB / 0.5607 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.243e-05/1.069, allocations: 3.938 kB / 0.7899 GB, free: 78.02 MB / 0.5607 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.124e-05/1.069, allocations: 26.38 kB / 0.79 GB, free: 78 MB / 0.5607 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.573e-05/1.069, allocations: 15.19 kB / 0.79 GB, free: 78 MB / 0.5607 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009547/1.079, allocations: 6.505 MB / 0.7963 GB, free: 77.02 MB / 0.5607 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0137/1.093, allocations: 7.91 MB / 0.804 GB, free: 73.62 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005137/1.098, allocations: 6.61 MB / 0.8105 GB, free: 67.52 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003501/1.101, allocations: 6.082 MB / 0.8164 GB, free: 61.43 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00186/1.103, allocations: 2.196 MB / 0.8186 GB, free: 58.77 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003693/1.107, allocations: 6.197 MB / 0.8246 GB, free: 52.55 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=79): time 4.478e-06/1.107, allocations: 4 kB / 0.8246 GB, free: 52.55 MB / 0.5607 GB Notification: Performance of matching and sorting (n=79): time 0.0205/1.128, allocations: 26.13 MB / 0.8502 GB, free: 26.38 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.579e-05/1.128, allocations: 145.2 kB / 0.8503 GB, free: 26.21 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02454/1.152, allocations: 20.82 MB / 0.8706 GB, free: 5.547 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0002277/1.152, allocations: 41.7 kB / 0.8707 GB, free: 5.5 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.007312/1.16, allocations: 8.711 MB / 0.8792 GB, free: 12.78 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.000429/1.16, allocations: 268 kB / 0.8794 GB, free: 12.52 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003227/1.161, allocations: 172.5 kB / 0.8796 GB, free: 12.35 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001363/1.161, allocations: 337.9 kB / 0.8799 GB, free: 12.01 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005504/1.166, allocations: 6.05 MB / 0.8858 GB, free: 5.961 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005431/1.172, allocations: 6.223 MB / 0.8919 GB, free: 15.66 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.62/3.792, allocations: 428.2 MB / 1.31 GB, free: 6.418 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/3.792, allocations: 4 kB / 1.31 GB, free: 6.414 MB / 0.7325 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.01614/3.808, allocations: 19.92 MB / 1.329 GB, free: 5.914 MB / 0.7482 GB Notification: Performance of prepare postOptimizeDAE: time 5.615e-05/3.808, allocations: 41.81 kB / 1.33 GB, free: 5.871 MB / 0.7482 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.544e-05/3.808, allocations: 8.578 kB / 1.33 GB, free: 5.863 MB / 0.7482 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007825/3.809, allocations: 145.8 kB / 1.33 GB, free: 5.738 MB / 0.7482 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001148/3.81, allocations: 215.5 kB / 1.33 GB, free: 5.535 MB / 0.7482 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2772/4.087, allocations: 1.977 MB / 1.332 GB, free: 267.4 MB / 0.7482 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003482/4.091, allocations: 123 kB / 1.332 GB, free: 267.4 MB / 0.7482 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001889/4.091, allocations: 45.47 kB / 1.332 GB, free: 267.4 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.006373/4.097, allocations: 4.937 MB / 1.337 GB, free: 267.2 MB / 0.7482 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001978/4.099, allocations: 1.715 MB / 1.338 GB, free: 267.2 MB / 0.7482 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02453/4.124, allocations: 20.36 MB / 1.358 GB, free: 264.9 MB / 0.7482 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.419e-05/4.124, allocations: 8 kB / 1.358 GB, free: 264.9 MB / 0.7482 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/4.124, allocations: 0 / 1.358 GB, free: 264.9 MB / 0.7482 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.502e-05/4.124, allocations: 7.547 kB / 1.358 GB, free: 264.9 MB / 0.7482 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01977/4.144, allocations: 24.9 MB / 1.383 GB, free: 243 MB / 0.7482 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/4.144, allocations: 0 / 1.383 GB, free: 243 MB / 0.7482 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009801/4.145, allocations: 189.7 kB / 1.383 GB, free: 242.8 MB / 0.7482 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007221/4.145, allocations: 127.7 kB / 1.383 GB, free: 242.7 MB / 0.7482 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.091e-05/4.146, allocations: 27.97 kB / 1.383 GB, free: 242.6 MB / 0.7482 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002778/4.148, allocations: 1.765 MB / 1.385 GB, free: 240.8 MB / 0.7482 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/4.148, allocations: 1.656 kB / 1.385 GB, free: 240.8 MB / 0.7482 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01676/4.165, allocations: 29.49 MB / 1.414 GB, free: 211.3 MB / 0.7482 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002784/4.168, allocations: 1.527 MB / 1.415 GB, free: 209.7 MB / 0.7482 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009432/4.169, allocations: 25.78 kB / 1.415 GB, free: 209.7 MB / 0.7482 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001586/4.17, allocations: 66.09 kB / 1.415 GB, free: 209.6 MB / 0.7482 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00016/4.171, allocations: 64 kB / 1.415 GB, free: 209.6 MB / 0.7482 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.512e-05/4.171, allocations: 39.88 kB / 1.415 GB, free: 209.5 MB / 0.7482 GB Notification: Performance of sorting global known variables: time 0.01634/4.187, allocations: 14.57 MB / 1.429 GB, free: 195.1 MB / 0.7482 GB Notification: Performance of sort global known variables: time 2.61e-07/4.187, allocations: 0 / 1.429 GB, free: 195.1 MB / 0.7482 GB Notification: Performance of remove unused functions: time 0.002442/4.19, allocations: 0.67 MB / 1.43 GB, free: 194.4 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.001235/4.191, allocations: 0.5351 MB / 1.431 GB, free: 194.1 MB / 0.7482 GB Notification: Performance of simCode: created initialization part: time 0.007186/4.198, allocations: 12.44 MB / 1.443 GB, free: 181.7 MB / 0.7482 GB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/4.198, allocations: 4 kB / 1.443 GB, free: 181.7 MB / 0.7482 GB Notification: Performance of simCode: created simulation system equations: time 0.003497/4.202, allocations: 6.341 MB / 1.449 GB, free: 175.3 MB / 0.7482 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004368/4.206, allocations: 0.5524 MB / 1.449 GB, free: 174.8 MB / 0.7482 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0374/4.243, allocations: 39.62 MB / 1.488 GB, free: 135.2 MB / 0.7482 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006518/4.25, allocations: 7.592 MB / 1.496 GB, free: 127.5 MB / 0.7482 GB Notification: Performance of simCode: alias equations: time 0.00102/4.251, allocations: 186.2 kB / 1.496 GB, free: 127.4 MB / 0.7482 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002862/4.251, allocations: 91.38 kB / 1.496 GB, free: 127.3 MB / 0.7482 GB Notification: Performance of SimCode: time 5.11e-07/4.251, allocations: 0 / 1.496 GB, free: 127.3 MB / 0.7482 GB Notification: Performance of Templates: time 0.06966/4.321, allocations: 30.19 MB / 1.525 GB, free: 97.17 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)