Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_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_Comax_Analytical_2016,tolerance=1e-06,outputFormat="empty",numberOfIntervals=70080,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016") translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016,tolerance=1e-06,outputFormat="empty",numberOfIntervals=70080,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_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.003211/0.003211, allocations: 174.7 kB / 7.45 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.053/1.053, allocations: 221.4 MB / 229.3 MB, free: 3.316 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.0008696/0.0008696, allocations: 88.11 kB / 280.1 MB, free: 1.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02214/0.02214, allocations: 5.3 MB / 336.2 MB, free: 9.234 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.007342/0.007342, allocations: 2.297 MB / 390.4 MB, free: 74.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.109e-06/5.129e-06, allocations: 0 / 451.3 MB, free: 13.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1676/0.1676, allocations: 52.2 MB / 0.4917 GB, free: 43.91 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08825/0.2559, allocations: 95.56 MB / 0.585 GB, free: 14.9 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001634/0.2561, allocations: 67.97 kB / 0.5851 GB, free: 14.83 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.2023/0.4584, allocations: 35.1 MB / 0.6194 GB, free: 93.44 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.757e-05/0.4584, allocations: 21.59 kB / 0.6194 GB, free: 93.44 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.002309/0.4608, allocations: 1.349 MB / 0.6207 GB, free: 92.71 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.794e-05/0.4608, allocations: 12.94 kB / 0.6207 GB, free: 92.71 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001417/0.4622, allocations: 315.9 kB / 0.621 GB, free: 92.65 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000664/0.4629, allocations: 0.5861 MB / 0.6216 GB, free: 92.38 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.385e-05/0.4629, allocations: 40.53 kB / 0.6216 GB, free: 92.38 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001177/0.4631, allocations: 62.94 kB / 0.6217 GB, free: 92.38 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001351/0.4644, allocations: 0.941 MB / 0.6226 GB, free: 92.38 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001256/0.4657, allocations: 0.9624 MB / 0.6235 GB, free: 92.23 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.663e-05/0.4657, allocations: 7.594 kB / 0.6235 GB, free: 92.22 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.02e-05/0.4658, allocations: 2.219 kB / 0.6235 GB, free: 92.22 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.597e-05/0.4658, allocations: 24.94 kB / 0.6236 GB, free: 92.22 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004765/0.4706, allocations: 4.359 MB / 0.6278 GB, free: 90.5 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008765/0.4715, allocations: 0.6981 MB / 0.6285 GB, free: 90.43 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004245/0.4719, allocations: 327.3 kB / 0.6288 GB, free: 90.41 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001011/0.472, allocations: 180.8 kB / 0.629 GB, free: 90.22 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004636/0.4725, allocations: 0.5088 MB / 0.6295 GB, free: 90.02 MB / 394.7 MB Notification: Performance of pre-optimization done (n=80): time 1.854e-06/0.4725, allocations: 0 / 0.6295 GB, free: 90.02 MB / 394.7 MB Notification: Performance of matching and sorting (n=80): time 0.003652/0.4762, allocations: 1.038 MB / 0.6305 GB, free: 89.9 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.809e-05/0.4762, allocations: 308.6 kB / 0.6308 GB, free: 89.56 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000452/0.4767, allocations: 493.3 kB / 0.6313 GB, free: 89.44 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.749e-05/0.4767, allocations: 32.36 kB / 0.6313 GB, free: 89.41 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001449/0.4769, allocations: 429.6 kB / 0.6317 GB, free: 89.12 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001305/0.477, allocations: 254.7 kB / 0.6319 GB, free: 88.97 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.054e-05/0.4771, allocations: 7.406 kB / 0.632 GB, free: 88.96 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.31e-05/0.4772, allocations: 379.5 kB / 0.6323 GB, free: 88.65 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004123/0.4776, allocations: 292.3 kB / 0.6326 GB, free: 88.65 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004658/0.4781, allocations: 0.5248 MB / 0.6331 GB, free: 88.38 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.01337/0.4914, allocations: 2.536 MB / 0.6356 GB, free: 88.14 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.145e-06/0.4915, allocations: 3.594 kB / 0.6356 GB, free: 88.14 MB / 394.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.001957/0.4934, allocations: 1.024 MB / 0.6366 GB, free: 87.91 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.089e-05/0.4934, allocations: 10.33 kB / 0.6366 GB, free: 87.91 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.4935, allocations: 7.188 kB / 0.6366 GB, free: 87.91 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004626/0.4939, allocations: 96.31 kB / 0.6367 GB, free: 87.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001042/0.495, allocations: 253.2 kB / 0.6369 GB, free: 87.89 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001188/0.4962, allocations: 1.508 MB / 0.6384 GB, free: 86.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008088/0.497, allocations: 81.75 kB / 0.6385 GB, free: 86.46 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.807e-05/0.4971, allocations: 53.72 kB / 0.6385 GB, free: 86.45 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.0002509/0.4973, allocations: 251.9 kB / 0.6388 GB, free: 86.23 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001089/0.4975, allocations: 78.84 kB / 0.6389 GB, free: 86.2 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004064/0.5015, allocations: 1.303 MB / 0.6401 GB, free: 85.78 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.5016, allocations: 7.938 kB / 0.6401 GB, free: 85.78 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.5016, allocations: 7.875 kB / 0.6401 GB, free: 85.78 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.457e-06/0.5016, allocations: 3.844 kB / 0.6401 GB, free: 85.78 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00479/0.5064, allocations: 2.293 MB / 0.6424 GB, free: 84.78 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.5064, allocations: 0 / 0.6424 GB, free: 84.78 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005823/0.507, allocations: 132.4 kB / 0.6425 GB, free: 84.77 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002252/0.5092, allocations: 0.5511 MB / 0.643 GB, free: 84.63 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.771e-05/0.5093, allocations: 25.41 kB / 0.6431 GB, free: 84.63 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006213/0.5099, allocations: 0.8374 MB / 0.6439 GB, free: 83.96 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.51, allocations: 3.906 kB / 0.6439 GB, free: 83.96 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004456/0.5144, allocations: 1.677 MB / 0.6455 GB, free: 83.24 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003328/0.5148, allocations: 267.1 kB / 0.6458 GB, free: 83.04 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001548/0.5149, allocations: 13.62 kB / 0.6458 GB, free: 83.04 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006164/0.5156, allocations: 35.78 kB / 0.6458 GB, free: 83.04 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/0.5157, allocations: 51.97 kB / 0.6459 GB, free: 83.03 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.964e-05/0.5158, allocations: 44.81 kB / 0.6459 GB, free: 83.02 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0003806/0.5161, allocations: 377.4 kB / 0.6463 GB, free: 82.83 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009261/0.5171, allocations: 348.1 kB / 0.6466 GB, free: 82.75 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.0006264/0.5177, allocations: 399.6 kB / 0.647 GB, free: 82.6 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001311/0.519, allocations: 0.9787 MB / 0.648 GB, free: 82.13 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.519, allocations: 0 / 0.648 GB, free: 82.13 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000624/0.5197, allocations: 0.5547 MB / 0.6485 GB, free: 81.84 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005326/0.5202, allocations: 95.38 kB / 0.6486 GB, free: 81.81 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002175/0.5224, allocations: 1.267 MB / 0.6498 GB, free: 81.21 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006285/0.523, allocations: 1.126 MB / 0.6509 GB, free: 80.48 MB / 394.7 MB Notification: Performance of SimCode: time 2.81e-07/0.523, allocations: 0.75 kB / 0.6509 GB, free: 80.48 MB / 394.7 MB Notification: Performance of Templates: time 0.01628/0.5393, allocations: 12.61 MB / 0.6632 GB, free: 71.16 MB / 394.7 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016 -jacobian=coloredNumerical -s=dassl -lv=LOG_STATS -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe 2>&1)