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.001072/0.001072, allocations: 98.27 kB / 15.36 MB, free: 0.7305 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.00137/0.00137, allocations: 173.4 kB / 16.27 MB, free: 6.664 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.365/1.365, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001768/0.001768, allocations: 274.1 kB / 291.7 MB, free: 1.875 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9409/0.9409, allocations: 169.5 MB / 0.5004 GB, free: 14.13 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004143/0.0004143, allocations: 18.62 kB / 0.5986 GB, free: 28.19 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1389/0.1393, allocations: 88.54 MB / 0.6851 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem): time 0.004511/0.1438, allocations: 4.193 MB / 0.6892 GB, free: 10.9 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.005626/0.1495, allocations: 4.396 MB / 0.6935 GB, free: 6.508 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003484/0.1498, allocations: 19.88 kB / 0.6935 GB, free: 6.488 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0122/0.1621, allocations: 14.39 MB / 0.7076 GB, free: 8.074 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.01331/0.1754, allocations: 14.65 MB / 0.7219 GB, free: 9.395 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.001281/0.1767, allocations: 445.5 kB / 0.7223 GB, free: 8.969 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.008369/0.1851, allocations: 7.215 MB / 0.7293 GB, free: 1.742 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004435/0.1856, allocations: 227 kB / 0.7296 GB, free: 1.5 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007009/0.1926, allocations: 5.053 MB / 0.7345 GB, free: 12.44 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0143/0.2069, allocations: 13.76 MB / 0.7479 GB, free: 14.66 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0004231/0.2074, allocations: 31.94 kB / 0.748 GB, free: 14.63 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001315/0.2087, allocations: 0.5306 MB / 0.7485 GB, free: 14.1 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.00301/0.2117, allocations: 4.289 MB / 0.7527 GB, free: 9.793 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.002672/0.2144, allocations: 4.197 MB / 0.7568 GB, free: 5.547 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.5181/0.7326, allocations: 9.696 MB / 0.7662 GB, free: 53.79 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.7326, allocations: 0 / 0.7662 GB, free: 53.79 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.615e-06/0.7326, allocations: 0 / 0.7662 GB, free: 53.79 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0004153/0.7331, allocations: 1 kB / 0.7662 GB, free: 53.79 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.01967/0.7527, allocations: 12.47 MB / 0.7784 GB, free: 46.32 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.7528, allocations: 9.062 kB / 0.7784 GB, free: 46.32 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005524/0.7583, allocations: 2.304 MB / 0.7807 GB, free: 45.34 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00607/0.7644, allocations: 5.964 MB / 0.7865 GB, free: 41.95 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000128/0.7646, allocations: 131.9 kB / 0.7866 GB, free: 41.86 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001373/0.7647, allocations: 65.06 kB / 0.7867 GB, free: 41.86 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007637/0.7724, allocations: 6.507 MB / 0.793 GB, free: 41.73 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.879e-05/0.7724, allocations: 7.906 kB / 0.793 GB, free: 41.73 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.501e-05/0.7725, allocations: 23.81 kB / 0.7931 GB, free: 41.73 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.798e-05/0.7726, allocations: 14.34 kB / 0.7931 GB, free: 41.73 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006703/0.7793, allocations: 6.522 MB / 0.7995 GB, free: 41.21 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01396/0.7933, allocations: 7.918 MB / 0.8072 GB, free: 37.84 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005359/0.7987, allocations: 6.624 MB / 0.8137 GB, free: 34.88 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003568/0.8023, allocations: 6.089 MB / 0.8196 GB, free: 29 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00177/0.8041, allocations: 2.201 MB / 0.8217 GB, free: 26.33 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003839/0.8079, allocations: 6.203 MB / 0.8278 GB, free: 20.12 MB / 0.545 GB Notification: Performance of pre-optimization done (n=79): time 3.797e-06/0.808, allocations: 0 / 0.8278 GB, free: 20.12 MB / 0.545 GB Notification: Performance of matching and sorting (n=79): time 0.02153/0.8295, allocations: 26.15 MB / 0.8533 GB, free: 9.91 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.489e-05/0.8296, allocations: 144.5 kB / 0.8535 GB, free: 9.742 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03938/0.869, allocations: 20.84 MB / 0.8738 GB, free: 5.07 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0002171/0.8693, allocations: 37.7 kB / 0.8739 GB, free: 5.027 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.01268/0.8819, allocations: 8.736 MB / 0.8824 GB, free: 12.39 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004709/0.8825, allocations: 263.6 kB / 0.8827 GB, free: 12.14 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001297/0.8826, allocations: 77.67 kB / 0.8827 GB, free: 12.05 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001294/0.8827, allocations: 334 kB / 0.883 GB, free: 11.72 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005012/0.8878, allocations: 6.054 MB / 0.889 GB, free: 5.664 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00513/0.8929, allocations: 6.231 MB / 0.895 GB, free: 15.35 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.239/4.131, allocations: 494.8 MB / 1.378 GB, free: 224.9 MB / 0.7482 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.578e-06/4.131, allocations: 4 kB / 1.378 GB, free: 224.9 MB / 0.7482 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.01385/4.145, allocations: 19.94 MB / 1.398 GB, free: 208.4 MB / 0.7482 GB Notification: Performance of prepare postOptimizeDAE: time 5.095e-05/4.145, allocations: 33.7 kB / 1.398 GB, free: 208.4 MB / 0.7482 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.282e-05/4.145, allocations: 11.98 kB / 1.398 GB, free: 208.4 MB / 0.7482 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006775/4.146, allocations: 145.8 kB / 1.398 GB, free: 208.2 MB / 0.7482 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001105/4.147, allocations: 220 kB / 1.398 GB, free: 208 MB / 0.7482 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004115/4.151, allocations: 2.005 MB / 1.4 GB, free: 206.1 MB / 0.7482 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003142/4.155, allocations: 135.1 kB / 1.4 GB, free: 206 MB / 0.7482 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001747/4.155, allocations: 43.72 kB / 1.4 GB, free: 206 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.007338/4.162, allocations: 4.927 MB / 1.405 GB, free: 201.8 MB / 0.7482 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002094/4.164, allocations: 1.719 MB / 1.407 GB, free: 200.1 MB / 0.7482 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01628/4.18, allocations: 20.37 MB / 1.427 GB, free: 180.9 MB / 0.7482 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.299e-05/4.181, allocations: 12 kB / 1.427 GB, free: 180.8 MB / 0.7482 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/4.181, allocations: 0 / 1.427 GB, free: 180.8 MB / 0.7482 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.541e-05/4.181, allocations: 3.984 kB / 1.427 GB, free: 180.8 MB / 0.7482 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02361/4.204, allocations: 24.91 MB / 1.451 GB, free: 155.9 MB / 0.7482 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/4.204, allocations: 3.938 kB / 1.451 GB, free: 155.9 MB / 0.7482 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001002/4.205, allocations: 187.7 kB / 1.451 GB, free: 155.7 MB / 0.7482 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007396/4.206, allocations: 132.8 kB / 1.451 GB, free: 155.6 MB / 0.7482 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.238e-05/4.206, allocations: 23.98 kB / 1.451 GB, free: 155.6 MB / 0.7482 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00286/4.209, allocations: 1.785 MB / 1.453 GB, free: 153.6 MB / 0.7482 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/4.209, allocations: 4.047 kB / 1.453 GB, free: 153.6 MB / 0.7482 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01807/4.227, allocations: 29.52 MB / 1.482 GB, free: 124.1 MB / 0.7482 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00283/4.23, allocations: 1.532 MB / 1.483 GB, free: 122.5 MB / 0.7482 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001326/4.231, allocations: 16 kB / 1.483 GB, free: 122.5 MB / 0.7482 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001924/4.233, allocations: 81.17 kB / 1.483 GB, free: 122.4 MB / 0.7482 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001516/4.233, allocations: 64.84 kB / 1.484 GB, free: 122.3 MB / 0.7482 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.588e-05/4.233, allocations: 37.19 kB / 1.484 GB, free: 122.3 MB / 0.7482 GB Notification: Performance of sorting global known variables: time 0.02471/4.258, allocations: 14.56 MB / 1.498 GB, free: 107.9 MB / 0.7482 GB Notification: Performance of sort global known variables: time 7.51e-07/4.258, allocations: 4 kB / 1.498 GB, free: 107.9 MB / 0.7482 GB Notification: Performance of remove unused functions: time 0.00281/4.261, allocations: 0.6727 MB / 1.498 GB, free: 107.2 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.001265/4.262, allocations: 0.5342 MB / 1.499 GB, free: 106.9 MB / 0.7482 GB Notification: Performance of simCode: created initialization part: time 0.007503/4.27, allocations: 12.45 MB / 1.511 GB, free: 94.4 MB / 0.7482 GB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/4.27, allocations: 384 / 1.511 GB, free: 94.4 MB / 0.7482 GB Notification: Performance of simCode: created simulation system equations: time 0.003813/4.274, allocations: 6.349 MB / 1.517 GB, free: 88.02 MB / 0.7482 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005265/4.279, allocations: 0.5494 MB / 1.518 GB, free: 87.47 MB / 0.7482 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04859/4.328, allocations: 39.76 MB / 1.557 GB, free: 47.68 MB / 0.7482 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01142/4.339, allocations: 7.599 MB / 1.564 GB, free: 40.04 MB / 0.7482 GB Notification: Performance of simCode: alias equations: time 0.001047/4.34, allocations: 181.8 kB / 1.564 GB, free: 39.86 MB / 0.7482 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000288/4.34, allocations: 87.39 kB / 1.564 GB, free: 39.77 MB / 0.7482 GB Notification: Performance of SimCode: time 1.062e-06/4.34, allocations: 4 kB / 1.564 GB, free: 39.77 MB / 0.7482 GB Notification: Performance of Templates: time 0.08255/4.423, allocations: 30.09 MB / 1.594 GB, free: 9.766 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)