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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7511/0.7511, allocations: 141.8 MB / 149.1 MB, free: 1.215 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 189.3 kB / 182 MB, free: 464 kB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.357/1.357, allocations: 221.3 MB / 436 MB, free: 5.082 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001018/0.001018, allocations: 100.5 kB / 0.5071 GB, free: 1.727 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002107/0.002107, allocations: 267.8 kB / 0.5885 GB, free: 46.93 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 8.806e-06/8.976e-06, allocations: 1.219 kB / 0.6759 GB, free: 59.62 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2053/0.2053, allocations: 82.79 MB / 0.7567 GB, free: 392 kB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.898/1.103, allocations: 126.3 MB / 0.88 GB, free: 26.15 MB / 0.542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002209/1.104, allocations: 77.05 kB / 0.8801 GB, free: 26.15 MB / 0.542 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Interfaces/RadiationPort.mo:2:1-11:18:writable] Warning: Connector .BuildingSystems.Interfaces.RadiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). Notification: Performance of FrontEnd: time 1.981/3.085, allocations: 472.9 MB / 1.342 GB, free: 62.73 MB / 0.7139 GB Notification: Performance of Transformations before backend: time 0.002199/3.087, allocations: 204 kB / 1.342 GB, free: 62.53 MB / 0.7139 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.0328/3.12, allocations: 10.47 MB / 1.352 GB, free: 52.75 MB / 0.7139 GB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/3.12, allocations: 12.03 kB / 1.352 GB, free: 52.74 MB / 0.7139 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01139/3.131, allocations: 2.211 MB / 1.355 GB, free: 50.51 MB / 0.7139 GB Notification: Performance of preOpt evaluateParameters (simulation): time 1.945/5.076, allocations: 7.818 MB / 1.362 GB, free: 43.34 MB / 0.7139 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002309/5.077, allocations: 102.4 kB / 1.362 GB, free: 43.22 MB / 0.7139 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001113/5.078, allocations: 39.91 kB / 1.362 GB, free: 43.18 MB / 0.7139 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0164/5.094, allocations: 10.6 MB / 1.373 GB, free: 34.3 MB / 0.7139 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02633/5.12, allocations: 11.39 MB / 1.384 GB, free: 23.01 MB / 0.7139 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.061e-05/5.121, allocations: 0 / 1.384 GB, free: 23.01 MB / 0.7139 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003129/5.124, allocations: 0 / 1.384 GB, free: 23.01 MB / 0.7139 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.206e-05/5.124, allocations: 20 kB / 1.384 GB, free: 22.99 MB / 0.7139 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.169/11.29, allocations: 19.2 MB / 1.403 GB, free: 274.1 MB / 0.7139 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01308/11.31, allocations: 10.45 MB / 1.413 GB, free: 274.1 MB / 0.7139 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01256/11.32, allocations: 9.951 MB / 1.422 GB, free: 274.1 MB / 0.7139 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002219/11.32, allocations: 2.2 MB / 1.425 GB, free: 271.6 MB / 0.7139 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01476/11.34, allocations: 11.15 MB / 1.436 GB, free: 271.5 MB / 0.7139 GB Notification: Performance of pre-optimization done (n=81): time 4.479e-06/11.34, allocations: 3.562 kB / 1.436 GB, free: 271.5 MB / 0.7139 GB Notification: Performance of matching and sorting (n=81): time 0.05682/11.39, allocations: 23.5 MB / 1.458 GB, free: 267.7 MB / 0.7139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001206/11.39, allocations: 165.6 kB / 1.459 GB, free: 267.5 MB / 0.7139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0515/11.44, allocations: 17.03 MB / 1.475 GB, free: 255 MB / 0.7139 GB Notification: Performance of collectPreVariables (initialization): time 0.003261/11.45, allocations: 28.33 kB / 1.475 GB, free: 254.9 MB / 0.7139 GB Notification: Performance of collectInitialEqns (initialization): time 0.008024/11.46, allocations: 2.529 MB / 1.478 GB, free: 253 MB / 0.7139 GB Notification: Performance of collectInitialBindings (initialization): time 0.004968/11.46, allocations: 265 kB / 1.478 GB, free: 252.8 MB / 0.7139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003158/11.46, allocations: 3.094 kB / 1.478 GB, free: 252.8 MB / 0.7139 GB Notification: Performance of setup shared object (initialization): time 0.0001399/11.46, allocations: 337.7 kB / 1.478 GB, free: 252.5 MB / 0.7139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01161/11.48, allocations: 9.929 MB / 1.488 GB, free: 244.2 MB / 0.7139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01272/11.49, allocations: 10.05 MB / 1.498 GB, free: 235.8 MB / 0.7139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0214/11.51, allocations: 11.08 MB / 1.509 GB, free: 226.8 MB / 0.7139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.469e-05/11.51, allocations: 0 / 1.509 GB, free: 226.8 MB / 0.7139 GB Notification: Performance of matching and sorting (n=107) (initialization): time 0.04781/11.56, allocations: 23.64 MB / 1.532 GB, free: 207 MB / 0.7139 GB Notification: Performance of prepare postOptimizeDAE: time 2.339e-05/11.56, allocations: 9.781 kB / 1.532 GB, free: 207 MB / 0.7139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.966e-05/11.56, allocations: 4 kB / 1.532 GB, free: 207 MB / 0.7139 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007462/11.56, allocations: 157.7 kB / 1.532 GB, free: 206.9 MB / 0.7139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001445/11.56, allocations: 239.7 kB / 1.532 GB, free: 206.7 MB / 0.7139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003647/11.56, allocations: 1.898 MB / 1.534 GB, free: 204.9 MB / 0.7139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007306/11.57, allocations: 162.1 kB / 1.534 GB, free: 204.8 MB / 0.7139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004905/11.58, allocations: 1.043 MB / 1.535 GB, free: 203.8 MB / 0.7139 GB Warning: Assuming fixed start value for the following 4 variables: battery.E_discharged:VARIABLE(start = 0.0 unit = "J" ) "Total energy taken from the battery" type: Real battery.E_charged:VARIABLE(start = 0.0 unit = "J" ) "Total energy charged to the battery" type: Real battery.EBou:VARIABLE(start = (1.0 - battery.c) * battery.SOC_start * battery.E_nominal unit = "J" ) "Bound charge of the battery" type: Real battery.EAva:VARIABLE(start = battery.c * battery.SOC_start * battery.E_nominal unit = "J" ) "Available charge of the battery" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition2,$whenCondition1,$PRE.weatherData.weatherData.conTim.tNext,weatherData.weatherData.conTim.tNext,SLP_July.a,SLP_July.b,SLP_July.last,$PRE.SLP_July.nextEvent,SLP_July.nextEvent,SLP_July.nextEventScaled,radiation.outsidePolarCircle,Eload.local_reset,EGrid.local_reset,EField.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (101): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.003999/11.58, allocations: 181.8 kB / 1.535 GB, free: 203.6 MB / 0.7139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006025/11.59, allocations: 1.72 MB / 1.537 GB, free: 201.8 MB / 0.7139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05262/11.64, allocations: 24.27 MB / 1.561 GB, free: 177.7 MB / 0.7139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.231e-05/11.64, allocations: 11.91 kB / 1.561 GB, free: 177.7 MB / 0.7139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/11.64, allocations: 5.297 kB / 1.561 GB, free: 177.7 MB / 0.7139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.828e-05/11.64, allocations: 3.984 kB / 1.561 GB, free: 177.6 MB / 0.7139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 2.195/13.83, allocations: 33.68 MB / 1.594 GB, free: 144 MB / 0.7139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.108e-05/13.83, allocations: 3.172 kB / 1.594 GB, free: 144 MB / 0.7139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001409/13.83, allocations: 211.6 kB / 1.594 GB, free: 143.8 MB / 0.7139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005928/13.84, allocations: 143.8 kB / 1.594 GB, free: 143.6 MB / 0.7139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003226/13.84, allocations: 304 kB / 1.594 GB, free: 143.3 MB / 0.7139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003437/13.84, allocations: 1.931 MB / 1.596 GB, free: 141.3 MB / 0.7139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/13.84, allocations: 0 / 1.596 GB, free: 141.3 MB / 0.7139 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.3868/14.23, allocations: 39.87 MB / 1.635 GB, free: 268.7 MB / 0.7139 GB Notification: Performance of postOpt removeConstants (simulation): time 2.012/16.24, allocations: 4.601 MB / 1.64 GB, free: 267.5 MB / 0.7139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004569/16.25, allocations: 11.59 kB / 1.64 GB, free: 267.5 MB / 0.7139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005297/16.25, allocations: 98.27 kB / 1.64 GB, free: 267.5 MB / 0.7139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002652/16.25, allocations: 52.22 kB / 1.64 GB, free: 267.5 MB / 0.7139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003218/16.25, allocations: 1.039 MB / 1.641 GB, free: 267.5 MB / 0.7139 GB Notification: Performance of sort global known variables: time 0.04167/16.3, allocations: 13.48 MB / 1.654 GB, free: 265.5 MB / 0.7139 GB Notification: Performance of remove unused functions: time 0.00517/16.3, allocations: 0.7092 MB / 1.655 GB, free: 265.5 MB / 0.7139 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 (SLP_July.nextEvent,SLP_July.last,SLP_July.nextEventScaled,SLP_July.b,SLP_July.a,$whenCondition1,weatherData.weatherData.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001654/16.3, allocations: 0.4926 MB / 1.655 GB, free: 265.4 MB / 0.7139 GB Notification: Performance of simCode: created initialization part: time 0.01413/16.32, allocations: 12.32 MB / 1.667 GB, free: 263.5 MB / 0.7139 GB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/16.32, allocations: 0 / 1.667 GB, free: 263.5 MB / 0.7139 GB Notification: Performance of simCode: created simulation system equations: time 0.006461/16.32, allocations: 6.279 MB / 1.673 GB, free: 262.5 MB / 0.7139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0103/16.33, allocations: 0.5121 MB / 1.674 GB, free: 262 MB / 0.7139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07464/16.41, allocations: 30.6 MB / 1.704 GB, free: 235.5 MB / 0.7139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02116/16.43, allocations: 7.985 MB / 1.711 GB, free: 230.1 MB / 0.7139 GB Notification: Performance of SimCode: time 2.144e-06/16.43, allocations: 4 kB / 1.711 GB, free: 230.1 MB / 0.7139 GB Notification: Performance of Templates: time 0.1202/16.55, allocations: 33.02 MB / 1.744 GB, free: 207.2 MB / 0.7139 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)