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.00147/0.00147, allocations: 105.1 kB / 16.27 MB, free: 6.398 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.001465/0.001465, allocations: 191.8 kB / 17.2 MB, free: 5.969 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.322/1.322, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002193/0.002193, allocations: 286.6 kB / 291.3 MB, free: 14.53 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9747/0.9747, allocations: 169.3 MB / 0.4988 GB, free: 4.5 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002086/0.002086, allocations: 94.44 kB / 0.5959 GB, free: 15.15 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1695/0.1716, allocations: 86.97 MB / 0.6808 GB, free: 8.195 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem): time 0.00631/0.1779, allocations: 4.587 MB / 0.6853 GB, free: 3.578 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.2972/0.4752, allocations: 4.418 MB / 0.6896 GB, free: 11.93 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007877/0.476, allocations: 18.78 kB / 0.6896 GB, free: 11.93 MB / 494.1 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.01694/0.493, allocations: 14.43 MB / 0.7037 GB, free: 10.7 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01402/0.5071, allocations: 14.74 MB / 0.7181 GB, free: 4.672 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001406/0.5085, allocations: 0.4945 MB / 0.7186 GB, free: 4.539 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.009781/0.5183, allocations: 7.286 MB / 0.7257 GB, free: 184 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004633/0.5188, allocations: 237.4 kB / 0.7259 GB, free: 12 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009699/0.5285, allocations: 5.754 MB / 0.7316 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01584/0.5444, allocations: 13.96 MB / 0.7452 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0006234/0.545, allocations: 80 kB / 0.7453 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001574/0.5466, allocations: 0.5728 MB / 0.7458 GB, free: 12.26 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.002549/0.5492, allocations: 3.937 MB / 0.7497 GB, free: 8.758 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.002665/0.5518, allocations: 4.237 MB / 0.7538 GB, free: 4.57 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.007168/0.559, allocations: 10.04 MB / 0.7636 GB, free: 10.49 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.5591, allocations: 0 / 0.7636 GB, free: 10.49 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.844e-06/0.5591, allocations: 0 / 0.7636 GB, free: 10.49 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.0001871/0.5593, allocations: 0 / 0.7636 GB, free: 10.49 MB / 0.5294 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.01443/0.5737, allocations: 14.45 MB / 0.7777 GB, free: 11.86 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.5737, allocations: 12.02 kB / 0.7777 GB, free: 11.85 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005224/0.579, allocations: 2.286 MB / 0.78 GB, free: 9.539 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005387/0.5844, allocations: 5.96 MB / 0.7858 GB, free: 3.477 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001333/0.5845, allocations: 127.4 kB / 0.7859 GB, free: 3.336 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001202/0.5847, allocations: 67.89 kB / 0.786 GB, free: 3.27 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005247/0.5899, allocations: 6.507 MB / 0.7923 GB, free: 12.72 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.211e-05/0.59, allocations: 0 / 0.7923 GB, free: 12.72 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.144e-05/0.59, allocations: 28 kB / 0.7924 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.476e-05/0.5901, allocations: 12 kB / 0.7924 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005943/0.596, allocations: 6.514 MB / 0.7987 GB, free: 6.168 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01128/0.6073, allocations: 7.91 MB / 0.8065 GB, free: 14.19 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006046/0.6134, allocations: 6.609 MB / 0.8129 GB, free: 7.574 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004389/0.6178, allocations: 6.082 MB / 0.8188 GB, free: 1.488 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002212/0.6201, allocations: 2.2 MB / 0.821 GB, free: 14.81 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004618/0.6247, allocations: 6.192 MB / 0.827 GB, free: 8.594 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=79): time 3.386e-06/0.6247, allocations: 3.562 kB / 0.827 GB, free: 8.594 MB / 0.5919 GB Notification: Performance of matching and sorting (n=79): time 0.02311/0.6478, allocations: 26.14 MB / 0.8526 GB, free: 14.39 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.075e-05/0.6479, allocations: 137.2 kB / 0.8527 GB, free: 14.23 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02696/0.6749, allocations: 20.82 MB / 0.873 GB, free: 9.57 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0002109/0.6752, allocations: 41.7 kB / 0.8731 GB, free: 9.523 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.007901/0.6831, allocations: 8.711 MB / 0.8816 GB, free: 0.8086 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003818/0.6835, allocations: 268.2 kB / 0.8818 GB, free: 0.543 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002879/0.6838, allocations: 170.5 kB / 0.882 GB, free: 380 kB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001057/0.6839, allocations: 341.9 kB / 0.8823 GB, free: 32 kB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004475/0.6884, allocations: 6.049 MB / 0.8882 GB, free: 9.973 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004613/0.693, allocations: 6.228 MB / 0.8943 GB, free: 3.66 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.385/4.078, allocations: 428.1 MB / 1.312 GB, free: 216 MB / 0.7482 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.528e-06/4.078, allocations: 8 kB / 1.312 GB, free: 216 MB / 0.7482 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.01245/4.09, allocations: 19.92 MB / 1.332 GB, free: 199.5 MB / 0.7482 GB Notification: Performance of prepare postOptimizeDAE: time 5.1e-05/4.09, allocations: 41.69 kB / 1.332 GB, free: 199.5 MB / 0.7482 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/4.09, allocations: 4.594 kB / 1.332 GB, free: 199.5 MB / 0.7482 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00068/4.091, allocations: 148.5 kB / 1.332 GB, free: 199.3 MB / 0.7482 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009529/4.092, allocations: 207.5 kB / 1.332 GB, free: 199.1 MB / 0.7482 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004121/4.096, allocations: 2.119 MB / 1.334 GB, free: 197.1 MB / 0.7482 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002367/4.099, allocations: 131.7 kB / 1.334 GB, free: 197 MB / 0.7482 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.17e-05/4.099, allocations: 44.28 kB / 1.335 GB, free: 197 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.00467/4.103, allocations: 4.942 MB / 1.339 GB, free: 192.8 MB / 0.7482 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001587/4.105, allocations: 1.716 MB / 1.341 GB, free: 191.1 MB / 0.7482 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01328/4.118, allocations: 20.35 MB / 1.361 GB, free: 171.9 MB / 0.7482 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.938e-06/4.118, allocations: 11.94 kB / 1.361 GB, free: 171.9 MB / 0.7482 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/4.118, allocations: 0 / 1.361 GB, free: 171.9 MB / 0.7482 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.195e-05/4.118, allocations: 11.91 kB / 1.361 GB, free: 171.9 MB / 0.7482 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01822/4.137, allocations: 24.89 MB / 1.385 GB, free: 146.9 MB / 0.7482 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/4.137, allocations: 0 / 1.385 GB, free: 146.9 MB / 0.7482 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009487/4.138, allocations: 187.7 kB / 1.385 GB, free: 146.8 MB / 0.7482 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005813/4.138, allocations: 112.8 kB / 1.385 GB, free: 146.6 MB / 0.7482 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.936e-05/4.138, allocations: 23.98 kB / 1.386 GB, free: 146.6 MB / 0.7482 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003477/4.142, allocations: 1.977 MB / 1.387 GB, free: 144.5 MB / 0.7482 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/4.142, allocations: 0 / 1.387 GB, free: 144.5 MB / 0.7482 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01634/4.158, allocations: 29.5 MB / 1.416 GB, free: 114.9 MB / 0.7482 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002872/4.161, allocations: 1.518 MB / 1.418 GB, free: 113.4 MB / 0.7482 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009053/4.162, allocations: 24 kB / 1.418 GB, free: 113.4 MB / 0.7482 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001533/4.164, allocations: 59.94 kB / 1.418 GB, free: 113.3 MB / 0.7482 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000152/4.164, allocations: 60.91 kB / 1.418 GB, free: 113.3 MB / 0.7482 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.169e-05/4.164, allocations: 39.98 kB / 1.418 GB, free: 113.2 MB / 0.7482 GB Notification: Performance of sorting global known variables: time 0.01972/4.184, allocations: 14.57 MB / 1.432 GB, free: 98.77 MB / 0.7482 GB Notification: Performance of sort global known variables: time 6.91e-07/4.184, allocations: 0 / 1.432 GB, free: 98.77 MB / 0.7482 GB Notification: Performance of remove unused functions: time 0.002205/4.186, allocations: 0.6694 MB / 1.433 GB, free: 98.12 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.00122/4.187, allocations: 0.5393 MB / 1.433 GB, free: 97.76 MB / 0.7482 GB Notification: Performance of simCode: created initialization part: time 0.007776/4.195, allocations: 12.51 MB / 1.446 GB, free: 85.24 MB / 0.7482 GB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/4.195, allocations: 384 / 1.446 GB, free: 85.24 MB / 0.7482 GB Notification: Performance of simCode: created simulation system equations: time 0.004072/4.199, allocations: 6.392 MB / 1.452 GB, free: 78.82 MB / 0.7482 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004581/4.203, allocations: 0.5562 MB / 1.452 GB, free: 78.27 MB / 0.7482 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03628/4.24, allocations: 37.24 MB / 1.489 GB, free: 40.98 MB / 0.7482 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006562/4.246, allocations: 7.595 MB / 1.496 GB, free: 33.35 MB / 0.7482 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005049/4.247, allocations: 107.4 kB / 1.496 GB, free: 33.24 MB / 0.7482 GB Notification: Performance of SimCode: time 9.82e-07/4.247, allocations: 0 / 1.496 GB, free: 33.24 MB / 0.7482 GB Notification: Performance of Templates: time 6.436/10.68, allocations: 2.233 GB / 3.729 GB, free: 56.04 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)