Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.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_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808") translateModel(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001625/0.001625, allocations: 174.9 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.592/1.592, allocations: 221.4 MB / 234.6 MB, free: 14.38 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.0009959/0.0009962, allocations: 92.03 kB / 285.6 MB, free: 12.97 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02512/0.02512, allocations: 5.276 MB / 341.8 MB, free: 4.801 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008065/0.008065, allocations: 2.291 MB / 396.2 MB, free: 70.44 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 3.853e-05/3.855e-05, allocations: 4 kB / 457.2 MB, free: 9.461 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4006/0.4006, allocations: 52.19 MB / 0.4974 GB, free: 41.39 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1464/0.5471, allocations: 96.31 MB / 0.5915 GB, free: 10.07 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003071/0.5475, allocations: 63.97 kB / 0.5916 GB, free: 10.01 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4363/0.9838, allocations: 35.83 MB / 0.6266 GB, free: 93.89 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.504e-06/0.9839, allocations: 0 / 0.6266 GB, free: 93.89 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.279e-05/0.9839, allocations: 21.5 kB / 0.6266 GB, free: 93.89 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.002902/0.9868, allocations: 1.332 MB / 0.6279 GB, free: 93.12 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.648e-05/0.9869, allocations: 10.78 kB / 0.6279 GB, free: 93.12 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001444/0.9883, allocations: 300.4 kB / 0.6282 GB, free: 93.05 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008804/0.9892, allocations: 0.5847 MB / 0.6287 GB, free: 92.79 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.504e-05/0.9893, allocations: 82.97 kB / 0.6288 GB, free: 92.79 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001577/0.9895, allocations: 105.9 kB / 0.6289 GB, free: 92.79 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001817/0.9913, allocations: 1.129 MB / 0.63 GB, free: 92.62 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.023e-05/0.9914, allocations: 1.031 kB / 0.63 GB, free: 92.62 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001181/0.9915, allocations: 44.88 kB / 0.6301 GB, free: 92.62 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.976e-05/0.9915, allocations: 27.44 kB / 0.6301 GB, free: 92.62 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001605/0.9931, allocations: 1.008 MB / 0.6311 GB, free: 92.61 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006095/0.9992, allocations: 4.541 MB / 0.6355 GB, free: 90.8 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002065/1.001, allocations: 1.783 MB / 0.6373 GB, free: 89.29 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004698/1.002, allocations: 339.4 kB / 0.6376 GB, free: 89.14 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001407/1.002, allocations: 176.3 kB / 0.6377 GB, free: 88.95 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007337/1.003, allocations: 0.5339 MB / 0.6383 GB, free: 88.62 MB / 394.7 MB Notification: Performance of pre-optimization done (n=80): time 2.916e-06/1.003, allocations: 4 kB / 0.6383 GB, free: 88.62 MB / 394.7 MB Notification: Performance of matching and sorting (n=80): time 0.003721/1.006, allocations: 1.169 MB / 0.6394 GB, free: 88.18 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001652/1.007, allocations: 310.4 kB / 0.6397 GB, free: 87.83 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009264/1.008, allocations: 0.5197 MB / 0.6402 GB, free: 87.57 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.69e-05/1.008, allocations: 45.55 kB / 0.6403 GB, free: 87.53 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003865/1.008, allocations: 488.6 kB / 0.6407 GB, free: 87.15 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002268/1.008, allocations: 263.9 kB / 0.641 GB, free: 86.96 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.026e-05/1.008, allocations: 21.19 kB / 0.641 GB, free: 86.94 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001498/1.009, allocations: 386 kB / 0.6414 GB, free: 86.59 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004919/1.009, allocations: 305.9 kB / 0.6417 GB, free: 86.47 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006407/1.01, allocations: 0.5423 MB / 0.6422 GB, free: 86.06 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.01442/1.024, allocations: 2.735 MB / 0.6449 GB, free: 85.41 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.206e-05/1.024, allocations: 3.969 kB / 0.6449 GB, free: 85.41 MB / 394.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.00234/1.027, allocations: 1.155 MB / 0.646 GB, free: 84.92 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.297e-05/1.027, allocations: 90.42 kB / 0.6461 GB, free: 84.83 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.778e-05/1.027, allocations: 7.5 kB / 0.6461 GB, free: 84.83 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004778/1.027, allocations: 102.7 kB / 0.6462 GB, free: 84.81 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001004/1.028, allocations: 251.6 kB / 0.6464 GB, free: 84.79 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001379/1.03, allocations: 1.56 MB / 0.6479 GB, free: 83.32 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001038/1.031, allocations: 111.7 kB / 0.6481 GB, free: 83.25 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.634e-05/1.031, allocations: 57.52 kB / 0.6481 GB, free: 83.24 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.0003571/1.031, allocations: 276.6 kB / 0.6484 GB, free: 82.98 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001336/1.031, allocations: 84.28 kB / 0.6484 GB, free: 82.94 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003908/1.035, allocations: 1.452 MB / 0.6499 GB, free: 81.73 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.816e-06/1.035, allocations: 8 kB / 0.6499 GB, free: 81.72 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/1.035, allocations: 4 kB / 0.6499 GB, free: 81.72 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.035e-05/1.035, allocations: 7.609 kB / 0.6499 GB, free: 81.71 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003202/1.038, allocations: 2.349 MB / 0.6522 GB, free: 79.69 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/1.038, allocations: 3.844 kB / 0.6522 GB, free: 79.69 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005256/1.039, allocations: 139.3 kB / 0.6523 GB, free: 79.57 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002113/1.041, allocations: 0.5375 MB / 0.6528 GB, free: 79.15 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.518e-05/1.041, allocations: 34.66 kB / 0.6529 GB, free: 79.12 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007384/1.042, allocations: 0.873 MB / 0.6537 GB, free: 78.25 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/1.042, allocations: 0 / 0.6537 GB, free: 78.25 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002089/1.044, allocations: 1.574 MB / 0.6553 GB, free: 76.72 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004368/1.044, allocations: 251 kB / 0.6555 GB, free: 76.49 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001348/1.045, allocations: 24 kB / 0.6555 GB, free: 76.46 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005842/1.045, allocations: 47.31 kB / 0.6556 GB, free: 76.43 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001545/1.045, allocations: 59.66 kB / 0.6556 GB, free: 76.39 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.108e-05/1.045, allocations: 45.36 kB / 0.6557 GB, free: 76.36 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000526/1.046, allocations: 415.3 kB / 0.6561 GB, free: 75.98 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.046, allocations: 0 / 0.6561 GB, free: 75.98 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001247/1.047, allocations: 383 kB / 0.6564 GB, free: 75.61 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 (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.0008272/1.048, allocations: 432.6 kB / 0.6568 GB, free: 75.32 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001671/1.05, allocations: 1.101 MB / 0.6579 GB, free: 74.21 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/1.05, allocations: 0 / 0.6579 GB, free: 74.21 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007458/1.051, allocations: 0.6478 MB / 0.6586 GB, free: 73.57 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007426/1.051, allocations: 116.2 kB / 0.6587 GB, free: 73.47 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002348/1.054, allocations: 1.277 MB / 0.6599 GB, free: 72.27 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003832/1.054, allocations: 1.035 MB / 0.6609 GB, free: 71.34 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005236/1.055, allocations: 113.9 kB / 0.661 GB, free: 71.27 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002263/1.055, allocations: 87.89 kB / 0.6611 GB, free: 71.2 MB / 394.7 MB Notification: Performance of SimCode: time 1.142e-06/1.055, allocations: 0 / 0.6611 GB, free: 71.2 MB / 394.7 MB Notification: Performance of Templates: time 0.02052/1.075, allocations: 13.1 MB / 0.6739 GB, free: 58.88 MB / 394.7 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.pipe 2>&1)