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.007734/0.007733, allocations: 109.1 kB / 15.74 MB, free: 6.02 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.001217/0.001217, allocations: 200.2 kB / 16.68 MB, free: 5.938 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.413/1.413, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002074/0.002074, allocations: 285.3 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9604/0.9604, allocations: 169.3 MB / 0.4983 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00198/0.00198, allocations: 95.84 kB / 0.6814 GB, free: 7.039 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6751/0.6771, allocations: 86.97 MB / 0.7663 GB, free: 3.949 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem): time 0.007903/0.6851, allocations: 4.59 MB / 0.7708 GB, free: 15.34 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.00781/0.6929, allocations: 4.418 MB / 0.7751 GB, free: 10.9 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00123/0.6942, allocations: 15.88 kB / 0.7752 GB, free: 10.88 MB / 0.545 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.01489/0.7092, allocations: 14.43 MB / 0.7892 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.01605/0.7253, allocations: 14.74 MB / 0.8036 GB, free: 13.66 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001838/0.7271, allocations: 0.4919 MB / 0.8041 GB, free: 13.17 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.01299/0.7401, allocations: 7.286 MB / 0.8112 GB, free: 5.871 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006478/0.7408, allocations: 237.6 kB / 0.8115 GB, free: 5.629 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01212/0.753, allocations: 5.775 MB / 0.8171 GB, free: 15.84 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01879/0.7718, allocations: 13.96 MB / 0.8307 GB, free: 1.867 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0005721/0.7724, allocations: 80 kB / 0.8308 GB, free: 1.789 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001799/0.7742, allocations: 0.5775 MB / 0.8314 GB, free: 1.211 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.003077/0.7773, allocations: 3.93 MB / 0.8352 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.003327/0.7807, allocations: 4.239 MB / 0.8394 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.009998/0.7907, allocations: 10.25 MB / 0.8494 GB, free: 14.69 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 6.772e-06/0.7907, allocations: 4 kB / 0.8494 GB, free: 14.68 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.873e-06/0.7907, allocations: 0 / 0.8494 GB, free: 14.68 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 0.0002892/0.791, allocations: 0 / 0.8494 GB, free: 14.68 MB / 0.6231 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.02023/0.8113, allocations: 14.45 MB / 0.8635 GB, free: 52 kB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.771e-05/0.8113, allocations: 12.03 kB / 0.8635 GB, free: 40 kB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005648/0.817, allocations: 2.282 MB / 0.8657 GB, free: 13.73 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007476/0.8245, allocations: 5.96 MB / 0.8715 GB, free: 7.672 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001609/0.8247, allocations: 134.9 kB / 0.8717 GB, free: 7.523 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001183/0.8248, allocations: 63.94 kB / 0.8717 GB, free: 7.461 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00604/0.8309, allocations: 6.511 MB / 0.8781 GB, free: 0.9141 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.295e-05/0.8309, allocations: 0 / 0.8781 GB, free: 0.9141 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.621e-05/0.831, allocations: 28 kB / 0.8781 GB, free: 0.8867 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.486e-05/0.831, allocations: 16 kB / 0.8781 GB, free: 0.8711 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006205/0.8372, allocations: 6.502 MB / 0.8845 GB, free: 10.36 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01677/0.854, allocations: 7.902 MB / 0.8922 GB, free: 2.383 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007892/0.862, allocations: 6.61 MB / 0.8987 GB, free: 11.76 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00549/0.8675, allocations: 6.081 MB / 0.9046 GB, free: 5.68 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002493/0.8701, allocations: 2.204 MB / 0.9067 GB, free: 3 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005335/0.8754, allocations: 6.199 MB / 0.9128 GB, free: 12.78 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=79): time 3.276e-06/0.8754, allocations: 0 / 0.9128 GB, free: 12.78 MB / 0.6856 GB Notification: Performance of matching and sorting (n=79): time 0.02668/0.9021, allocations: 26.13 MB / 0.9383 GB, free: 2.582 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000106/0.9023, allocations: 141.1 kB / 0.9385 GB, free: 2.41 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.8442/1.746, allocations: 20.83 MB / 0.9588 GB, free: 165.5 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0002487/1.747, allocations: 38.44 kB / 0.9588 GB, free: 165.4 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.009118/1.756, allocations: 8.71 MB / 0.9673 GB, free: 158.6 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004641/1.756, allocations: 266.2 kB / 0.9676 GB, free: 158.5 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003322/1.757, allocations: 178.6 kB / 0.9678 GB, free: 158.4 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.518e-05/1.757, allocations: 339.3 kB / 0.9681 GB, free: 158.1 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005307/1.762, allocations: 6.05 MB / 0.974 GB, free: 157.3 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003652/1.766, allocations: 6.225 MB / 0.9801 GB, free: 156.2 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.951/4.717, allocations: 428.2 MB / 1.398 GB, free: 198.8 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.754e-06/4.717, allocations: 0 / 1.398 GB, free: 198.8 MB / 0.8575 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.01402/4.731, allocations: 19.92 MB / 1.418 GB, free: 182.2 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.082e-05/4.731, allocations: 33.7 kB / 1.418 GB, free: 182.2 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/4.731, allocations: 8 kB / 1.418 GB, free: 182.2 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006685/4.732, allocations: 148.7 kB / 1.418 GB, free: 182.1 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009051/4.733, allocations: 211.5 kB / 1.418 GB, free: 181.9 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004188/4.737, allocations: 2.118 MB / 1.42 GB, free: 179.8 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002425/4.739, allocations: 121 kB / 1.42 GB, free: 179.7 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.104e-05/4.739, allocations: 47.83 kB / 1.42 GB, free: 179.7 MB / 0.8575 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.005775/4.745, allocations: 4.943 MB / 1.425 GB, free: 175.5 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001305/4.746, allocations: 1.712 MB / 1.427 GB, free: 173.8 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01267/4.759, allocations: 20.37 MB / 1.447 GB, free: 154.3 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.746e-06/4.759, allocations: 8 kB / 1.447 GB, free: 154.2 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/4.759, allocations: 0 / 1.447 GB, free: 154.2 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.231e-05/4.759, allocations: 7.922 kB / 1.447 GB, free: 154.2 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01926/4.778, allocations: 24.89 MB / 1.471 GB, free: 129.3 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.742e-06/4.778, allocations: 0 / 1.471 GB, free: 129.3 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008781/4.779, allocations: 179.7 kB / 1.471 GB, free: 129.1 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005814/4.78, allocations: 116.8 kB / 1.471 GB, free: 129 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.52e-05/4.78, allocations: 31.97 kB / 1.471 GB, free: 129 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003372/4.783, allocations: 1.97 MB / 1.473 GB, free: 126.8 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/4.783, allocations: 0 / 1.473 GB, free: 126.8 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01688/4.8, allocations: 29.5 MB / 1.502 GB, free: 97.29 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003301/4.804, allocations: 1.521 MB / 1.503 GB, free: 95.73 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007027/4.804, allocations: 20 kB / 1.504 GB, free: 95.71 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001377/4.806, allocations: 63.92 kB / 1.504 GB, free: 95.65 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001546/4.806, allocations: 61.69 kB / 1.504 GB, free: 95.59 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.44e-05/4.806, allocations: 35.97 kB / 1.504 GB, free: 95.55 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.01839/4.824, allocations: 14.56 MB / 1.518 GB, free: 81.11 MB / 0.8575 GB Notification: Performance of sort global known variables: time 6.72e-07/4.824, allocations: 0 / 1.518 GB, free: 81.11 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.002265/4.827, allocations: 0.6701 MB / 1.519 GB, free: 80.46 MB / 0.8575 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.00126/4.828, allocations: 0.5404 MB / 1.519 GB, free: 80.09 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.007082/4.835, allocations: 12.44 MB / 1.531 GB, free: 67.63 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/4.835, allocations: 0 / 1.531 GB, free: 67.63 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.003851/4.839, allocations: 6.392 MB / 1.537 GB, free: 61.21 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003599/4.843, allocations: 0.5496 MB / 1.538 GB, free: 60.66 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03451/4.877, allocations: 36.02 MB / 1.573 GB, free: 24.61 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005533/4.883, allocations: 7.591 MB / 1.581 GB, free: 16.98 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0008021/4.883, allocations: 185.8 kB / 1.581 GB, free: 16.8 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002874/4.884, allocations: 83.39 kB / 1.581 GB, free: 16.71 MB / 0.8575 GB Notification: Performance of SimCode: time 8.31e-07/4.884, allocations: 0 / 1.581 GB, free: 16.71 MB / 0.8575 GB Notification: Performance of Templates: time 0.4952/5.379, allocations: 31 MB / 1.611 GB, free: 298.5 MB / 0.8575 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)