Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_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_Trina_Analytical_2016,tolerance=1e-06,outputFormat="empty",numberOfIntervals=70080,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016") translateModel(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016,tolerance=1e-06,outputFormat="empty",numberOfIntervals=70080,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001419/0.001419, allocations: 175.2 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.724/1.724, allocations: 221.4 MB / 234.6 MB, free: 14.45 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 90.91 kB / 285.6 MB, free: 13 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02524/0.02524, allocations: 5.29 MB / 341.8 MB, free: 4.816 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008305/0.008305, allocations: 2.291 MB / 396.1 MB, free: 70.48 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.47e-05/4.481e-05, allocations: 4 kB / 459.7 MB, free: 7.012 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3224/0.3224, allocations: 52.19 MB / 0.4999 GB, free: 42.25 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1252/0.4477, allocations: 96.3 MB / 0.5939 GB, free: 9.812 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002486/0.448, allocations: 67.97 kB / 0.594 GB, free: 9.746 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3434/0.7915, allocations: 35.83 MB / 0.629 GB, free: 95.03 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.256e-06/0.7915, allocations: 3.75 kB / 0.629 GB, free: 95.03 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.31e-05/0.7916, allocations: 18.28 kB / 0.629 GB, free: 95.03 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.003373/0.795, allocations: 1.334 MB / 0.6303 GB, free: 94.26 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.7951, allocations: 14.03 kB / 0.6303 GB, free: 94.26 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001693/0.7968, allocations: 306.2 kB / 0.6306 GB, free: 94.2 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001186/0.798, allocations: 0.5776 MB / 0.6312 GB, free: 93.93 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.222e-05/0.7981, allocations: 83.84 kB / 0.6312 GB, free: 93.93 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002624/0.7983, allocations: 108.2 kB / 0.6313 GB, free: 93.93 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002195/0.8006, allocations: 1.135 MB / 0.6325 GB, free: 93.77 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.003e-05/0.8006, allocations: 6.094 kB / 0.6325 GB, free: 93.77 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001304/0.8008, allocations: 43.94 kB / 0.6325 GB, free: 93.77 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.238e-05/0.8008, allocations: 23.47 kB / 0.6325 GB, free: 93.77 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00187/0.8027, allocations: 1.005 MB / 0.6335 GB, free: 93.75 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007198/0.8099, allocations: 4.536 MB / 0.6379 GB, free: 91.83 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002163/0.8121, allocations: 1.786 MB / 0.6397 GB, free: 90.33 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005748/0.8127, allocations: 334.8 kB / 0.64 GB, free: 90.18 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001505/0.8129, allocations: 169.8 kB / 0.6402 GB, free: 89.99 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007538/0.8136, allocations: 0.5345 MB / 0.6407 GB, free: 89.66 MB / 394.7 MB Notification: Performance of pre-optimization done (n=80): time 3.417e-06/0.8136, allocations: 0 / 0.6407 GB, free: 89.66 MB / 394.7 MB Notification: Performance of matching and sorting (n=80): time 0.003762/0.8174, allocations: 1.173 MB / 0.6418 GB, free: 89.22 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.055e-05/0.8175, allocations: 311.6 kB / 0.6421 GB, free: 88.87 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007585/0.8183, allocations: 0.5242 MB / 0.6426 GB, free: 88.61 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001006/0.8184, allocations: 41.67 kB / 0.6427 GB, free: 88.57 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002837/0.8187, allocations: 484.6 kB / 0.6431 GB, free: 88.19 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002306/0.8189, allocations: 273.1 kB / 0.6434 GB, free: 87.99 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.406e-05/0.819, allocations: 22.56 kB / 0.6434 GB, free: 87.97 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.8191, allocations: 387.4 kB / 0.6438 GB, free: 87.62 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005024/0.8196, allocations: 301.4 kB / 0.6441 GB, free: 87.5 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006028/0.8203, allocations: 0.5428 MB / 0.6446 GB, free: 87.09 MB / 394.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.01503/0.8353, allocations: 2.735 MB / 0.6473 GB, free: 86.27 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.304e-05/0.8353, allocations: 4 kB / 0.6473 GB, free: 86.26 MB / 394.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.00241/0.8378, allocations: 1.157 MB / 0.6484 GB, free: 85.2 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.64e-05/0.8379, allocations: 94.27 kB / 0.6485 GB, free: 85.09 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.967e-05/0.8379, allocations: 8 kB / 0.6485 GB, free: 85.09 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005117/0.8384, allocations: 86.62 kB / 0.6486 GB, free: 85.02 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001066/0.8395, allocations: 262 kB / 0.6488 GB, free: 84.81 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001379/0.8409, allocations: 1.552 MB / 0.6504 GB, free: 83.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001203/0.8421, allocations: 110.1 kB / 0.6505 GB, free: 83.08 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001747/0.8423, allocations: 53.75 kB / 0.6505 GB, free: 83.04 MB / 394.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $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.0003844/0.8427, allocations: 282.2 kB / 0.6508 GB, free: 82.75 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002279/0.843, allocations: 76.09 kB / 0.6509 GB, free: 82.67 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004083/0.8471, allocations: 1.454 MB / 0.6523 GB, free: 81.44 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-05/0.8471, allocations: 12 kB / 0.6523 GB, free: 81.43 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.8471, allocations: 3.938 kB / 0.6523 GB, free: 81.43 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-05/0.8471, allocations: 3.656 kB / 0.6523 GB, free: 81.43 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003748/0.8509, allocations: 2.357 MB / 0.6546 GB, free: 79.39 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.074e-06/0.8509, allocations: 4 kB / 0.6546 GB, free: 79.39 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005797/0.8515, allocations: 130.8 kB / 0.6547 GB, free: 79.28 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002148/0.8537, allocations: 0.5391 MB / 0.6552 GB, free: 78.86 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001637/0.8539, allocations: 36.72 kB / 0.6553 GB, free: 78.83 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000793/0.8547, allocations: 0.867 MB / 0.6561 GB, free: 77.97 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.8547, allocations: 4.031 kB / 0.6561 GB, free: 77.97 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002324/0.857, allocations: 1.568 MB / 0.6577 GB, free: 76.44 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005312/0.8576, allocations: 259.6 kB / 0.6579 GB, free: 76.21 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000257/0.8579, allocations: 24 kB / 0.6579 GB, free: 76.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007275/0.8586, allocations: 47.59 kB / 0.658 GB, free: 76.14 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001552/0.8588, allocations: 62.67 kB / 0.658 GB, free: 76.11 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.949e-05/0.8589, allocations: 39.73 kB / 0.6581 GB, free: 76.07 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005736/0.8595, allocations: 408.4 kB / 0.6585 GB, free: 75.7 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8595, allocations: 3.938 kB / 0.6585 GB, free: 75.7 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001352/0.8608, allocations: 402.2 kB / 0.6589 GB, free: 75.31 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.0009997/0.8618, allocations: 422.2 kB / 0.6593 GB, free: 75.03 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001834/0.8637, allocations: 1.108 MB / 0.6603 GB, free: 73.91 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.8637, allocations: 0 / 0.6603 GB, free: 73.91 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008353/0.8646, allocations: 0.6385 MB / 0.661 GB, free: 73.27 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008678/0.8654, allocations: 115.9 kB / 0.6611 GB, free: 73.18 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002677/0.8681, allocations: 1.275 MB / 0.6623 GB, free: 71.98 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004562/0.8686, allocations: 1.03 MB / 0.6633 GB, free: 71.05 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0006309/0.8693, allocations: 125.2 kB / 0.6634 GB, free: 70.97 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002868/0.8696, allocations: 86.48 kB / 0.6635 GB, free: 70.9 MB / 394.7 MB Notification: Performance of SimCode: time 1.884e-06/0.8696, allocations: 0 / 0.6635 GB, free: 70.9 MB / 394.7 MB Notification: Performance of Templates: time 0.02158/0.8912, allocations: 13.09 MB / 0.6763 GB, free: 58.58 MB / 394.7 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016 -jacobian=coloredNumerical -s=dassl -lv=LOG_STATS -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe 2>&1)