Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.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_Comax_Analytical_20160629,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629") translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629") [: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.001927/0.001927, allocations: 183.4 kB / 7.453 MB, free: 2.516 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.055/1.055, allocations: 221.4 MB / 229.3 MB, free: 3 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.0008424/0.0008424, allocations: 101.2 kB / 280.1 MB, free: 1.219 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.295 MB / 336.2 MB, free: 9.215 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.007302/0.007302, allocations: 2.293 MB / 390.4 MB, free: 74.72 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 4.449e-06/4.479e-06, allocations: 0 / 449.4 MB, free: 15.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1859/0.1859, allocations: 52.18 MB / 0.4898 GB, free: 43.3 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09333/0.2792, allocations: 95.57 MB / 0.5832 GB, free: 15.18 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000173/0.2794, allocations: 64.91 kB / 0.5832 GB, free: 15.12 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.0877/0.3671, allocations: 35.12 MB / 0.6175 GB, free: 11.82 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.574e-05/0.3672, allocations: 24 kB / 0.6175 GB, free: 11.79 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.003056/0.3703, allocations: 1.346 MB / 0.6189 GB, free: 10.38 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.218e-05/0.3703, allocations: 8.031 kB / 0.6189 GB, free: 10.37 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001607/0.3719, allocations: 310.3 kB / 0.6192 GB, free: 10.07 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009664/0.3729, allocations: 0.6016 MB / 0.6197 GB, free: 9.422 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.936e-05/0.373, allocations: 36 kB / 0.6198 GB, free: 9.387 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001557/0.3732, allocations: 67.91 kB / 0.6198 GB, free: 9.32 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001719/0.3749, allocations: 0.9413 MB / 0.6208 GB, free: 8.375 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001551/0.3764, allocations: 0.9608 MB / 0.6217 GB, free: 7.359 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.884e-05/0.3765, allocations: 4 kB / 0.6217 GB, free: 7.355 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.684e-05/0.3766, allocations: 4.75 kB / 0.6217 GB, free: 7.352 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.077e-05/0.3766, allocations: 24 kB / 0.6217 GB, free: 7.328 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006118/0.3827, allocations: 4.349 MB / 0.626 GB, free: 2.793 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001078/0.3838, allocations: 0.7033 MB / 0.6267 GB, free: 2.059 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005211/0.3843, allocations: 328.7 kB / 0.627 GB, free: 1.734 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001467/0.3845, allocations: 174.8 kB / 0.6271 GB, free: 1.527 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006454/0.3852, allocations: 0.5211 MB / 0.6277 GB, free: 0.957 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 2.765e-06/0.3852, allocations: 0 / 0.6277 GB, free: 0.957 MB / 410.7 MB Notification: Performance of matching and sorting (n=80): time 0.1041/0.4893, allocations: 1.031 MB / 0.6287 GB, free: 141 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.954e-05/0.4894, allocations: 309.4 kB / 0.629 GB, free: 140.7 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000619/0.49, allocations: 497 kB / 0.6294 GB, free: 140.6 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001213/0.4902, allocations: 27.95 kB / 0.6295 GB, free: 140.6 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002151/0.4904, allocations: 435.3 kB / 0.6299 GB, free: 140.4 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001671/0.4906, allocations: 253 kB / 0.6301 GB, free: 140.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.385e-05/0.4906, allocations: 0 / 0.6301 GB, free: 140.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.45e-05/0.4907, allocations: 388 kB / 0.6305 GB, free: 140 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004341/0.4912, allocations: 294.5 kB / 0.6308 GB, free: 140 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004717/0.4916, allocations: 0.5249 MB / 0.6313 GB, free: 139.7 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.01354/0.5052, allocations: 2.538 MB / 0.6338 GB, free: 139.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.456e-06/0.5052, allocations: 2.406 kB / 0.6338 GB, free: 139.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.001955/0.5072, allocations: 1.023 MB / 0.6348 GB, free: 139.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/0.5072, allocations: 3.938 kB / 0.6348 GB, free: 139.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.5072, allocations: 7.469 kB / 0.6348 GB, free: 139.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004665/0.5077, allocations: 94.47 kB / 0.6349 GB, free: 139.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001028/0.5087, allocations: 256.7 kB / 0.6351 GB, free: 139.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00122/0.5099, allocations: 1.501 MB / 0.6366 GB, free: 138.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007922/0.5108, allocations: 90.61 kB / 0.6367 GB, free: 138.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.76e-05/0.5108, allocations: 58.5 kB / 0.6367 GB, free: 138.2 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.0002409/0.5111, allocations: 245.6 kB / 0.6369 GB, free: 138 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001137/0.5112, allocations: 79.25 kB / 0.637 GB, free: 137.9 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004107/0.5153, allocations: 1.293 MB / 0.6383 GB, free: 137.9 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.5153, allocations: 14.2 kB / 0.6383 GB, free: 137.9 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-06/0.5153, allocations: 0 / 0.6383 GB, free: 137.9 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.698e-06/0.5154, allocations: 9.281 kB / 0.6383 GB, free: 137.9 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004923/0.5203, allocations: 2.293 MB / 0.6405 GB, free: 137.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.5203, allocations: 2.719 kB / 0.6405 GB, free: 137.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005709/0.5209, allocations: 137.9 kB / 0.6407 GB, free: 137.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002286/0.5232, allocations: 0.5436 MB / 0.6412 GB, free: 137.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.355e-05/0.5233, allocations: 25.61 kB / 0.6412 GB, free: 137.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006125/0.5239, allocations: 0.8419 MB / 0.6421 GB, free: 136.9 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.5239, allocations: 0 / 0.6421 GB, free: 136.9 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001778/0.5257, allocations: 1.398 MB / 0.6434 GB, free: 136.6 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002767/0.526, allocations: 261.3 kB / 0.6437 GB, free: 136.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001475/0.5261, allocations: 14.03 kB / 0.6437 GB, free: 136.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006148/0.5267, allocations: 39.28 kB / 0.6437 GB, free: 136.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/0.5268, allocations: 53.67 kB / 0.6438 GB, free: 136.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.351e-05/0.5269, allocations: 39.38 kB / 0.6438 GB, free: 136.5 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.000326/0.5273, allocations: 377.1 kB / 0.6442 GB, free: 136.4 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007865/0.528, allocations: 359.1 kB / 0.6445 GB, free: 136.4 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.0005635/0.5286, allocations: 393 kB / 0.6449 GB, free: 136.3 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001205/0.5298, allocations: 0.9819 MB / 0.6458 GB, free: 136 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.644e-06/0.5298, allocations: 0 / 0.6458 GB, free: 136 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005792/0.5304, allocations: 0.5432 MB / 0.6464 GB, free: 135.9 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005195/0.531, allocations: 96.09 kB / 0.6465 GB, free: 135.9 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002075/0.533, allocations: 1.272 MB / 0.6477 GB, free: 135.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006094/0.5337, allocations: 1.124 MB / 0.6488 GB, free: 134.8 MB / 410.7 MB Notification: Performance of SimCode: time 2.51e-07/0.5337, allocations: 4 kB / 0.6488 GB, free: 134.8 MB / 410.7 MB Notification: Performance of Templates: time 0.01731/0.551, allocations: 12.61 MB / 0.6611 GB, free: 134.1 MB / 410.7 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.pipe 2>&1)