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.001105/0.001105, allocations: 114 kB / 16.42 MB, free: 6.449 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.001303/0.001303, allocations: 192.4 kB / 17.35 MB, free: 5.734 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.385/1.385, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002213/0.002213, allocations: 288.2 kB / 291.5 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9683/0.9683, allocations: 169.3 MB / 0.499 GB, free: 4.457 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002035/0.002035, allocations: 95.86 kB / 0.6821 GB, free: 7.012 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4961/0.4982, allocations: 86.97 MB / 0.767 GB, free: 3.945 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem): time 0.006784/0.505, allocations: 4.594 MB / 0.7715 GB, free: 15.33 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.007222/0.5123, allocations: 4.414 MB / 0.7758 GB, free: 10.89 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000902/0.5132, allocations: 15.88 kB / 0.7758 GB, free: 10.88 MB / 0.545 GB [/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.01681/0.5301, allocations: 14.43 MB / 0.7899 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.01635/0.5465, allocations: 14.76 MB / 0.8043 GB, free: 13.64 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001585/0.5481, allocations: 498 kB / 0.8048 GB, free: 13.16 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.009554/0.5577, allocations: 7.286 MB / 0.8119 GB, free: 5.859 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005074/0.5582, allocations: 245.6 kB / 0.8121 GB, free: 5.609 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01276/0.571, allocations: 5.767 MB / 0.8178 GB, free: 15.83 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.02142/0.5925, allocations: 13.96 MB / 0.8314 GB, free: 1.855 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.001755/0.5943, allocations: 76 kB / 0.8315 GB, free: 1.781 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003477/0.5978, allocations: 0.5892 MB / 0.8321 GB, free: 1.191 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.004928/0.6028, allocations: 3.93 MB / 0.8359 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.004636/0.6075, allocations: 4.239 MB / 0.84 GB, free: 8.965 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.009096/0.6166, allocations: 10.25 MB / 0.8501 GB, free: 14.67 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.6167, allocations: 0 / 0.8501 GB, free: 14.67 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.853e-06/0.6167, allocations: 0 / 0.8501 GB, free: 14.67 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 0.0002601/0.6169, allocations: 0 / 0.8501 GB, free: 14.67 MB / 0.6231 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.01825/0.6352, allocations: 14.45 MB / 0.8642 GB, free: 36 kB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 5.403e-05/0.6353, allocations: 8.031 kB / 0.8642 GB, free: 28 kB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005619/0.6409, allocations: 2.278 MB / 0.8664 GB, free: 13.72 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007753/0.6487, allocations: 5.968 MB / 0.8722 GB, free: 7.652 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001574/0.6489, allocations: 131 kB / 0.8724 GB, free: 7.508 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001422/0.649, allocations: 63.94 kB / 0.8724 GB, free: 7.445 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006045/0.6551, allocations: 6.503 MB / 0.8788 GB, free: 0.9062 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.326e-05/0.6551, allocations: 8 kB / 0.8788 GB, free: 0.8984 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.876e-05/0.6552, allocations: 23.98 kB / 0.8788 GB, free: 0.875 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.845e-05/0.6552, allocations: 16 kB / 0.8788 GB, free: 0.8594 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005871/0.6611, allocations: 6.51 MB / 0.8852 GB, free: 10.34 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01383/0.675, allocations: 7.91 MB / 0.8929 GB, free: 2.359 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006515/0.6815, allocations: 6.606 MB / 0.8993 GB, free: 11.74 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004843/0.6864, allocations: 6.082 MB / 0.9053 GB, free: 5.656 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002359/0.6888, allocations: 2.196 MB / 0.9074 GB, free: 2.984 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005137/0.694, allocations: 6.199 MB / 0.9135 GB, free: 12.76 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=79): time 4.889e-06/0.694, allocations: 0 / 0.9135 GB, free: 12.76 MB / 0.6856 GB Notification: Performance of matching and sorting (n=79): time 0.02531/0.7193, allocations: 26.13 MB / 0.939 GB, free: 2.57 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.463e-05/0.7195, allocations: 145.2 kB / 0.9391 GB, free: 2.395 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.8293/1.549, allocations: 20.82 MB / 0.9595 GB, free: 165.4 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0002448/1.549, allocations: 36.89 kB / 0.9595 GB, free: 165.4 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.009241/1.558, allocations: 8.714 MB / 0.968 GB, free: 158.5 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004065/1.559, allocations: 274.1 kB / 0.9683 GB, free: 158.5 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003108/1.559, allocations: 169.3 kB / 0.9684 GB, free: 158.4 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.173e-05/1.559, allocations: 335.9 kB / 0.9688 GB, free: 158.1 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01091/1.57, allocations: 6.052 MB / 0.9747 GB, free: 157.2 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005087/1.575, allocations: 6.232 MB / 0.9808 GB, free: 156.1 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.966/4.542, allocations: 428.1 MB / 1.399 GB, free: 198.7 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-05/4.542, allocations: 7.75 kB / 1.399 GB, free: 198.7 MB / 0.8575 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.01354/4.555, allocations: 19.91 MB / 1.418 GB, free: 182.2 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.226e-05/4.555, allocations: 45.56 kB / 1.418 GB, free: 182.2 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/4.555, allocations: 4 kB / 1.418 GB, free: 182.2 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006936/4.556, allocations: 148.7 kB / 1.419 GB, free: 182 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009867/4.557, allocations: 211.4 kB / 1.419 GB, free: 181.8 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004325/4.561, allocations: 2.12 MB / 1.421 GB, free: 179.8 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002488/4.564, allocations: 124 kB / 1.421 GB, free: 179.7 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.717e-05/4.564, allocations: 47.77 kB / 1.421 GB, free: 179.7 MB / 0.8575 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.685 * 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.005238/4.569, allocations: 4.936 MB / 1.426 GB, free: 175.5 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001384/4.571, allocations: 1.713 MB / 1.427 GB, free: 173.8 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01318/4.584, allocations: 20.36 MB / 1.447 GB, free: 154.2 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.603e-05/4.584, allocations: 3.984 kB / 1.447 GB, free: 154.2 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/4.584, allocations: 0 / 1.447 GB, free: 154.2 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002827/4.587, allocations: 1.524 MB / 1.449 GB, free: 152.7 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009287/4.588, allocations: 28 kB / 1.449 GB, free: 152.6 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00154/4.589, allocations: 67.92 kB / 1.449 GB, free: 152.6 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001558/4.589, allocations: 60.92 kB / 1.449 GB, free: 152.5 MB / 0.8575 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01056/4.6, allocations: 18.27 MB / 1.467 GB, free: 134.2 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01587/4.616, allocations: 29.49 MB / 1.496 GB, free: 104.7 MB / 0.8575 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003367/4.619, allocations: 6.13 MB / 1.502 GB, free: 98.54 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.01765/4.637, allocations: 14.57 MB / 1.516 GB, free: 84.09 MB / 0.8575 GB Notification: Performance of Backend: time 7.41e-07/4.637, allocations: 0 / 1.516 GB, free: 84.09 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.007493/4.645, allocations: 7.055 MB / 1.523 GB, free: 77.25 MB / 0.8575 GB Notification: Performance of SimCode: time 0.03257/4.677, allocations: 31.63 MB / 1.554 GB, free: 45.55 MB / 0.8575 GB Notification: Performance of Templates: time 0.0779/4.755, allocations: 32.9 MB / 1.586 GB, free: 12.72 MB / 0.8575 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)