Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_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_Trina_Analytical_20160629,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629") translateModel(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_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.001749/0.001749, allocations: 188 kB / 7.46 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.063/1.063, allocations: 221.4 MB / 229.3 MB, free: 3.363 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.0008621/0.0008621, allocations: 109 kB / 280.1 MB, free: 1.348 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02222/0.02222, allocations: 5.286 MB / 336.2 MB, free: 9.344 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.007251/0.007251, allocations: 2.305 MB / 390.5 MB, free: 74.76 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 4.449e-06/4.469e-06, allocations: 0 / 449.4 MB, free: 15.85 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1864/0.1865, allocations: 52.19 MB / 0.4898 GB, free: 43.38 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09497/0.2815, allocations: 95.56 MB / 0.5832 GB, free: 15.18 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001813/0.2817, allocations: 63.98 kB / 0.5832 GB, free: 15.12 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.09008/0.3718, allocations: 35.12 MB / 0.6175 GB, free: 11.79 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.762e-05/0.3718, allocations: 20 kB / 0.6175 GB, free: 11.77 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.003041/0.3749, allocations: 1.35 MB / 0.6189 GB, free: 10.36 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.3749, allocations: 12.03 kB / 0.6189 GB, free: 10.34 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001615/0.3765, allocations: 310.3 kB / 0.6192 GB, free: 10.04 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009507/0.3775, allocations: 0.5938 MB / 0.6197 GB, free: 9.402 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.547e-05/0.3776, allocations: 36 kB / 0.6198 GB, free: 9.367 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001632/0.3777, allocations: 71.89 kB / 0.6198 GB, free: 9.297 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001754/0.3795, allocations: 0.9374 MB / 0.6208 GB, free: 8.355 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001641/0.3811, allocations: 0.9647 MB / 0.6217 GB, free: 7.336 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.674e-05/0.3812, allocations: 0 / 0.6217 GB, free: 7.336 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.311e-05/0.3813, allocations: 4 kB / 0.6217 GB, free: 7.332 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.162e-05/0.3813, allocations: 28 kB / 0.6217 GB, free: 7.305 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006431/0.3877, allocations: 4.356 MB / 0.626 GB, free: 2.762 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001113/0.3889, allocations: 0.6955 MB / 0.6267 GB, free: 2.035 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005492/0.3894, allocations: 327.6 kB / 0.627 GB, free: 1.711 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001643/0.3896, allocations: 176.6 kB / 0.6272 GB, free: 1.504 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006665/0.3903, allocations: 0.5172 MB / 0.6277 GB, free: 0.9414 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 2.946e-06/0.3903, allocations: 0 / 0.6277 GB, free: 0.9414 MB / 410.7 MB Notification: Performance of matching and sorting (n=80): time 0.1043/0.4946, allocations: 1.035 MB / 0.6287 GB, free: 141.1 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.664e-05/0.4948, allocations: 312.2 kB / 0.629 GB, free: 140.8 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005624/0.4953, allocations: 494.5 kB / 0.6294 GB, free: 140.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001017/0.4954, allocations: 31.27 kB / 0.6295 GB, free: 140.6 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001895/0.4956, allocations: 431.1 kB / 0.6299 GB, free: 140.5 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001441/0.4958, allocations: 250.5 kB / 0.6301 GB, free: 140.4 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.354e-05/0.4958, allocations: 3.844 kB / 0.6301 GB, free: 140.4 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.61e-05/0.4959, allocations: 378.1 kB / 0.6305 GB, free: 140.1 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000411/0.4963, allocations: 292.7 kB / 0.6308 GB, free: 140.1 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004603/0.4968, allocations: 0.5269 MB / 0.6313 GB, free: 139.8 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.01318/0.51, allocations: 2.538 MB / 0.6338 GB, free: 139.7 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.51, allocations: 2.875 kB / 0.6338 GB, free: 139.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.001857/0.5119, allocations: 1.021 MB / 0.6348 GB, free: 139.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.116e-05/0.5119, allocations: 3.594 kB / 0.6348 GB, free: 139.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.5119, allocations: 12.28 kB / 0.6348 GB, free: 139.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004557/0.5124, allocations: 95.61 kB / 0.6349 GB, free: 139.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001016/0.5134, allocations: 259 kB / 0.6351 GB, free: 139.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001202/0.5146, allocations: 1.495 MB / 0.6366 GB, free: 138.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007514/0.5154, allocations: 94.97 kB / 0.6367 GB, free: 138.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.444e-05/0.5155, allocations: 54.5 kB / 0.6367 GB, free: 138.3 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.0002245/0.5157, allocations: 251.8 kB / 0.6369 GB, free: 138.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001018/0.5158, allocations: 71.94 kB / 0.637 GB, free: 138 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003987/0.5198, allocations: 1.3 MB / 0.6383 GB, free: 137.9 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.5198, allocations: 11.2 kB / 0.6383 GB, free: 137.9 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.5198, allocations: 0.5938 kB / 0.6383 GB, free: 137.9 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.889e-06/0.5198, allocations: 7.359 kB / 0.6383 GB, free: 137.9 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004874/0.5247, allocations: 2.295 MB / 0.6405 GB, free: 137.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.5247, allocations: 4.781 kB / 0.6406 GB, free: 137.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005824/0.5253, allocations: 131.9 kB / 0.6407 GB, free: 137.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002289/0.5276, allocations: 0.5484 MB / 0.6412 GB, free: 137.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.654e-05/0.5277, allocations: 28.61 kB / 0.6412 GB, free: 137.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006752/0.5284, allocations: 0.8364 MB / 0.6421 GB, free: 137 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.5284, allocations: 3.25 kB / 0.6421 GB, free: 137 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001959/0.5304, allocations: 1.393 MB / 0.6434 GB, free: 136.7 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003787/0.5308, allocations: 262.8 kB / 0.6437 GB, free: 136.6 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001757/0.531, allocations: 9.688 kB / 0.6437 GB, free: 136.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006363/0.5316, allocations: 39.47 kB / 0.6437 GB, free: 136.6 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.5317, allocations: 51.77 kB / 0.6438 GB, free: 136.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.502e-05/0.5318, allocations: 43.72 kB / 0.6438 GB, free: 136.6 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.000364/0.5322, allocations: 376 kB / 0.6442 GB, free: 136.5 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009006/0.5331, allocations: 359 kB / 0.6445 GB, free: 136.5 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.0006134/0.5337, allocations: 396.6 kB / 0.6449 GB, free: 136.3 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001324/0.535, allocations: 0.9793 MB / 0.6458 GB, free: 136.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.535, allocations: 0 / 0.6458 GB, free: 136.1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006007/0.5356, allocations: 0.5423 MB / 0.6464 GB, free: 136 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005448/0.5362, allocations: 97.02 kB / 0.6465 GB, free: 136 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002206/0.5384, allocations: 1.281 MB / 0.6477 GB, free: 135.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006117/0.539, allocations: 1.125 MB / 0.6488 GB, free: 134.9 MB / 410.7 MB Notification: Performance of SimCode: time 3.81e-07/0.539, allocations: 0 / 0.6488 GB, free: 134.9 MB / 410.7 MB Notification: Performance of Templates: time 0.01778/0.5568, allocations: 12.61 MB / 0.6611 GB, free: 134.2 MB / 410.7 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.pipe 2>&1)