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: "" <> buildModelFMU(BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem,fileNamePrefix="BuildingSystems_BuildingSystems_Applications_PhotovoltaicSystems_PhotovoltaicSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem,fileNamePrefix="BuildingSystems_BuildingSystems_Applications_PhotovoltaicSystems_PhotovoltaicSystem",fmuType="me",version="2.0",platforms={"static"}) [: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.7885/0.7885, allocations: 141.8 MB / 149.1 MB, free: 2.387 MB / 130.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001343/0.001344, allocations: 181.6 kB / 182 MB, free: 14.38 MB / 162.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 221.3 MB / 436 MB, free: 7.344 MB / 338.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 102.2 kB / 0.507 GB, free: 24.5 MB / 402.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001875/0.001875, allocations: 272.2 kB / 0.5885 GB, free: 10.6 MB / 450.9 MB Notification: Performance of FrontEnd - loaded program: time 0.2355/0.2375, allocations: 89.64 MB / 0.676 GB, free: 0.8789 MB / 0.5184 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5096/0.7471, allocations: 82.76 MB / 0.7568 GB, free: 111.2 MB / 0.534 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1606/0.9078, allocations: 126.3 MB / 0.8801 GB, free: 0.7227 MB / 0.5497 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002758/0.9081, allocations: 83.94 kB / 0.8802 GB, free: 0.6445 MB / 0.5497 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: 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 2.435/3.343, allocations: 483.6 MB / 1.352 GB, free: 71.65 MB / 0.6903 GB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/3.343, allocations: 8 kB / 1.352 GB, free: 71.64 MB / 0.6903 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009871/3.353, allocations: 2.211 MB / 1.355 GB, free: 69.41 MB / 0.6903 GB Notification: Performance of preOpt evaluateParameters (simulation): time 1.961/5.314, allocations: 7.809 MB / 1.362 GB, free: 61.52 MB / 0.6903 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002037/5.314, allocations: 106.4 kB / 1.362 GB, free: 61.4 MB / 0.6903 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001455/5.315, allocations: 47.84 kB / 1.362 GB, free: 61.35 MB / 0.6903 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01235/5.328, allocations: 10.6 MB / 1.373 GB, free: 50.75 MB / 0.6903 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01627/5.344, allocations: 11.38 MB / 1.384 GB, free: 39.32 MB / 0.6903 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.945e-05/5.344, allocations: 7.984 kB / 1.384 GB, free: 39.31 MB / 0.6903 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001203/5.345, allocations: 4 kB / 1.384 GB, free: 39.31 MB / 0.6903 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.956e-05/5.345, allocations: 15.81 kB / 1.384 GB, free: 39.3 MB / 0.6903 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.893/11.24, allocations: 19.19 MB / 1.403 GB, free: 20.01 MB / 0.6903 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01273/11.25, allocations: 10.46 MB / 1.413 GB, free: 9.531 MB / 0.6903 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.4657/11.72, allocations: 9.957 MB / 1.423 GB, free: 238.5 MB / 0.6904 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002051/11.72, allocations: 2.195 MB / 1.425 GB, free: 236.1 MB / 0.6904 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01732/11.74, allocations: 11.15 MB / 1.436 GB, free: 236 MB / 0.6904 GB Notification: Performance of pre-optimization done (n=81): time 7.935e-06/11.74, allocations: 0 / 1.436 GB, free: 236 MB / 0.6904 GB Notification: Performance of matching and sorting (n=81): time 0.05121/11.79, allocations: 23.51 MB / 1.459 GB, free: 235 MB / 0.6904 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.155e-05/11.79, allocations: 164.5 kB / 1.459 GB, free: 234.8 MB / 0.6904 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04363/11.83, allocations: 17.03 MB / 1.475 GB, free: 233.8 MB / 0.6904 GB Notification: Performance of collectPreVariables (initialization): time 0.002992/11.83, allocations: 29.14 kB / 1.475 GB, free: 233.8 MB / 0.6904 GB Notification: Performance of collectInitialEqns (initialization): time 0.006713/11.84, allocations: 2.527 MB / 1.478 GB, free: 233.2 MB / 0.6904 GB Notification: Performance of collectInitialBindings (initialization): time 0.003891/11.84, allocations: 258.9 kB / 1.478 GB, free: 233 MB / 0.6904 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001644/11.85, allocations: 2.344 kB / 1.478 GB, free: 233 MB / 0.6904 GB Notification: Performance of setup shared object (initialization): time 0.0001494/11.85, allocations: 348.3 kB / 1.478 GB, free: 232.7 MB / 0.6904 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01217/11.86, allocations: 9.92 MB / 1.488 GB, free: 231.1 MB / 0.6904 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0122/11.87, allocations: 10.07 MB / 1.498 GB, free: 223.9 MB / 0.6904 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02453/11.9, allocations: 11.06 MB / 1.509 GB, free: 215 MB / 0.6904 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.2e-05/11.9, allocations: 4 kB / 1.509 GB, free: 215 MB / 0.6904 GB Notification: Performance of matching and sorting (n=107) (initialization): time 0.04137/11.94, allocations: 23.64 MB / 1.532 GB, free: 195.2 MB / 0.6904 GB Notification: Performance of prepare postOptimizeDAE: time 2.821e-05/11.94, allocations: 8.562 kB / 1.532 GB, free: 195.2 MB / 0.6904 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.951e-05/11.94, allocations: 6.797 kB / 1.532 GB, free: 195.2 MB / 0.6904 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007736/11.94, allocations: 162.7 kB / 1.532 GB, free: 195.1 MB / 0.6904 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001279/11.94, allocations: 233 kB / 1.532 GB, free: 194.9 MB / 0.6904 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003587/11.94, allocations: 1.922 MB / 1.534 GB, free: 193.1 MB / 0.6904 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005886/11.95, allocations: 153.5 kB / 1.534 GB, free: 193 MB / 0.6904 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003257/11.95, allocations: 1.046 MB / 1.535 GB, free: 192 MB / 0.6904 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.002699/11.95, allocations: 175.2 kB / 1.535 GB, free: 191.8 MB / 0.6904 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004499/11.96, allocations: 1.714 MB / 1.537 GB, free: 190.1 MB / 0.6904 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05097/12.01, allocations: 24.28 MB / 1.561 GB, free: 170.1 MB / 0.6904 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.226e-05/12.01, allocations: 16.47 kB / 1.561 GB, free: 170.1 MB / 0.6904 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/12.01, allocations: 1.875 kB / 1.561 GB, free: 170.1 MB / 0.6904 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-05/12.01, allocations: 3.375 kB / 1.561 GB, free: 170.1 MB / 0.6904 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 2.01/14.02, allocations: 33.68 MB / 1.594 GB, free: 139.5 MB / 0.6904 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.213e-06/14.02, allocations: 0 / 1.594 GB, free: 139.5 MB / 0.6904 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001178/14.02, allocations: 213.1 kB / 1.594 GB, free: 139.3 MB / 0.6904 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000578/14.02, allocations: 138.5 kB / 1.594 GB, free: 139.2 MB / 0.6904 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002113/14.02, allocations: 308 kB / 1.594 GB, free: 138.9 MB / 0.6904 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003357/14.03, allocations: 1.935 MB / 1.596 GB, free: 136.8 MB / 0.6904 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/14.03, allocations: 3.281 kB / 1.596 GB, free: 136.8 MB / 0.6904 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.3984/14.43, allocations: 39.87 MB / 1.635 GB, free: 236.7 MB / 0.6904 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.08819/14.51, allocations: 56.67 MB / 1.691 GB, free: 233.6 MB / 0.6904 GB Notification: Performance of postOpt removeConstants (simulation): time 1.95/16.46, allocations: 4.6 MB / 1.695 GB, free: 232 MB / 0.6904 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004707/16.47, allocations: 5.562 kB / 1.695 GB, free: 232 MB / 0.6904 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005662/16.47, allocations: 99.72 kB / 1.695 GB, free: 232 MB / 0.6904 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003907/16.47, allocations: 56.86 kB / 1.695 GB, free: 232 MB / 0.6904 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.005783/16.48, allocations: 1.039 MB / 1.696 GB, free: 231.8 MB / 0.6904 GB Notification: Performance of sort global known variables: time 0.04834/16.53, allocations: 13.48 MB / 1.709 GB, free: 228.2 MB / 0.6904 GB Notification: Performance of remove unused functions: time 0.005619/16.53, allocations: 0.7348 MB / 1.71 GB, free: 227.9 MB / 0.6904 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.001613/16.54, allocations: 0.5001 MB / 1.711 GB, free: 227.7 MB / 0.6904 GB Notification: Performance of simCode: created initialization part: time 0.01078/16.55, allocations: 12.32 MB / 1.723 GB, free: 216.5 MB / 0.6904 GB Notification: Performance of simCode: created event and clocks part: time 7.294e-06/16.55, allocations: 0 / 1.723 GB, free: 216.5 MB / 0.6904 GB Notification: Performance of simCode: created simulation system equations: time 0.005076/16.55, allocations: 6.283 MB / 1.729 GB, free: 210.8 MB / 0.6904 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008868/16.56, allocations: 0.5167 MB / 1.729 GB, free: 210.3 MB / 0.6904 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08085/16.64, allocations: 30.61 MB / 1.759 GB, free: 182.7 MB / 0.6904 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01485/16.66, allocations: 7.997 MB / 1.767 GB, free: 177.3 MB / 0.6904 GB Notification: Performance of SimCode: time 1.593e-06/16.66, allocations: 0 / 1.767 GB, free: 177.3 MB / 0.6904 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Applications_PhotovoltaicSystems_PhotovoltaicSystem_fmu --startTime=1.57212e+07 --stopTime=1.83996e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Applications_PhotovoltaicSystems_PhotovoltaicSystem.fmu > BuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem.pipe 2>&1)