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: 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/BuildingSystems 2.0.0-master/package.mo): time 0.8144/0.8144, allocations: 143.4 MB / 159.2 MB, free: 4.914 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001552/0.001552, allocations: 191.1 kB / 191.9 MB, free: 5.723 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.67/1.67, allocations: 222.9 MB / 447.3 MB, free: 5.867 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.00115/0.00115, allocations: 103.7 kB / 0.517 GB, free: 3.715 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002033/0.002033, allocations: 290.1 kB / 0.5973 GB, free: 49.36 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001624/0.001624, allocations: 83.89 kB / 0.6885 GB, free: 3.852 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5233/0.5249, allocations: 81.29 MB / 0.7679 GB, free: 27.64 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem): time 0.005802/0.5308, allocations: 4.576 MB / 0.7724 GB, free: 23.05 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.005996/0.5368, allocations: 4.44 MB / 0.7767 GB, free: 18.59 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007563/0.5376, allocations: 19.88 kB / 0.7767 GB, free: 18.57 MB / 458.7 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.009226/0.5469, allocations: 14.4 MB / 0.7908 GB, free: 4.148 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01415/0.5611, allocations: 14.65 MB / 0.8051 GB, free: 5.477 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001859/0.563, allocations: 430.8 kB / 0.8055 GB, free: 5.059 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.01288/0.5759, allocations: 7.219 MB / 0.8126 GB, free: 13.83 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006176/0.5766, allocations: 231.1 kB / 0.8128 GB, free: 13.59 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01061/0.5872, allocations: 5.077 MB / 0.8177 GB, free: 8.504 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01825/0.6055, allocations: 13.8 MB / 0.8312 GB, free: 10.69 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.0006321/0.6062, allocations: 36 kB / 0.8313 GB, free: 10.65 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001842/0.6081, allocations: 0.5385 MB / 0.8318 GB, free: 10.11 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.003565/0.6116, allocations: 4.305 MB / 0.836 GB, free: 5.793 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.003544/0.6152, allocations: 4.2 MB / 0.8401 GB, free: 1.551 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.01003/0.6252, allocations: 9.809 MB / 0.8497 GB, free: 7.699 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 7.173e-06/0.6253, allocations: 4 kB / 0.8497 GB, free: 7.695 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.884e-06/0.6253, allocations: 0 / 0.8497 GB, free: 7.695 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003824/0.6257, allocations: 0 / 0.8497 GB, free: 7.695 MB / 0.5105 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.02627/0.652, allocations: 14.44 MB / 0.8638 GB, free: 9.078 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.719e-05/0.652, allocations: 15.97 kB / 0.8638 GB, free: 9.062 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006262/0.6583, allocations: 2.286 MB / 0.866 GB, free: 6.754 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009917/0.6683, allocations: 5.956 MB / 0.8718 GB, free: 0.6953 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000222/0.6686, allocations: 131 kB / 0.872 GB, free: 0.5508 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001531/0.6687, allocations: 67.84 kB / 0.872 GB, free: 496 kB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006677/0.6754, allocations: 6.499 MB / 0.8784 GB, free: 9.945 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.964e-05/0.6755, allocations: 0 / 0.8784 GB, free: 9.945 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.753e-05/0.6756, allocations: 28 kB / 0.8784 GB, free: 9.918 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.144e-05/0.6756, allocations: 16 kB / 0.8784 GB, free: 9.902 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006856/0.6825, allocations: 6.502 MB / 0.8848 GB, free: 3.398 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0178/0.7003, allocations: 7.898 MB / 0.8925 GB, free: 11.42 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007556/0.7079, allocations: 6.613 MB / 0.8989 GB, free: 4.801 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.8385/1.546, allocations: 6.077 MB / 0.9049 GB, free: 117.6 MB / 0.5574 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002098/1.549, allocations: 2.201 MB / 0.907 GB, free: 115.1 MB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01252/1.561, allocations: 6.192 MB / 0.9131 GB, free: 114.2 MB / 0.5574 GB Notification: Performance of pre-optimization done (n=79): time 5.079e-06/1.561, allocations: 3.938 kB / 0.9131 GB, free: 114.2 MB / 0.5574 GB Notification: Performance of matching and sorting (n=79): time 0.02537/1.587, allocations: 26.13 MB / 0.9386 GB, free: 95.64 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.095e-05/1.587, allocations: 145.2 kB / 0.9387 GB, free: 95.47 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02879/1.615, allocations: 20.82 MB / 0.9591 GB, free: 74.82 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 0.0002388/1.616, allocations: 41.7 kB / 0.9591 GB, free: 74.77 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 0.006717/1.623, allocations: 8.72 MB / 0.9676 GB, free: 66.12 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004102/1.623, allocations: 266.6 kB / 0.9679 GB, free: 65.87 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002871/1.623, allocations: 178.4 kB / 0.968 GB, free: 65.69 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 6.982e-05/1.623, allocations: 343.9 kB / 0.9684 GB, free: 65.35 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003451/1.627, allocations: 6.043 MB / 0.9743 GB, free: 59.3 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003564/1.63, allocations: 6.229 MB / 0.9803 GB, free: 53 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.678/4.308, allocations: 428.1 MB / 1.398 GB, free: 42.83 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.127e-05/4.308, allocations: 7 kB / 1.398 GB, free: 42.83 MB / 0.698 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.01342/4.322, allocations: 19.92 MB / 1.418 GB, free: 23.84 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 5.324e-05/4.322, allocations: 41.7 kB / 1.418 GB, free: 23.8 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.546e-05/4.322, allocations: 4 kB / 1.418 GB, free: 23.79 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006738/4.322, allocations: 146 kB / 1.418 GB, free: 23.65 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009687/4.323, allocations: 207.7 kB / 1.418 GB, free: 23.45 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004015/4.327, allocations: 1.99 MB / 1.42 GB, free: 21.33 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0028/4.33, allocations: 129.4 kB / 1.42 GB, free: 21.24 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001229/4.33, allocations: 39.97 kB / 1.42 GB, free: 21.2 MB / 0.698 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.005336/4.336, allocations: 4.943 MB / 1.425 GB, free: 16.26 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001838/4.338, allocations: 1.716 MB / 1.427 GB, free: 14.57 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3514/4.689, allocations: 20.34 MB / 1.447 GB, free: 259.8 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.664e-05/4.689, allocations: 10.59 kB / 1.447 GB, free: 259.8 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/4.689, allocations: 2.547 kB / 1.447 GB, free: 259.8 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.555e-05/4.689, allocations: 4.547 kB / 1.447 GB, free: 259.8 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02418/4.713, allocations: 24.9 MB / 1.471 GB, free: 241.4 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.367e-06/4.713, allocations: 0 / 1.471 GB, free: 241.4 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008818/4.714, allocations: 183.3 kB / 1.471 GB, free: 241.2 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007049/4.715, allocations: 135.1 kB / 1.471 GB, free: 241.1 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.461e-05/4.715, allocations: 23.98 kB / 1.471 GB, free: 241.1 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002737/4.718, allocations: 1.773 MB / 1.473 GB, free: 239.2 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/4.718, allocations: 3.938 kB / 1.473 GB, free: 239.2 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 2.502/7.22, allocations: 1.273 GB / 2.746 GB, free: 446.2 MB / 0.9168 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002889/7.223, allocations: 1.521 MB / 2.748 GB, free: 444.7 MB / 0.9168 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006734/7.224, allocations: 23.94 kB / 2.748 GB, free: 444.7 MB / 0.9168 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00147/7.225, allocations: 67.92 kB / 2.748 GB, free: 444.6 MB / 0.9168 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001747/7.225, allocations: 60.91 kB / 2.748 GB, free: 444.5 MB / 0.9168 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.317e-05/7.225, allocations: 31.98 kB / 2.748 GB, free: 444.5 MB / 0.9168 GB Notification: Performance of sorting global known variables: time 0.01878/7.244, allocations: 14.56 MB / 2.762 GB, free: 430.1 MB / 0.9168 GB Notification: Performance of sort global known variables: time 5.11e-07/7.244, allocations: 0 / 2.762 GB, free: 430.1 MB / 0.9168 GB Notification: Performance of remove unused functions: time 0.004967/7.249, allocations: 1.23 MB / 2.763 GB, free: 428.9 MB / 0.9168 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.001595/7.251, allocations: 0.5865 MB / 2.764 GB, free: 428.5 MB / 0.9168 GB Notification: Performance of simCode: created initialization part: time 0.007319/7.258, allocations: 12.44 MB / 2.776 GB, free: 416 MB / 0.9168 GB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/7.258, allocations: 4.062 kB / 2.776 GB, free: 416 MB / 0.9168 GB Notification: Performance of simCode: created simulation system equations: time 0.00354/7.262, allocations: 6.348 MB / 2.782 GB, free: 409.7 MB / 0.9168 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003755/7.265, allocations: 0.55 MB / 2.783 GB, free: 409.1 MB / 0.9168 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04437/7.31, allocations: 40.36 MB / 2.822 GB, free: 368.7 MB / 0.9168 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007778/7.318, allocations: 7.627 MB / 2.83 GB, free: 361 MB / 0.9168 GB Notification: Performance of simCode: alias equations: time 0.002832/7.32, allocations: 372.8 kB / 2.83 GB, free: 360.6 MB / 0.9168 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001076/7.322, allocations: 139.2 kB / 2.83 GB, free: 360.5 MB / 0.9168 GB Notification: Performance of SimCode: time 1.012e-06/7.322, allocations: 0 / 2.83 GB, free: 360.5 MB / 0.9168 GB Notification: Performance of Templates: time 0.1038/7.425, allocations: 53.6 MB / 2.882 GB, free: 306.9 MB / 0.9168 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)