Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.conf.json 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/PhotoVoltaics 2.0.0/package.mo", uses=false) Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/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) Running command: "" <> buildModelFMU(PhotoVoltaics.ComponentTesting.TestIrradiance,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_ComponentTesting_TestIrradiance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.ComponentTesting.TestIrradiance,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_ComponentTesting_TestIrradiance",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/Complex 4.0.0+maint.om/package.mo): time 0.002657/0.002657, allocations: 179.2 kB / 7.457 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.087/1.087, allocations: 221.4 MB / 229.3 MB, free: 3.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008737/0.0008736, allocations: 105.4 kB / 280.1 MB, free: 1.324 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02296/0.02296, allocations: 5.293 MB / 336.2 MB, free: 9.309 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1665/0.1895, allocations: 57.72 MB / 393.9 MB, free: 71.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07294/0.2624, allocations: 51.61 MB / 445.5 MB, free: 19.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2118/0.4742, allocations: 77.31 MB / 0.5106 GB, free: 8.188 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001369/0.4744, allocations: 57.17 kB / 0.5106 GB, free: 8.164 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.01616/0.4905, allocations: 5.221 MB / 0.5157 GB, free: 3.812 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.4906, allocations: 8 kB / 0.5157 GB, free: 3.805 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.464e-05/0.4907, allocations: 11.91 kB / 0.5157 GB, free: 3.793 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002222/0.4909, allocations: 206.7 kB / 0.5159 GB, free: 3.562 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.749e-05/0.4909, allocations: 8 kB / 0.5159 GB, free: 3.555 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.425e-05/0.491, allocations: 11.91 kB / 0.5159 GB, free: 3.543 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002246/0.4912, allocations: 110.5 kB / 0.5161 GB, free: 3.465 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002239/0.4914, allocations: 149.9 kB / 0.5162 GB, free: 3.324 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.734e-06/0.4914, allocations: 0 / 0.5162 GB, free: 3.324 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.186e-05/0.4915, allocations: 4 kB / 0.5162 GB, free: 3.32 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.618e-06/0.4915, allocations: 0 / 0.5162 GB, free: 3.32 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007189/0.4922, allocations: 0.5669 MB / 0.5168 GB, free: 2.77 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002981/0.4925, allocations: 173.8 kB / 0.5169 GB, free: 2.637 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001133/0.4926, allocations: 73.66 kB / 0.517 GB, free: 2.586 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001255/0.4928, allocations: 81.11 kB / 0.5171 GB, free: 2.488 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002221/0.493, allocations: 185 kB / 0.5172 GB, free: 2.312 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 1.683e-06/0.493, allocations: 0 / 0.5172 GB, free: 2.312 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005538/0.4936, allocations: 207.2 kB / 0.5174 GB, free: 2.145 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.558e-05/0.4936, allocations: 132.5 kB / 0.5176 GB, free: 1.984 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.952e-05/0.4937, allocations: 116.9 kB / 0.5177 GB, free: 1.867 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.136e-05/0.4938, allocations: 29.58 kB / 0.5177 GB, free: 1.836 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.17e-05/0.4938, allocations: 96.41 kB / 0.5178 GB, free: 1.738 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.008e-05/0.4939, allocations: 77.52 kB / 0.5179 GB, free: 1.672 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.475e-05/0.4939, allocations: 0 / 0.5179 GB, free: 1.672 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.494, allocations: 326 kB / 0.5182 GB, free: 1.352 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001068/0.4941, allocations: 59.98 kB / 0.5182 GB, free: 1.316 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001262/0.4943, allocations: 105.4 kB / 0.5183 GB, free: 1.223 MB / 330.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: $PRE.irradiance.dayOfYear = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear) (0.1591549430918953 * $START.irradiance.Jprime * /*Real*/(PhotoVoltaics.Functions.dayOfTheYear(31, 12, irradiance.startYear)) = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear)) Notification: Performance of analyzeInitialSystem (initialization): time 0.004139/0.4984, allocations: 0.5532 MB / 0.5189 GB, free: 0.7031 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.4984, allocations: 4 kB / 0.5189 GB, free: 0.6992 MB / 330.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000563/0.499, allocations: 229.8 kB / 0.5191 GB, free: 0.5117 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.499, allocations: 4 kB / 0.5191 GB, free: 0.5078 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.499, allocations: 4 kB / 0.5191 GB, free: 0.5039 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.499, allocations: 0 / 0.5191 GB, free: 0.5039 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003957/0.4994, allocations: 70.48 kB / 0.5192 GB, free: 448 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.4995, allocations: 5.219 kB / 0.5192 GB, free: 444 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00019/0.4997, allocations: 15.84 kB / 0.5192 GB, free: 428 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.71e-05/0.4997, allocations: 11.98 kB / 0.5192 GB, free: 416 kB / 330.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: $PRE.irradiance.dayOfYear = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear) Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.irradiance.year,irradiance.year,$whenCondition1,$whenCondition2,$PRE.irradiance.startDayOfYear,irradiance.startDayOfYear,$PRE.irradiance.dayOfYear,irradiance.dayOfYear,$PRE.irradiance.daysOfYear,irradiance.daysOfYear,irradiance.localDays,integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001365/0.4998, allocations: 151.8 kB / 0.5194 GB, free: 256 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.608e-05/0.4999, allocations: 23.8 kB / 0.5194 GB, free: 232 kB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008773/0.5008, allocations: 378.1 kB / 0.5197 GB, free: 15.92 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.491e-06/0.5008, allocations: 4 kB / 0.5197 GB, free: 15.91 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.5008, allocations: 3.984 kB / 0.5197 GB, free: 15.91 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.5008, allocations: 4 kB / 0.5197 GB, free: 15.91 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002524/0.5011, allocations: 260.5 kB / 0.52 GB, free: 15.65 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.5011, allocations: 0 / 0.52 GB, free: 15.65 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003211/0.5014, allocations: 63.83 kB / 0.5201 GB, free: 15.59 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.5014, allocations: 0 / 0.5201 GB, free: 15.59 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.668e-05/0.5015, allocations: 11.06 kB / 0.5201 GB, free: 15.58 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.5015, allocations: 4 kB / 0.5201 GB, free: 15.58 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.5015, allocations: 0 / 0.5201 GB, free: 15.58 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006633/0.5021, allocations: 411.5 kB / 0.5205 GB, free: 15.26 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008867/0.503, allocations: 0.8781 MB / 0.5213 GB, free: 14.52 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.411e-05/0.5031, allocations: 96.77 kB / 0.5214 GB, free: 14.41 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.719e-05/0.5032, allocations: 11.81 kB / 0.5214 GB, free: 14.4 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001757/0.5033, allocations: 12.11 kB / 0.5214 GB, free: 14.39 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.281e-05/0.5034, allocations: 23.91 kB / 0.5215 GB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.508e-05/0.5035, allocations: 15.92 kB / 0.5215 GB, free: 14.36 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.439e-05/0.5035, allocations: 100.2 kB / 0.5216 GB, free: 14.27 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008517/0.5044, allocations: 79.19 kB / 0.5216 GB, free: 14.2 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,irradiance.startDayOfYear,irradiance.dayOfYear,irradiance.daysOfYear,irradiance.year,irradiance.localDays) * Number of discrete states: 6 (irradiance.daysOfYear,irradiance.year,irradiance.startDayOfYear,$whenCondition2,irradiance.dayOfYear,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 33 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001958/0.5046, allocations: 130.3 kB / 0.5218 GB, free: 14.06 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003733/0.505, allocations: 232.3 kB / 0.522 GB, free: 13.88 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.505, allocations: 256 / 0.522 GB, free: 13.88 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002019/0.5052, allocations: 195.9 kB / 0.5222 GB, free: 13.74 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002286/0.5054, allocations: 23.27 kB / 0.5222 GB, free: 13.72 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007183/0.5061, allocations: 312.8 kB / 0.5225 GB, free: 13.43 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004256/0.5066, allocations: 0.7739 MB / 0.5233 GB, free: 12.64 MB / 346.7 MB Notification: Performance of SimCode: time 3.01e-07/0.5066, allocations: 0 / 0.5233 GB, free: 12.64 MB / 346.7 MB (rm -f PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_ComponentTesting_TestIrradiance_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_ComponentTesting_TestIrradiance.fmu > PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe 2>&1)