Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.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) Running command: translateModel(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808") translateModel(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808") [: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.001936/0.001936, allocations: 182.5 kB / 7.455 MB, free: 2.508 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.031/1.031, allocations: 221.4 MB / 229.3 MB, free: 3.211 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.0008418/0.0008423, allocations: 93.05 kB / 280.1 MB, free: 1.293 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02237/0.02237, allocations: 5.28 MB / 336.2 MB, free: 9.277 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.007304/0.007304, allocations: 2.295 MB / 390.4 MB, free: 74.7 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 4.879e-06/4.899e-06, allocations: 0 / 449.4 MB, free: 15.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1902/0.1902, allocations: 52.2 MB / 0.4898 GB, free: 43.21 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09435/0.2846, allocations: 95.56 MB / 0.5832 GB, free: 15.08 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001477/0.2848, allocations: 67.97 kB / 0.5832 GB, free: 15.02 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.08752/0.3723, allocations: 35.12 MB / 0.6175 GB, free: 11.7 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.78e-05/0.3724, allocations: 20 kB / 0.6175 GB, free: 11.68 MB / 410.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.002978/0.3753, allocations: 1.351 MB / 0.6189 GB, free: 10.26 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.222e-05/0.3754, allocations: 13.25 kB / 0.6189 GB, free: 10.25 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001574/0.377, allocations: 310.3 kB / 0.6192 GB, free: 9.941 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008984/0.3779, allocations: 0.5939 MB / 0.6197 GB, free: 9.305 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.303e-05/0.3779, allocations: 36 kB / 0.6198 GB, free: 9.27 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001592/0.3781, allocations: 71.91 kB / 0.6198 GB, free: 9.199 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001607/0.3797, allocations: 0.9335 MB / 0.6208 GB, free: 8.262 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001521/0.3812, allocations: 0.9686 MB / 0.6217 GB, free: 7.238 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.76e-05/0.3813, allocations: 0 / 0.6217 GB, free: 7.238 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.349e-05/0.3814, allocations: 4 kB / 0.6217 GB, free: 7.234 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.669e-05/0.3814, allocations: 28 kB / 0.6217 GB, free: 7.207 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006215/0.3876, allocations: 4.36 MB / 0.626 GB, free: 2.66 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001128/0.3888, allocations: 0.6917 MB / 0.6267 GB, free: 1.938 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005343/0.3893, allocations: 330.3 kB / 0.627 GB, free: 1.613 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001607/0.3895, allocations: 174.8 kB / 0.6271 GB, free: 1.406 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006263/0.3901, allocations: 0.5133 MB / 0.6276 GB, free: 0.8477 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 2.144e-06/0.3901, allocations: 0 / 0.6276 GB, free: 0.8477 MB / 410.7 MB Notification: Performance of matching and sorting (n=80): time 0.111/0.5011, allocations: 1.039 MB / 0.6287 GB, free: 140.8 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.199e-05/0.5012, allocations: 305.8 kB / 0.629 GB, free: 140.4 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006403/0.5019, allocations: 494.6 kB / 0.6294 GB, free: 140.3 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001116/0.502, allocations: 36.27 kB / 0.6295 GB, free: 140.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002176/0.5022, allocations: 428.5 kB / 0.6299 GB, free: 140.1 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001881/0.5024, allocations: 251.8 kB / 0.6301 GB, free: 140 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.109e-05/0.5025, allocations: 0 / 0.6301 GB, free: 140 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.333e-05/0.5026, allocations: 383.8 kB / 0.6305 GB, free: 139.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004466/0.5031, allocations: 288.6 kB / 0.6308 GB, free: 139.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000485/0.5035, allocations: 0.5313 MB / 0.6313 GB, free: 139.4 MB / 410.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.01349/0.517, allocations: 2.539 MB / 0.6337 GB, free: 139.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.334e-06/0.5171, allocations: 2.188 kB / 0.6338 GB, free: 139.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.001946/0.519, allocations: 1.024 MB / 0.6348 GB, free: 139.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.193e-05/0.519, allocations: 3.906 kB / 0.6348 GB, free: 139.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.5191, allocations: 11.53 kB / 0.6348 GB, free: 139.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004587/0.5195, allocations: 97.14 kB / 0.6349 GB, free: 139.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001032/0.5206, allocations: 256.5 kB / 0.6351 GB, free: 139.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001262/0.5218, allocations: 1.496 MB / 0.6366 GB, free: 137.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000789/0.5226, allocations: 87.86 kB / 0.6366 GB, free: 137.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.778e-05/0.5227, allocations: 53.03 kB / 0.6367 GB, free: 137.9 MB / 410.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.0002484/0.523, allocations: 250.4 kB / 0.6369 GB, free: 137.7 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001088/0.5231, allocations: 74.53 kB / 0.637 GB, free: 137.6 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004139/0.5272, allocations: 1.311 MB / 0.6383 GB, free: 137.6 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.5273, allocations: 7.719 kB / 0.6383 GB, free: 137.6 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.5273, allocations: 0 / 0.6383 GB, free: 137.6 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.076e-05/0.5273, allocations: 6.938 kB / 0.6383 GB, free: 137.6 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004838/0.5321, allocations: 2.295 MB / 0.6405 GB, free: 137.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.5321, allocations: 2.094 kB / 0.6405 GB, free: 137.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005945/0.5327, allocations: 132.3 kB / 0.6407 GB, free: 137.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002317/0.5351, allocations: 0.5518 MB / 0.6412 GB, free: 137.1 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.254e-05/0.5351, allocations: 25.73 kB / 0.6412 GB, free: 137.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006306/0.5358, allocations: 0.8358 MB / 0.6421 GB, free: 136.6 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.5358, allocations: 3.344 kB / 0.6421 GB, free: 136.6 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001803/0.5376, allocations: 1.393 MB / 0.6434 GB, free: 136.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002909/0.5379, allocations: 264.6 kB / 0.6437 GB, free: 136.2 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001494/0.5381, allocations: 15.75 kB / 0.6437 GB, free: 136.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006214/0.5387, allocations: 37.69 kB / 0.6437 GB, free: 136.2 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/0.5388, allocations: 49.89 kB / 0.6438 GB, free: 136.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.234e-05/0.5389, allocations: 40.78 kB / 0.6438 GB, free: 136.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0003346/0.5392, allocations: 381.8 kB / 0.6442 GB, free: 136.1 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000889/0.5401, allocations: 355 kB / 0.6445 GB, free: 136.1 MB / 410.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 (irradiance.daysOfYear,irradiance.year,irradiance.startDayOfYear,$whenCondition3,irradiance.dayOfYear,$whenCondition2,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power,writeCSV.firstTrigger,$whenCondition4,writeCSV.sampleTrigger) * 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.0005927/0.5407, allocations: 392.7 kB / 0.6449 GB, free: 136 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001218/0.5419, allocations: 0.9851 MB / 0.6458 GB, free: 135.7 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.542, allocations: 0 / 0.6458 GB, free: 135.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005921/0.5426, allocations: 0.541 MB / 0.6464 GB, free: 135.6 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005284/0.5431, allocations: 97.95 kB / 0.6465 GB, free: 135.6 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002107/0.5452, allocations: 1.28 MB / 0.6477 GB, free: 135.2 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006044/0.5458, allocations: 1.12 MB / 0.6488 GB, free: 134.5 MB / 410.7 MB Notification: Performance of SimCode: time 2.41e-07/0.5458, allocations: 0 / 0.6488 GB, free: 134.5 MB / 410.7 MB Notification: Performance of Templates: time 0.01691/0.5628, allocations: 12.61 MB / 0.6611 GB, free: 133.8 MB / 410.7 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.pipe 2>&1)