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.001442/0.001442, allocations: 105.1 kB / 16.41 MB, free: 6.496 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.001671/0.001671, allocations: 189.5 kB / 17.34 MB, free: 5.766 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.48/1.48, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002459/0.002458, allocations: 288.3 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.9651/0.9651, allocations: 169.3 MB / 0.499 GB, free: 4.449 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002035/0.002035, allocations: 95.84 kB / 0.6821 GB, free: 7.016 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5537/0.5558, allocations: 86.98 MB / 0.767 GB, free: 3.934 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem): time 0.008977/0.5648, allocations: 4.586 MB / 0.7715 GB, free: 15.32 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.009279/0.5742, allocations: 4.418 MB / 0.7758 GB, free: 10.89 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00147/0.5757, allocations: 19.88 kB / 0.7758 GB, free: 10.87 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.01872/0.5945, allocations: 14.42 MB / 0.7899 GB, free: 12.42 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.01984/0.6144, allocations: 14.74 MB / 0.8043 GB, free: 13.65 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001927/0.6163, allocations: 0.4921 MB / 0.8048 GB, free: 13.16 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.01216/0.6285, allocations: 7.29 MB / 0.8119 GB, free: 5.859 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006854/0.6293, allocations: 237.6 kB / 0.8121 GB, free: 5.617 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01214/0.6414, allocations: 5.771 MB / 0.8178 GB, free: 15.84 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.02073/0.6622, allocations: 13.96 MB / 0.8314 GB, free: 1.859 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.001405/0.6637, allocations: 76 kB / 0.8315 GB, free: 1.785 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002659/0.6664, allocations: 0.5814 MB / 0.832 GB, free: 1.203 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.004226/0.6706, allocations: 3.927 MB / 0.8359 GB, free: 13.26 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.004739/0.6754, allocations: 4.246 MB / 0.84 GB, free: 8.973 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.01088/0.6863, allocations: 10.25 MB / 0.85 GB, free: 14.68 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 7.855e-06/0.6864, allocations: 0 / 0.85 GB, free: 14.68 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.804e-06/0.6864, allocations: 4 kB / 0.85 GB, free: 14.68 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 0.0003876/0.6868, allocations: 7.938 kB / 0.85 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.0207/0.7075, allocations: 14.45 MB / 0.8641 GB, free: 40 kB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 5.248e-05/0.7075, allocations: 8.031 kB / 0.8642 GB, free: 32 kB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005593/0.7131, allocations: 2.278 MB / 0.8664 GB, free: 13.73 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007657/0.7208, allocations: 5.968 MB / 0.8722 GB, free: 7.66 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001555/0.721, allocations: 127 kB / 0.8723 GB, free: 7.52 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001331/0.7212, allocations: 67.92 kB / 0.8724 GB, free: 7.453 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00584/0.727, allocations: 6.507 MB / 0.8787 GB, free: 0.9102 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.484e-05/0.7271, allocations: 4 kB / 0.8788 GB, free: 0.9062 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.341e-05/0.7272, allocations: 24 kB / 0.8788 GB, free: 0.8828 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.79e-05/0.7272, allocations: 16 kB / 0.8788 GB, free: 0.8672 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006157/0.7334, allocations: 6.51 MB / 0.8851 GB, free: 10.35 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01422/0.7476, allocations: 7.91 MB / 0.8929 GB, free: 2.363 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006727/0.7544, allocations: 6.606 MB / 0.8993 GB, free: 11.75 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004965/0.7594, allocations: 6.085 MB / 0.9053 GB, free: 5.66 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002402/0.7618, allocations: 2.196 MB / 0.9074 GB, free: 2.988 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005329/0.7672, allocations: 6.199 MB / 0.9135 GB, free: 12.77 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=79): time 4.368e-06/0.7672, allocations: 0 / 0.9135 GB, free: 12.77 MB / 0.6856 GB Notification: Performance of matching and sorting (n=79): time 0.03121/0.7984, allocations: 26.13 MB / 0.939 GB, free: 2.574 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001612/0.7987, allocations: 149.1 kB / 0.9391 GB, free: 2.395 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.859/1.658, allocations: 20.82 MB / 0.9595 GB, free: 165.4 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0002384/1.658, allocations: 42.05 kB / 0.9595 GB, free: 165.4 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.008807/1.667, allocations: 8.716 MB / 0.968 GB, free: 158.6 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004098/1.667, allocations: 261 kB / 0.9683 GB, free: 158.5 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003212/1.668, allocations: 171.6 kB / 0.9684 GB, free: 158.4 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 9.18e-05/1.668, allocations: 340.9 kB / 0.9687 GB, free: 158.1 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005926/1.674, allocations: 6.05 MB / 0.9747 GB, free: 157.2 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003914/1.678, allocations: 6.223 MB / 0.9807 GB, free: 156.2 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.921/4.598, allocations: 428.2 MB / 1.399 GB, free: 198.8 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.588e-06/4.599, allocations: 0 / 1.399 GB, free: 198.8 MB / 0.8575 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.01574/4.614, allocations: 19.92 MB / 1.418 GB, free: 182.2 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 6.059e-05/4.614, allocations: 45.62 kB / 1.418 GB, free: 182.2 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.387e-05/4.614, allocations: 8 kB / 1.418 GB, free: 182.2 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006786/4.615, allocations: 136.2 kB / 1.418 GB, free: 182.1 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001023/4.616, allocations: 219.4 kB / 1.419 GB, free: 181.9 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004204/4.62, allocations: 2.114 MB / 1.421 GB, free: 179.8 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002634/4.623, allocations: 124.2 kB / 1.421 GB, free: 179.7 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001457/4.623, allocations: 47.72 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.005449/4.629, allocations: 4.931 MB / 1.426 GB, free: 175.5 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001748/4.63, allocations: 1.717 MB / 1.427 GB, free: 173.8 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01533/4.646, allocations: 20.35 MB / 1.447 GB, free: 154.2 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.095e-05/4.646, allocations: 8 kB / 1.447 GB, free: 154.2 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/4.646, allocations: 0 / 1.447 GB, free: 154.2 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.108e-05/4.646, allocations: 7.922 kB / 1.447 GB, free: 154.2 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02149/4.667, allocations: 24.89 MB / 1.472 GB, free: 129.3 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.939e-06/4.667, allocations: 3.844 kB / 1.472 GB, free: 129.3 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009673/4.668, allocations: 183.8 kB / 1.472 GB, free: 129.1 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005787/4.669, allocations: 120.7 kB / 1.472 GB, free: 129 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.974e-05/4.669, allocations: 23.98 kB / 1.472 GB, free: 129 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003377/4.672, allocations: 1.978 MB / 1.474 GB, free: 126.8 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/4.672, allocations: 0 / 1.474 GB, free: 126.8 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01772/4.69, allocations: 29.49 MB / 1.503 GB, free: 97.28 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004463/4.695, allocations: 1.521 MB / 1.504 GB, free: 95.71 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001287/4.696, allocations: 23.98 kB / 1.504 GB, free: 95.69 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001528/4.698, allocations: 59.94 kB / 1.504 GB, free: 95.63 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001831/4.698, allocations: 64.91 kB / 1.504 GB, free: 95.57 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.454e-05/4.698, allocations: 31.98 kB / 1.504 GB, free: 95.54 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.02107/4.719, allocations: 14.57 MB / 1.519 GB, free: 81.09 MB / 0.8575 GB Notification: Performance of sort global known variables: time 6.11e-07/4.719, allocations: 0 / 1.519 GB, free: 81.09 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.002786/4.722, allocations: 0.6701 MB / 1.519 GB, free: 80.44 MB / 0.8575 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.001321/4.723, allocations: 0.539 MB / 1.52 GB, free: 80.07 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.007473/4.731, allocations: 12.45 MB / 1.532 GB, free: 67.61 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/4.731, allocations: 384 / 1.532 GB, free: 67.61 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.004103/4.735, allocations: 6.384 MB / 1.538 GB, free: 61.2 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004896/4.74, allocations: 0.5494 MB / 1.539 GB, free: 60.64 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04907/4.789, allocations: 36.87 MB / 1.575 GB, free: 23.74 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01021/4.799, allocations: 7.591 MB / 1.582 GB, free: 16.11 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005586/4.8, allocations: 107.3 kB / 1.582 GB, free: 16 MB / 0.8575 GB Notification: Performance of SimCode: time 8.32e-07/4.8, allocations: 0 / 1.582 GB, free: 16 MB / 0.8575 GB Notification: Performance of Templates: time 6.898/11.7, allocations: 2.235 GB / 3.817 GB, free: 81.07 MB / 0.8888 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)