Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.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_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704") translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704") [: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.001706/0.001706, allocations: 177.9 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.049/1.049, allocations: 221.4 MB / 229.3 MB, free: 3.258 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.0008492/0.0008491, allocations: 97.09 kB / 280.1 MB, free: 1.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02215/0.02215, allocations: 5.297 MB / 336.2 MB, free: 9.254 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.007272/0.007272, allocations: 2.302 MB / 390.5 MB, free: 74.73 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 4.919e-06/4.939e-06, allocations: 0 / 449.4 MB, free: 15.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.188/0.188, allocations: 52.19 MB / 0.4898 GB, free: 43.29 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09501/0.2831, allocations: 95.56 MB / 0.5832 GB, free: 15.14 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001701/0.2833, allocations: 69.97 kB / 0.5832 GB, free: 15.07 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.0911/0.3744, allocations: 35.12 MB / 0.6175 GB, free: 11.77 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.162e-05/0.3745, allocations: 20 kB / 0.6175 GB, free: 11.75 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.003292/0.3778, allocations: 1.353 MB / 0.6189 GB, free: 10.33 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.3e-05/0.3778, allocations: 8.031 kB / 0.6189 GB, free: 10.32 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001657/0.3795, allocations: 318.3 kB / 0.6192 GB, free: 10.01 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009318/0.3804, allocations: 0.59 MB / 0.6197 GB, free: 9.375 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.01e-05/0.3805, allocations: 36 kB / 0.6198 GB, free: 9.34 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001356/0.3806, allocations: 67.91 kB / 0.6198 GB, free: 9.273 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001645/0.3823, allocations: 0.9373 MB / 0.6208 GB, free: 8.332 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001567/0.3838, allocations: 0.9673 MB / 0.6217 GB, free: 7.312 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.811e-05/0.3839, allocations: 0 / 0.6217 GB, free: 7.312 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.564e-05/0.384, allocations: 4 kB / 0.6217 GB, free: 7.309 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.335e-05/0.384, allocations: 24 kB / 0.6217 GB, free: 7.285 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006085/0.3901, allocations: 4.368 MB / 0.626 GB, free: 2.73 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001104/0.3912, allocations: 0.6947 MB / 0.6267 GB, free: 2.004 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005063/0.3917, allocations: 327.6 kB / 0.627 GB, free: 1.68 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001487/0.3919, allocations: 174.8 kB / 0.6272 GB, free: 1.473 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005994/0.3925, allocations: 0.5095 MB / 0.6277 GB, free: 0.918 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 1.773e-06/0.3925, allocations: 0 / 0.6277 GB, free: 0.918 MB / 410.7 MB Notification: Performance of matching and sorting (n=80): time 0.104/0.4965, allocations: 1.042 MB / 0.6287 GB, free: 140.9 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.427e-05/0.4966, allocations: 309.1 kB / 0.629 GB, free: 140.6 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005118/0.4971, allocations: 496 kB / 0.6294 GB, free: 140.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.242e-05/0.4972, allocations: 29.52 kB / 0.6295 GB, free: 140.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001656/0.4974, allocations: 434.1 kB / 0.6299 GB, free: 140.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001307/0.4975, allocations: 250.6 kB / 0.6301 GB, free: 140.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.004e-05/0.4976, allocations: 0 / 0.6301 GB, free: 140.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.263e-05/0.4976, allocations: 383.3 kB / 0.6305 GB, free: 139.8 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004058/0.498, allocations: 297.6 kB / 0.6308 GB, free: 139.8 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004614/0.4985, allocations: 0.5242 MB / 0.6313 GB, free: 139.6 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.0131/0.5116, allocations: 2.536 MB / 0.6338 GB, free: 139.4 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.705e-06/0.5116, allocations: 3.844 kB / 0.6338 GB, free: 139.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.001841/0.5135, allocations: 1.024 MB / 0.6348 GB, free: 139.3 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.09e-05/0.5135, allocations: 6.594 kB / 0.6348 GB, free: 139.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.5135, allocations: 7.562 kB / 0.6348 GB, free: 139.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004567/0.514, allocations: 95.45 kB / 0.6349 GB, free: 139.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001021/0.515, allocations: 256.9 kB / 0.6351 GB, free: 139.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001165/0.5162, allocations: 1.501 MB / 0.6366 GB, free: 138 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007669/0.517, allocations: 90.84 kB / 0.6367 GB, free: 138 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.536e-05/0.5171, allocations: 51.67 kB / 0.6367 GB, free: 138 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.0002138/0.5173, allocations: 249.5 kB / 0.6369 GB, free: 137.8 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001023/0.5174, allocations: 77.06 kB / 0.637 GB, free: 137.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004056/0.5214, allocations: 1.299 MB / 0.6383 GB, free: 137.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.5215, allocations: 9.031 kB / 0.6383 GB, free: 137.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.374e-06/0.5215, allocations: 2.625 kB / 0.6383 GB, free: 137.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.398e-06/0.5215, allocations: 7.781 kB / 0.6383 GB, free: 137.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004796/0.5263, allocations: 2.3 MB / 0.6406 GB, free: 137.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.5263, allocations: 0 / 0.6406 GB, free: 137.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005722/0.5269, allocations: 136.5 kB / 0.6407 GB, free: 137.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00223/0.5291, allocations: 0.5452 MB / 0.6412 GB, free: 137.2 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.11e-05/0.5292, allocations: 26.55 kB / 0.6412 GB, free: 137.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005923/0.5298, allocations: 0.8309 MB / 0.6421 GB, free: 136.7 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.5298, allocations: 3.938 kB / 0.6421 GB, free: 136.7 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001737/0.5316, allocations: 1.402 MB / 0.6434 GB, free: 136.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002682/0.5318, allocations: 258.5 kB / 0.6437 GB, free: 136.3 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001441/0.532, allocations: 13.62 kB / 0.6437 GB, free: 136.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006095/0.5326, allocations: 36.48 kB / 0.6437 GB, free: 136.3 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/0.5327, allocations: 50.03 kB / 0.6438 GB, free: 136.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.171e-05/0.5328, allocations: 41.36 kB / 0.6438 GB, free: 136.3 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0003204/0.5331, allocations: 376.3 kB / 0.6442 GB, free: 136.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007774/0.5339, allocations: 360.8 kB / 0.6445 GB, free: 136.2 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.000575/0.5345, allocations: 401.5 kB / 0.6449 GB, free: 136.1 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001175/0.5357, allocations: 0.9834 MB / 0.6459 GB, free: 135.9 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.5357, allocations: 0 / 0.6459 GB, free: 135.9 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005748/0.5362, allocations: 0.5437 MB / 0.6464 GB, free: 135.8 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005162/0.5368, allocations: 90.27 kB / 0.6465 GB, free: 135.8 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002018/0.5388, allocations: 1.281 MB / 0.6477 GB, free: 135.4 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005951/0.5394, allocations: 1.126 MB / 0.6488 GB, free: 134.6 MB / 410.7 MB Notification: Performance of SimCode: time 4.31e-07/0.5394, allocations: 1.875 kB / 0.6488 GB, free: 134.6 MB / 410.7 MB Notification: Performance of Templates: time 0.01603/0.5555, allocations: 12.6 MB / 0.6611 GB, free: 133.9 MB / 410.7 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe 2>&1)