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.001313/0.001313, allocations: 108.9 kB / 16.37 MB, free: 6.016 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.001074/0.001074, allocations: 197.3 kB / 17.31 MB, free: 5.613 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.293/1.293, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002157/0.002157, allocations: 274.2 kB / 291.4 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9347/0.9347, allocations: 169.2 MB / 0.4989 GB, free: 4.457 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001764/0.001764, allocations: 92.83 kB / 0.5967 GB, free: 14.45 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1417, allocations: 86.98 MB / 0.6816 GB, free: 7.469 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem): time 0.005568/0.1473, allocations: 4.594 MB / 0.6861 GB, free: 2.852 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.247/0.3943, allocations: 4.397 MB / 0.6904 GB, free: 12.57 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005373/0.3949, allocations: 20.56 kB / 0.6904 GB, free: 12.57 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.01445/0.4094, allocations: 14.43 MB / 0.7045 GB, free: 11.22 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01234/0.4218, allocations: 14.75 MB / 0.7189 GB, free: 5.137 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001335/0.4231, allocations: 0.494 MB / 0.7194 GB, free: 4.98 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.008508/0.4317, allocations: 7.295 MB / 0.7265 GB, free: 252 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003738/0.4321, allocations: 232.1 kB / 0.7267 GB, free: 76 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00817/0.4402, allocations: 5.762 MB / 0.7323 GB, free: 10.4 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01375/0.454, allocations: 13.96 MB / 0.746 GB, free: 12.52 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0004617/0.4545, allocations: 76 kB / 0.746 GB, free: 12.45 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001382/0.4559, allocations: 0.5836 MB / 0.7466 GB, free: 11.98 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.002347/0.4583, allocations: 3.935 MB / 0.7504 GB, free: 8.383 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.002551/0.4608, allocations: 4.241 MB / 0.7546 GB, free: 4.102 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.007058/0.4679, allocations: 10.24 MB / 0.7646 GB, free: 9.82 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.4679, allocations: 4 kB / 0.7646 GB, free: 9.816 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.845e-06/0.4679, allocations: 3.094 kB / 0.7646 GB, free: 9.816 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.000171/0.4681, allocations: 3.938 kB / 0.7646 GB, free: 9.812 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.0148/0.4829, allocations: 14.45 MB / 0.7787 GB, free: 11.18 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.483, allocations: 11.97 kB / 0.7787 GB, free: 11.17 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004893/0.4879, allocations: 2.281 MB / 0.781 GB, free: 8.867 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006108/0.494, allocations: 5.964 MB / 0.7868 GB, free: 2.801 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001313/0.4941, allocations: 131.4 kB / 0.7869 GB, free: 2.656 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001195/0.4943, allocations: 67.84 kB / 0.787 GB, free: 2.59 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005148/0.4994, allocations: 6.511 MB / 0.7933 GB, free: 12.04 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.073e-05/0.4995, allocations: 0 / 0.7933 GB, free: 12.04 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.19e-05/0.4995, allocations: 24 kB / 0.7934 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.466e-05/0.4996, allocations: 16 kB / 0.7934 GB, free: 12 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005563/0.5051, allocations: 6.506 MB / 0.7997 GB, free: 5.492 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01074/0.5159, allocations: 7.908 MB / 0.8074 GB, free: 13.52 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006006/0.5219, allocations: 6.607 MB / 0.8139 GB, free: 6.902 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004646/0.5266, allocations: 6.081 MB / 0.8198 GB, free: 0.8203 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002455/0.5291, allocations: 2.204 MB / 0.822 GB, free: 14.14 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004789/0.5339, allocations: 6.199 MB / 0.828 GB, free: 7.914 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=79): time 3.436e-06/0.5339, allocations: 0 / 0.828 GB, free: 7.914 MB / 0.5919 GB Notification: Performance of matching and sorting (n=79): time 0.0229/0.5568, allocations: 26.13 MB / 0.8536 GB, free: 13.73 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.653e-05/0.5569, allocations: 141.2 kB / 0.8537 GB, free: 13.56 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02685/0.5838, allocations: 20.83 MB / 0.874 GB, free: 8.895 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001883/0.584, allocations: 41.7 kB / 0.8741 GB, free: 8.848 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.007761/0.5918, allocations: 8.714 MB / 0.8826 GB, free: 132 kB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003659/0.5922, allocations: 264.2 kB / 0.8828 GB, free: 15.87 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003064/0.5925, allocations: 174.4 kB / 0.883 GB, free: 15.69 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001016/0.5926, allocations: 334 kB / 0.8833 GB, free: 15.36 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005049/0.5977, allocations: 6.049 MB / 0.8892 GB, free: 9.305 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005646/0.6034, allocations: 6.223 MB / 0.8953 GB, free: 2.996 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.93/3.533, allocations: 428.1 MB / 1.313 GB, free: 215.2 MB / 0.7482 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.784e-06/3.533, allocations: 4 kB / 1.313 GB, free: 215.2 MB / 0.7482 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.01235/3.546, allocations: 19.92 MB / 1.333 GB, free: 198.7 MB / 0.7482 GB Notification: Performance of prepare postOptimizeDAE: time 4.537e-05/3.546, allocations: 45.36 kB / 1.333 GB, free: 198.6 MB / 0.7482 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.232e-05/3.546, allocations: 8 kB / 1.333 GB, free: 198.6 MB / 0.7482 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000659/3.547, allocations: 146.7 kB / 1.333 GB, free: 198.5 MB / 0.7482 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009708/3.548, allocations: 211.4 kB / 1.333 GB, free: 198.3 MB / 0.7482 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004144/3.552, allocations: 2.12 MB / 1.335 GB, free: 196.3 MB / 0.7482 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002469/3.554, allocations: 122 kB / 1.335 GB, free: 196.2 MB / 0.7482 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001084/3.554, allocations: 47.72 kB / 1.335 GB, free: 196.1 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.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.004525/3.559, allocations: 4.931 MB / 1.34 GB, free: 192 MB / 0.7482 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00145/3.56, allocations: 1.717 MB / 1.342 GB, free: 190.3 MB / 0.7482 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01288/3.573, allocations: 20.35 MB / 1.362 GB, free: 171.1 MB / 0.7482 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.029e-05/3.573, allocations: 12 kB / 1.362 GB, free: 171.1 MB / 0.7482 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/3.573, allocations: 0 / 1.362 GB, free: 171.1 MB / 0.7482 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.116e-05/3.573, allocations: 11.91 kB / 1.362 GB, free: 171.1 MB / 0.7482 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01852/3.592, allocations: 24.89 MB / 1.386 GB, free: 146.1 MB / 0.7482 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/3.592, allocations: 0 / 1.386 GB, free: 146.1 MB / 0.7482 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009706/3.593, allocations: 179.7 kB / 1.386 GB, free: 145.9 MB / 0.7482 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005721/3.593, allocations: 120.8 kB / 1.386 GB, free: 145.8 MB / 0.7482 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.836e-05/3.593, allocations: 23.98 kB / 1.386 GB, free: 145.8 MB / 0.7482 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003395/3.597, allocations: 1.977 MB / 1.388 GB, free: 143.7 MB / 0.7482 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/3.597, allocations: 0 / 1.388 GB, free: 143.7 MB / 0.7482 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01645/3.613, allocations: 29.5 MB / 1.417 GB, free: 114.1 MB / 0.7482 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003154/3.617, allocations: 1.527 MB / 1.419 GB, free: 112.6 MB / 0.7482 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009235/3.617, allocations: 19.98 kB / 1.419 GB, free: 112.6 MB / 0.7482 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001598/3.619, allocations: 59.94 kB / 1.419 GB, free: 112.5 MB / 0.7482 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001493/3.619, allocations: 68.91 kB / 1.419 GB, free: 112.4 MB / 0.7482 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.807e-05/3.619, allocations: 35.97 kB / 1.419 GB, free: 112.4 MB / 0.7482 GB Notification: Performance of sorting global known variables: time 0.0179/3.637, allocations: 14.56 MB / 1.433 GB, free: 97.96 MB / 0.7482 GB Notification: Performance of sort global known variables: time 3.41e-07/3.637, allocations: 0 / 1.433 GB, free: 97.96 MB / 0.7482 GB Notification: Performance of remove unused functions: time 0.002039/3.639, allocations: 0.676 MB / 1.434 GB, free: 97.3 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.001163/3.64, allocations: 0.533 MB / 1.434 GB, free: 96.94 MB / 0.7482 GB Notification: Performance of simCode: created initialization part: time 0.007053/3.648, allocations: 12.44 MB / 1.446 GB, free: 84.48 MB / 0.7482 GB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/3.648, allocations: 0 / 1.446 GB, free: 84.48 MB / 0.7482 GB Notification: Performance of simCode: created simulation system equations: time 0.003865/3.651, allocations: 6.389 MB / 1.453 GB, free: 78.06 MB / 0.7482 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0033/3.655, allocations: 0.5554 MB / 1.453 GB, free: 77.51 MB / 0.7482 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03603/3.691, allocations: 36.01 MB / 1.488 GB, free: 41.47 MB / 0.7482 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008097/3.699, allocations: 7.603 MB / 1.496 GB, free: 33.83 MB / 0.7482 GB Notification: Performance of simCode: alias equations: time 0.0008032/3.7, allocations: 185.7 kB / 1.496 GB, free: 33.64 MB / 0.7482 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002753/3.7, allocations: 87.39 kB / 1.496 GB, free: 33.56 MB / 0.7482 GB Notification: Performance of SimCode: time 6.31e-07/3.7, allocations: 0 / 1.496 GB, free: 33.56 MB / 0.7482 GB Notification: Performance of Templates: time 0.07026/3.77, allocations: 30.57 MB / 1.526 GB, free: 3.07 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 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem.pipe 2>&1)