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.001626/0.001625, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002195/0.002195, allocations: 192.6 kB / 16.14 MB, free: 6.641 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.505/1.505, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002876/0.002876, allocations: 286.6 kB / 290.2 MB, free: 2.195 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.14/1.14, allocations: 178.6 MB / 0.5068 GB, free: 4.801 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002883/0.002883, allocations: 99.36 kB / 0.6057 GB, free: 24.91 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2602/0.2631, allocations: 89.16 MB / 0.6928 GB, free: 4.867 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem): time 0.007435/0.2706, allocations: 4.6 MB / 0.6973 GB, free: 256 kB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.008065/0.2787, allocations: 4.449 MB / 0.7016 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009419/0.2797, allocations: 15.88 kB / 0.7016 GB, free: 11.77 MB / 0.4981 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.0157/0.2954, allocations: 14.4 MB / 0.7157 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.01736/0.3128, allocations: 14.65 MB / 0.73 GB, free: 14.67 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.001872/0.3148, allocations: 434.7 kB / 0.7304 GB, free: 14.25 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.01382/0.3286, allocations: 7.223 MB / 0.7375 GB, free: 7.012 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006837/0.3293, allocations: 231.7 kB / 0.7377 GB, free: 6.777 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01162/0.341, allocations: 5.077 MB / 0.7426 GB, free: 1.691 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0205/0.3615, allocations: 13.8 MB / 0.7561 GB, free: 3.875 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0006561/0.3622, allocations: 36 kB / 0.7562 GB, free: 3.84 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001844/0.3641, allocations: 0.5385 MB / 0.7567 GB, free: 3.301 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.4341/0.7982, allocations: 4.296 MB / 0.7609 GB, free: 37.36 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.005019/0.8033, allocations: 4.2 MB / 0.765 GB, free: 34.64 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.01212/0.8154, allocations: 9.822 MB / 0.7746 GB, free: 31.83 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 9.077e-06/0.8155, allocations: 2.562 kB / 0.7746 GB, free: 31.83 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.354e-06/0.8155, allocations: 0 / 0.7746 GB, free: 31.83 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0008462/0.8164, allocations: 0 / 0.7746 GB, free: 31.83 MB / 0.545 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.03463/0.851, allocations: 14.46 MB / 0.7887 GB, free: 22.51 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.403e-05/0.8511, allocations: 9.531 kB / 0.7887 GB, free: 22.51 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007431/0.8585, allocations: 2.283 MB / 0.7909 GB, free: 21.53 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008373/0.8669, allocations: 5.962 MB / 0.7968 GB, free: 18.02 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001528/0.8671, allocations: 131.2 kB / 0.7969 GB, free: 17.91 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001389/0.8673, allocations: 65.81 kB / 0.7969 GB, free: 17.89 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008708/0.876, allocations: 6.506 MB / 0.8033 GB, free: 16.8 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.889e-05/0.8761, allocations: 1.156 kB / 0.8033 GB, free: 16.8 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.988e-05/0.8761, allocations: 21.94 kB / 0.8033 GB, free: 16.78 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.036e-05/0.8762, allocations: 14.69 kB / 0.8033 GB, free: 16.78 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005784/0.882, allocations: 6.511 MB / 0.8097 GB, free: 15.81 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02392/0.9059, allocations: 7.901 MB / 0.8174 GB, free: 12.45 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005988/0.912, allocations: 6.611 MB / 0.8239 GB, free: 11.39 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003568/0.9156, allocations: 6.082 MB / 0.8298 GB, free: 10.52 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001872/0.9175, allocations: 2.201 MB / 0.832 GB, free: 7.996 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003737/0.9212, allocations: 6.198 MB / 0.838 GB, free: 2.469 MB / 0.545 GB Notification: Performance of pre-optimization done (n=79): time 4.859e-06/0.9212, allocations: 1.5 kB / 0.838 GB, free: 2.469 MB / 0.545 GB Notification: Performance of matching and sorting (n=79): time 0.03144/0.9527, allocations: 26.16 MB / 0.8636 GB, free: 8.648 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001191/0.9529, allocations: 145.2 kB / 0.8637 GB, free: 8.477 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0596/1.012, allocations: 20.83 MB / 0.884 GB, free: 3.816 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0005042/1.013, allocations: 37.7 kB / 0.8841 GB, free: 3.773 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.02181/1.035, allocations: 8.72 MB / 0.8926 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006336/1.036, allocations: 262 kB / 0.8928 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005275/1.036, allocations: 178.4 kB / 0.893 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001698/1.036, allocations: 345.9 kB / 0.8933 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006894/1.043, allocations: 6.045 MB / 0.8992 GB, free: 4.23 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007199/1.05, allocations: 6.22 MB / 0.9053 GB, free: 13.93 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.71/3.76, allocations: 428.2 MB / 1.323 GB, free: 13.01 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.937e-06/3.761, allocations: 0 / 1.323 GB, free: 13.01 MB / 0.7637 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.6803/4.441, allocations: 19.91 MB / 1.343 GB, free: 278.4 MB / 0.7638 GB Notification: Performance of prepare postOptimizeDAE: time 7.583e-05/4.441, allocations: 46.5 kB / 1.343 GB, free: 278.4 MB / 0.7638 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.008e-05/4.441, allocations: 7 kB / 1.343 GB, free: 278.4 MB / 0.7638 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008057/4.442, allocations: 142.3 kB / 1.343 GB, free: 278.4 MB / 0.7638 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00132/4.443, allocations: 214.5 kB / 1.343 GB, free: 278.3 MB / 0.7638 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004737/4.448, allocations: 1.98 MB / 1.345 GB, free: 277.1 MB / 0.7638 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005248/4.453, allocations: 124.7 kB / 1.345 GB, free: 277.1 MB / 0.7638 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002978/4.453, allocations: 46.89 kB / 1.345 GB, free: 277.1 MB / 0.7638 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.01234/4.466, allocations: 4.929 MB / 1.35 GB, free: 276.9 MB / 0.7638 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004972/4.471, allocations: 1.717 MB / 1.352 GB, free: 276 MB / 0.7638 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02199/4.493, allocations: 20.37 MB / 1.372 GB, free: 261.8 MB / 0.7638 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.249e-05/4.493, allocations: 10 kB / 1.372 GB, free: 261.8 MB / 0.7638 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/4.493, allocations: 0 / 1.372 GB, free: 261.8 MB / 0.7638 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.339e-05/4.493, allocations: 3.984 kB / 1.372 GB, free: 261.8 MB / 0.7638 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0366/4.53, allocations: 24.9 MB / 1.396 GB, free: 237.9 MB / 0.7638 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.646e-06/4.53, allocations: 0 / 1.396 GB, free: 237.9 MB / 0.7638 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00108/4.531, allocations: 187.4 kB / 1.396 GB, free: 237.7 MB / 0.7638 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000724/4.531, allocations: 135 kB / 1.396 GB, free: 237.6 MB / 0.7638 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001072/4.532, allocations: 23.98 kB / 1.396 GB, free: 237.5 MB / 0.7638 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002873/4.534, allocations: 1.764 MB / 1.398 GB, free: 235.6 MB / 0.7638 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/4.534, allocations: 3.984 kB / 1.398 GB, free: 235.6 MB / 0.7638 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02072/4.555, allocations: 29.49 MB / 1.427 GB, free: 206.1 MB / 0.7638 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008143/4.563, allocations: 1.526 MB / 1.428 GB, free: 204.6 MB / 0.7638 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004378/4.568, allocations: 16 kB / 1.428 GB, free: 204.5 MB / 0.7638 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004499/4.572, allocations: 77.52 kB / 1.429 GB, free: 204.5 MB / 0.7638 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002608/4.573, allocations: 60.92 kB / 1.429 GB, free: 204.4 MB / 0.7638 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001023/4.573, allocations: 35.97 kB / 1.429 GB, free: 204.4 MB / 0.7638 GB Notification: Performance of sorting global known variables: time 0.03951/4.612, allocations: 14.56 MB / 1.443 GB, free: 189.9 MB / 0.7638 GB Notification: Performance of sort global known variables: time 8.01e-07/4.612, allocations: 2 kB / 1.443 GB, free: 189.9 MB / 0.7638 GB Notification: Performance of remove unused functions: time 0.00465/4.617, allocations: 0.6682 MB / 1.443 GB, free: 189.3 MB / 0.7638 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.002204/4.619, allocations: 0.5403 MB / 1.444 GB, free: 189 MB / 0.7638 GB Notification: Performance of simCode: created initialization part: time 0.008628/4.628, allocations: 12.44 MB / 1.456 GB, free: 176.5 MB / 0.7638 GB Notification: Performance of simCode: created event and clocks part: time 6.221e-06/4.628, allocations: 0 / 1.456 GB, free: 176.5 MB / 0.7638 GB Notification: Performance of simCode: created simulation system equations: time 0.004056/4.632, allocations: 6.342 MB / 1.462 GB, free: 170.2 MB / 0.7638 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008251/4.64, allocations: 0.5516 MB / 1.463 GB, free: 169.6 MB / 0.7638 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08055/4.721, allocations: 39.62 MB / 1.502 GB, free: 130 MB / 0.7638 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02178/4.743, allocations: 7.599 MB / 1.509 GB, free: 122.4 MB / 0.7638 GB Notification: Performance of simCode: alias equations: time 0.001346/4.744, allocations: 187.1 kB / 1.509 GB, free: 122.2 MB / 0.7638 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004454/4.745, allocations: 95.31 kB / 1.509 GB, free: 122.1 MB / 0.7638 GB Notification: Performance of SimCode: time 1.283e-06/4.745, allocations: 4 kB / 1.509 GB, free: 122.1 MB / 0.7638 GB Notification: Performance of Templates: time 0.1078/4.852, allocations: 30.18 MB / 1.539 GB, free: 91.99 MB / 0.7638 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)