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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009422/0.0009421, allocations: 176.2 kB / 7.643 MB, free: 1.414 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.351/1.351, allocations: 221.5 MB / 229.6 MB, free: 7.582 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.000873/0.0008729, allocations: 93.39 kB / 280.5 MB, free: 5.332 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.023/0.023, allocations: 5.289 MB / 336.5 MB, free: 9.938 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009084/0.009084, allocations: 2.295 MB / 390.8 MB, free: 3.566 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.42e-05/1.423e-05, allocations: 0 / 451.9 MB, free: 47.02 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2664/0.2665, allocations: 52.2 MB / 0.4923 GB, free: 6.941 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1202/0.3867, allocations: 95.65 MB / 0.5857 GB, free: 0.8203 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002297/0.387, allocations: 67.97 kB / 0.5858 GB, free: 0.7539 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09459/0.4816, allocations: 35.42 MB / 0.6204 GB, free: 13 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.4816, allocations: 0 / 0.6204 GB, free: 13 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.511e-05/0.4817, allocations: 20 kB / 0.6204 GB, free: 12.98 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.003393/0.4851, allocations: 1.326 MB / 0.6217 GB, free: 11.59 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.4852, allocations: 12.03 kB / 0.6217 GB, free: 11.58 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001616/0.4868, allocations: 298.3 kB / 0.622 GB, free: 11.29 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00114/0.488, allocations: 0.5959 MB / 0.6226 GB, free: 10.65 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.721e-05/0.488, allocations: 36 kB / 0.6226 GB, free: 10.61 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002076/0.4882, allocations: 67.95 kB / 0.6227 GB, free: 10.55 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001881/0.4901, allocations: 0.9374 MB / 0.6236 GB, free: 9.605 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001888/0.492, allocations: 0.9608 MB / 0.6245 GB, free: 8.59 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.815e-05/0.4921, allocations: 0 / 0.6245 GB, free: 8.59 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.931e-05/0.4922, allocations: 4 kB / 0.6245 GB, free: 8.586 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.615e-05/0.4922, allocations: 28 kB / 0.6246 GB, free: 8.559 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006978/0.4992, allocations: 4.363 MB / 0.6288 GB, free: 4.008 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002292/0.5015, allocations: 1.742 MB / 0.6305 GB, free: 2.023 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005302/0.5021, allocations: 312.2 kB / 0.6308 GB, free: 1.715 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001863/0.5023, allocations: 174.8 kB / 0.631 GB, free: 1.508 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007314/0.503, allocations: 0.5135 MB / 0.6315 GB, free: 0.9492 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 3.236e-06/0.503, allocations: 0 / 0.6315 GB, free: 0.9492 MB / 410.7 MB Notification: Performance of matching and sorting (n=80): time 0.004146/0.5072, allocations: 1.092 MB / 0.6325 GB, free: 15.84 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001563/0.5074, allocations: 311.5 kB / 0.6328 GB, free: 15.47 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007388/0.5081, allocations: 494.1 kB / 0.6333 GB, free: 14.98 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.597e-05/0.5082, allocations: 33.7 kB / 0.6333 GB, free: 14.95 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003844/0.5086, allocations: 490.6 kB / 0.6338 GB, free: 14.46 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002361/0.5088, allocations: 252.4 kB / 0.6341 GB, free: 14.21 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.024e-05/0.5089, allocations: 3.938 kB / 0.6341 GB, free: 14.2 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.5091, allocations: 374.8 kB / 0.6344 GB, free: 13.83 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004815/0.5096, allocations: 290.6 kB / 0.6347 GB, free: 13.54 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006103/0.5102, allocations: 0.5042 MB / 0.6352 GB, free: 12.94 MB / 426.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.01327/0.5235, allocations: 2.524 MB / 0.6377 GB, free: 10.39 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.327e-05/0.5235, allocations: 3.984 kB / 0.6377 GB, free: 10.39 MB / 426.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002797/0.5263, allocations: 1.09 MB / 0.6387 GB, free: 9.293 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.735e-05/0.5264, allocations: 94.5 kB / 0.6388 GB, free: 9.184 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.051e-05/0.5265, allocations: 8 kB / 0.6388 GB, free: 9.176 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005624/0.527, allocations: 93.34 kB / 0.6389 GB, free: 9.082 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001133/0.5282, allocations: 255.5 kB / 0.6392 GB, free: 8.832 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001734/0.5299, allocations: 1.51 MB / 0.6406 GB, free: 7.203 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009319/0.5309, allocations: 83.09 kB / 0.6407 GB, free: 7.121 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001193/0.531, allocations: 51.97 kB / 0.6408 GB, free: 7.07 MB / 426.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.0003674/0.5314, allocations: 250.4 kB / 0.641 GB, free: 6.801 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001964/0.5316, allocations: 79.09 kB / 0.6411 GB, free: 6.723 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004432/0.536, allocations: 1.348 MB / 0.6424 GB, free: 5.355 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.037e-05/0.5361, allocations: 8 kB / 0.6424 GB, free: 5.348 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.5361, allocations: 3.984 kB / 0.6424 GB, free: 5.344 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.283e-05/0.5361, allocations: 7.922 kB / 0.6424 GB, free: 5.336 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003848/0.5399, allocations: 2.114 MB / 0.6445 GB, free: 3.164 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.633e-06/0.54, allocations: 4 kB / 0.6445 GB, free: 3.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005983/0.5406, allocations: 135.8 kB / 0.6446 GB, free: 3.027 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002244/0.5428, allocations: 0.5371 MB / 0.6451 GB, free: 2.48 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.401e-05/0.5429, allocations: 23.97 kB / 0.6451 GB, free: 2.457 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009244/0.5439, allocations: 0.8645 MB / 0.646 GB, free: 1.566 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.5439, allocations: 0 / 0.646 GB, free: 1.566 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002603/0.5465, allocations: 1.452 MB / 0.6474 GB, free: 80 kB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.2525/0.799, allocations: 246.4 kB / 0.6476 GB, free: 114.8 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001799/0.7993, allocations: 12.92 kB / 0.6477 GB, free: 114.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007114/0.8, allocations: 34.95 kB / 0.6477 GB, free: 114.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001531/0.8001, allocations: 63.62 kB / 0.6478 GB, free: 114.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.695e-05/0.8002, allocations: 37.3 kB / 0.6478 GB, free: 114.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005238/0.8008, allocations: 380.9 kB / 0.6482 GB, free: 114.7 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.8008, allocations: 1.062 kB / 0.6482 GB, free: 114.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001257/0.802, allocations: 351.6 kB / 0.6485 GB, free: 114.7 MB / 426.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.0008898/0.8029, allocations: 414.5 kB / 0.6489 GB, free: 114.6 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001705/0.8046, allocations: 1.036 MB / 0.6499 GB, free: 114.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.8047, allocations: 0 / 0.6499 GB, free: 114.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007554/0.8054, allocations: 0.6107 MB / 0.6505 GB, free: 114.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000671/0.8061, allocations: 99.88 kB / 0.6506 GB, free: 114.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002431/0.8085, allocations: 1.231 MB / 0.6518 GB, free: 113.7 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005663/0.8091, allocations: 1.034 MB / 0.6528 GB, free: 113 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005413/0.8097, allocations: 116.9 kB / 0.6529 GB, free: 113 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002538/0.8099, allocations: 82.66 kB / 0.653 GB, free: 113 MB / 426.7 MB Notification: Performance of SimCode: time 6.71e-07/0.8099, allocations: 1.219 kB / 0.653 GB, free: 113 MB / 426.7 MB Notification: Performance of Templates: time 0.0303/0.8402, allocations: 11.55 MB / 0.6643 GB, free: 112.3 MB / 426.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)