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.001972/0.001972, allocations: 106 kB / 16.46 MB, free: 6.66 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.001851/0.001851, allocations: 186.9 kB / 17.39 MB, free: 5.77 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.631/1.631, allocations: 225.6 MB / 243.8 MB, free: 14.03 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003056/0.003056, allocations: 301.7 kB / 296.9 MB, free: 11.59 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.364/1.364, allocations: 180.9 MB / 0.5183 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002824/0.002824, allocations: 90.53 kB / 0.7154 GB, free: 39.85 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2403/0.2431, allocations: 94.16 MB / 0.8074 GB, free: 6.672 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem): time 0.009614/0.2527, allocations: 4.625 MB / 0.8119 GB, free: 2.594 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.008644/0.2613, allocations: 4.426 MB / 0.8162 GB, free: 14.15 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009164/0.2623, allocations: 19.88 kB / 0.8162 GB, free: 14.13 MB / 0.5762 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.01562/0.2779, allocations: 14.42 MB / 0.8303 GB, free: 15.68 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.01735/0.2952, allocations: 14.76 MB / 0.8447 GB, free: 0.9023 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001852/0.2971, allocations: 0.4973 MB / 0.8452 GB, free: 416 kB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.01257/0.3097, allocations: 7.294 MB / 0.8523 GB, free: 9.098 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005327/0.3102, allocations: 159.1 kB / 0.8525 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01216/0.3224, allocations: 5.771 MB / 0.8581 GB, free: 3.145 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.02432/0.3467, allocations: 16.07 MB / 0.8738 GB, free: 3.047 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0006431/0.3473, allocations: 80 kB / 0.8739 GB, free: 2.969 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001724/0.349, allocations: 0.5853 MB / 0.8745 GB, free: 2.383 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.003481/0.3525, allocations: 3.934 MB / 0.8783 GB, free: 14.43 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.004221/0.3567, allocations: 4.235 MB / 0.8825 GB, free: 10.16 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.01673/0.3735, allocations: 10.34 MB / 0.8926 GB, free: 15.76 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 1.019e-05/0.3735, allocations: 0 / 0.8926 GB, free: 15.76 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.884e-06/0.3735, allocations: 0 / 0.8926 GB, free: 15.76 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 0.0006483/0.3741, allocations: 4 kB / 0.8926 GB, free: 15.75 MB / 0.6544 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.03239/0.4065, allocations: 15.13 MB / 0.9073 GB, free: 460 kB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 6.847e-05/0.4066, allocations: 8.031 kB / 0.9073 GB, free: 452 kB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007647/0.4142, allocations: 2.382 MB / 0.9097 GB, free: 14.04 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01039/0.4246, allocations: 6.153 MB / 0.9157 GB, free: 7.812 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002171/0.4248, allocations: 134.9 kB / 0.9158 GB, free: 7.664 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003152/0.4252, allocations: 63.94 kB / 0.9159 GB, free: 7.602 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009078/0.4342, allocations: 6.499 MB / 0.9222 GB, free: 1.062 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.304e-05/0.4343, allocations: 4 kB / 0.9222 GB, free: 1.059 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001453/0.4344, allocations: 24 kB / 0.9222 GB, free: 1.035 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.679e-05/0.4344, allocations: 16 kB / 0.9223 GB, free: 1.02 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00878/0.4432, allocations: 6.514 MB / 0.9286 GB, free: 10.5 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02028/0.4635, allocations: 7.895 MB / 0.9363 GB, free: 2.531 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008934/0.4724, allocations: 6.558 MB / 0.9427 GB, free: 11.96 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007969/0.4804, allocations: 6.039 MB / 0.9486 GB, free: 5.914 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003345/0.4838, allocations: 2.204 MB / 0.9508 GB, free: 3.23 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007077/0.4908, allocations: 6.195 MB / 0.9568 GB, free: 13.01 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=79): time 4.268e-06/0.4908, allocations: 0 / 0.9568 GB, free: 13.01 MB / 0.7169 GB Notification: Performance of matching and sorting (n=79): time 0.03021/0.5211, allocations: 26.23 MB / 0.9824 GB, free: 2.73 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001327/0.5212, allocations: 141.2 kB / 0.9826 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.6506/1.172, allocations: 20.82 MB / 1.003 GB, free: 170.6 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.0002419/1.172, allocations: 41.25 kB / 1.003 GB, free: 170.5 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0111/1.183, allocations: 8.72 MB / 1.011 GB, free: 163.8 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005329/1.184, allocations: 279.7 kB / 1.012 GB, free: 163.7 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004393/1.184, allocations: 170.7 kB / 1.012 GB, free: 163.6 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001009/1.184, allocations: 340.5 kB / 1.012 GB, free: 163.3 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01114/1.195, allocations: 6.052 MB / 1.018 GB, free: 162.5 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004783/1.2, allocations: 6.222 MB / 1.024 GB, free: 161.4 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.106/4.306, allocations: 428.2 MB / 1.442 GB, free: 241.3 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.046e-05/4.306, allocations: 4 kB / 1.442 GB, free: 241.3 MB / 0.9044 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.01417/4.32, allocations: 20 MB / 1.462 GB, free: 224.8 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 5.92e-05/4.32, allocations: 39.11 kB / 1.462 GB, free: 224.8 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.523e-05/4.32, allocations: 8 kB / 1.462 GB, free: 224.7 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007032/4.321, allocations: 144.9 kB / 1.462 GB, free: 224.6 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009694/4.322, allocations: 215.4 kB / 1.462 GB, free: 224.4 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004303/4.326, allocations: 2.126 MB / 1.464 GB, free: 222.4 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003021/4.329, allocations: 123.3 kB / 1.464 GB, free: 222.3 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001045/4.329, allocations: 55.77 kB / 1.464 GB, free: 222.2 MB / 0.9044 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.006074/4.335, allocations: 4.924 MB / 1.469 GB, free: 218.1 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002114/4.338, allocations: 1.808 MB / 1.471 GB, free: 216.3 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01452/4.352, allocations: 20.36 MB / 1.491 GB, free: 196.9 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.33e-05/4.352, allocations: 8 kB / 1.491 GB, free: 196.9 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/4.352, allocations: 1.641 kB / 1.491 GB, free: 196.9 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.242e-05/4.352, allocations: 7.922 kB / 1.491 GB, free: 196.9 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02054/4.373, allocations: 24.89 MB / 1.515 GB, free: 171.9 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/4.373, allocations: 0 / 1.515 GB, free: 171.9 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009216/4.374, allocations: 187.7 kB / 1.515 GB, free: 171.7 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005927/4.374, allocations: 112.8 kB / 1.516 GB, free: 171.6 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.342e-05/4.374, allocations: 31.97 kB / 1.516 GB, free: 171.6 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003457/4.378, allocations: 1.964 MB / 1.518 GB, free: 169.5 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/4.378, allocations: 4.062 kB / 1.518 GB, free: 169.5 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01805/4.396, allocations: 29.59 MB / 1.546 GB, free: 139.9 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0031/4.399, allocations: 1.62 MB / 1.548 GB, free: 138.2 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009751/4.4, allocations: 20 kB / 1.548 GB, free: 138.2 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001564/4.401, allocations: 67.92 kB / 1.548 GB, free: 138.1 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001856/4.402, allocations: 60.92 kB / 1.548 GB, free: 138.1 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.501e-05/4.402, allocations: 32.03 kB / 1.548 GB, free: 138 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.02239/4.424, allocations: 14.56 MB / 1.562 GB, free: 123.6 MB / 0.9044 GB Notification: Performance of sort global known variables: time 3.61e-07/4.424, allocations: 4 kB / 1.562 GB, free: 123.6 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.002646/4.427, allocations: 0.6717 MB / 1.563 GB, free: 122.9 MB / 0.9044 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.001942/4.429, allocations: 0.5425 MB / 1.564 GB, free: 122.6 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.009062/4.438, allocations: 12.37 MB / 1.576 GB, free: 110.2 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/4.438, allocations: 0 / 1.576 GB, free: 110.2 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.004105/4.442, allocations: 6.334 MB / 1.582 GB, free: 103.8 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00383/4.446, allocations: 0.5552 MB / 1.582 GB, free: 103.2 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04033/4.486, allocations: 37.36 MB / 1.619 GB, free: 65.82 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007276/4.493, allocations: 7.595 MB / 1.626 GB, free: 58.18 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005351/4.494, allocations: 99.38 kB / 1.626 GB, free: 58.08 MB / 0.9044 GB Notification: Performance of SimCode: time 2.084e-06/4.494, allocations: 4 kB / 1.626 GB, free: 58.08 MB / 0.9044 GB Notification: Performance of Templates: time 7.235/11.73, allocations: 2.233 GB / 3.859 GB, free: 241.5 MB / 0.9357 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)