Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo", uses=false) Using package PhotoVoltaics_TGM with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo) 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) Ignoring simflag -noemit -cpu=() since it seems broken on HelloWorld Running command: translateModel(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016,tolerance=1e-06,outputFormat="empty",numberOfIntervals=70080,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016") translateModel(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016,tolerance=1e-06,outputFormat="empty",numberOfIntervals=70080,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016") [: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.001917/0.001917, allocations: 175.2 kB / 7.451 MB, free: 2.504 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.06/1.06, allocations: 221.4 MB / 229.3 MB, free: 3.145 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.0008426/0.0008426, allocations: 96.42 kB / 280.1 MB, free: 1.336 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02224/0.02224, allocations: 5.286 MB / 336.2 MB, free: 9.301 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.007262/0.007262, allocations: 2.297 MB / 390.4 MB, free: 74.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.15e-06/5.17e-06, allocations: 0 / 451.3 MB, free: 13.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1866/0.1866, allocations: 52.18 MB / 0.4917 GB, free: 43.9 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09135/0.278, allocations: 95.57 MB / 0.585 GB, free: 14.94 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001972/0.2783, allocations: 68.81 kB / 0.5851 GB, free: 14.87 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.214/0.4923, allocations: 35.1 MB / 0.6193 GB, free: 93.52 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.918e-05/0.4923, allocations: 25.16 kB / 0.6194 GB, free: 93.52 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 270 * Number of variables: 270 Notification: Performance of Generate backend data structure: time 0.002364/0.4947, allocations: 1.349 MB / 0.6207 GB, free: 92.8 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.854e-05/0.4947, allocations: 11.03 kB / 0.6207 GB, free: 92.8 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001421/0.4962, allocations: 314.8 kB / 0.621 GB, free: 92.73 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006863/0.4969, allocations: 0.5953 MB / 0.6216 GB, free: 92.46 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.355e-05/0.4969, allocations: 34.66 kB / 0.6216 GB, free: 92.46 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001206/0.497, allocations: 63.78 kB / 0.6217 GB, free: 92.46 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001372/0.4984, allocations: 0.9352 MB / 0.6226 GB, free: 92.45 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001291/0.4997, allocations: 0.9621 MB / 0.6235 GB, free: 92.3 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.887e-05/0.4997, allocations: 11.48 kB / 0.6235 GB, free: 92.3 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.218e-05/0.4998, allocations: 3.875 kB / 0.6235 GB, free: 92.3 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.763e-05/0.4999, allocations: 25.09 kB / 0.6236 GB, free: 92.3 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004874/0.5047, allocations: 4.363 MB / 0.6278 GB, free: 90.57 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008776/0.5056, allocations: 0.688 MB / 0.6285 GB, free: 90.5 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000441/0.5061, allocations: 331.3 kB / 0.6288 GB, free: 90.48 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001034/0.5062, allocations: 174.9 kB / 0.629 GB, free: 90.3 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000472/0.5067, allocations: 0.5146 MB / 0.6295 GB, free: 90.09 MB / 394.7 MB Notification: Performance of pre-optimization done (n=80): time 2.455e-06/0.5067, allocations: 0 / 0.6295 GB, free: 90.09 MB / 394.7 MB Notification: Performance of matching and sorting (n=80): time 0.003633/0.5103, allocations: 1.039 MB / 0.6305 GB, free: 89.97 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.969e-05/0.5104, allocations: 304.8 kB / 0.6308 GB, free: 89.63 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004485/0.5108, allocations: 0.4892 MB / 0.6313 GB, free: 89.51 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.636e-05/0.5109, allocations: 30.64 kB / 0.6313 GB, free: 89.48 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001445/0.5111, allocations: 429.5 kB / 0.6317 GB, free: 89.2 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000131/0.5112, allocations: 251.5 kB / 0.6319 GB, free: 89.04 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.926e-05/0.5112, allocations: 3.938 kB / 0.6319 GB, free: 89.04 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.597e-05/0.5113, allocations: 385.3 kB / 0.6323 GB, free: 88.72 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003948/0.5117, allocations: 287 kB / 0.6326 GB, free: 88.72 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004627/0.5122, allocations: 0.5293 MB / 0.6331 GB, free: 88.45 MB / 394.7 MB Notification: It was not possible to analyze the given system symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.01335/0.5256, allocations: 2.535 MB / 0.6356 GB, free: 88.21 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/0.5256, allocations: 3.844 kB / 0.6356 GB, free: 88.21 MB / 394.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.001868/0.5274, allocations: 1.027 MB / 0.6366 GB, free: 88 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.136e-05/0.5275, allocations: 8.938 kB / 0.6366 GB, free: 88 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.5275, allocations: 6.531 kB / 0.6366 GB, free: 88 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004558/0.5279, allocations: 94.48 kB / 0.6367 GB, free: 87.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001026/0.529, allocations: 253.7 kB / 0.6369 GB, free: 87.97 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001208/0.5302, allocations: 1.503 MB / 0.6384 GB, free: 86.59 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007685/0.531, allocations: 94.2 kB / 0.6385 GB, free: 86.55 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.614e-05/0.5311, allocations: 50.61 kB / 0.6385 GB, free: 86.54 MB / 394.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: 33 * Number of states: 0 () * Number of discrete variables: 27 ($PRE.writeCSV.firstTrigger,writeCSV.firstTrigger,$PRE.irradiance.year,irradiance.year,$PRE.mpTracker.signv,mpTracker.signv,$PRE.mpTracker.firstTrigger,mpTracker.firstTrigger,$PRE.mpTracker.counter,mpTracker.counter,$whenCondition4,writeCSV.sampleTrigger,$whenCondition1,mpTracker.sampleTrigger,$whenCondition2,$whenCondition3,$PRE.mpTracker.vRef,mpTracker.vRef,$PRE.irradiance.startDayOfYear,irradiance.startDayOfYear,$PRE.irradiance.dayOfYear,irradiance.dayOfYear,$PRE.irradiance.daysOfYear,irradiance.daysOfYear,irradiance.localDays,integrator.local_reset,converter.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (130): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002232/0.5313, allocations: 245.3 kB / 0.6388 GB, free: 86.32 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000105/0.5314, allocations: 78.28 kB / 0.6389 GB, free: 86.28 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004076/0.5355, allocations: 1.309 MB / 0.6401 GB, free: 85.86 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.5355, allocations: 7.562 kB / 0.6401 GB, free: 85.86 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.5355, allocations: 0 / 0.6401 GB, free: 85.86 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.043e-05/0.5355, allocations: 7.438 kB / 0.6401 GB, free: 85.86 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004773/0.5403, allocations: 2.291 MB / 0.6424 GB, free: 84.87 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.5403, allocations: 6.281 kB / 0.6424 GB, free: 84.87 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005684/0.5409, allocations: 136.1 kB / 0.6425 GB, free: 84.86 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002242/0.5432, allocations: 0.55 MB / 0.6431 GB, free: 84.72 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.967e-05/0.5432, allocations: 22.97 kB / 0.6431 GB, free: 84.72 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005934/0.5438, allocations: 0.8383 MB / 0.6439 GB, free: 84.06 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.5438, allocations: 7.969 kB / 0.6439 GB, free: 84.05 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004443/0.5483, allocations: 1.665 MB / 0.6455 GB, free: 83.33 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002903/0.5486, allocations: 265.9 kB / 0.6458 GB, free: 83.13 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001465/0.5487, allocations: 12.81 kB / 0.6458 GB, free: 83.13 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000604/0.5494, allocations: 38.53 kB / 0.6458 GB, free: 83.12 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/0.5495, allocations: 52 kB / 0.6459 GB, free: 83.12 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.062e-05/0.5495, allocations: 40.61 kB / 0.6459 GB, free: 83.11 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0003688/0.5499, allocations: 382.4 kB / 0.6463 GB, free: 82.92 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008803/0.5508, allocations: 357.6 kB / 0.6466 GB, free: 82.82 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (converter.potentialSensor.pin_p.reference.gamma,converter.integrator.y,integrator.y) * Number of discrete variables: 16 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,irradiance.startDayOfYear,irradiance.dayOfYear,irradiance.daysOfYear,irradiance.year,irradiance.localDays,writeCSV.sampleTrigger,writeCSV.firstTrigger) * Number of discrete states: 16 (writeCSV.firstTrigger,$whenCondition4,writeCSV.sampleTrigger,irradiance.daysOfYear,irradiance.year,irradiance.startDayOfYear,$whenCondition3,irradiance.dayOfYear,$whenCondition2,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power) * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 2 * 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 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005844/0.5514, allocations: 391.2 kB / 0.647 GB, free: 82.68 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001305/0.5527, allocations: 0.9839 MB / 0.648 GB, free: 82.21 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.5527, allocations: 1.812 kB / 0.648 GB, free: 82.21 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006673/0.5534, allocations: 0.5502 MB / 0.6485 GB, free: 81.92 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005613/0.554, allocations: 96.28 kB / 0.6486 GB, free: 81.89 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002187/0.5562, allocations: 1.266 MB / 0.6498 GB, free: 81.28 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000643/0.5568, allocations: 1.123 MB / 0.6509 GB, free: 80.55 MB / 394.7 MB Notification: Performance of SimCode: time 2.21e-07/0.5568, allocations: 4 kB / 0.6509 GB, free: 80.55 MB / 394.7 MB Notification: Performance of Templates: time 0.01607/0.5729, allocations: 12.61 MB / 0.6632 GB, free: 71.3 MB / 394.7 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016 -jacobian=coloredNumerical -s=dassl -lv=LOG_STATS -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe 2>&1)