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.0009508/0.0009509, allocations: 182.9 kB / 15.98 MB, free: 5.77 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.128/1.128, allocations: 222.9 MB / 239.7 MB, free: 10.98 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.001167/0.001167, allocations: 107.8 kB / 289.9 MB, free: 10.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02387/0.02387, allocations: 5.396 MB / 345.4 MB, free: 3.5 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.007864/0.007864, allocations: 2.309 MB / 399 MB, free: 68.82 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 75.89 kB / 462.4 MB, free: 5.434 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1867/0.188, allocations: 51.2 MB / 0.5016 GB, free: 40.42 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808): time 0.005823/0.1939, allocations: 6.745 MB / 0.5082 GB, free: 34.5 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003885/0.1978, allocations: 3.119 MB / 0.5112 GB, free: 31.37 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007662/0.1986, allocations: 16 kB / 0.5112 GB, free: 31.35 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001925/0.2005, allocations: 1.045 MB / 0.5122 GB, free: 30.3 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001362/0.2019, allocations: 0.7574 MB / 0.513 GB, free: 29.55 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001176/0.2031, allocations: 489.8 kB / 0.5134 GB, free: 29.07 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.000726/0.2038, allocations: 1.301 MB / 0.5147 GB, free: 27.77 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008973/0.2047, allocations: 0.8708 MB / 0.5156 GB, free: 26.87 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003359/0.205, allocations: 0.4941 MB / 0.516 GB, free: 26.37 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004947/0.2056, allocations: 0.673 MB / 0.5167 GB, free: 25.7 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001104/0.2057, allocations: 88 kB / 0.5168 GB, free: 25.61 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004944/0.2062, allocations: 363.7 kB / 0.5171 GB, free: 25.25 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001188/0.2063, allocations: 235 kB / 0.5174 GB, free: 25.02 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000322/0.2066, allocations: 0.579 MB / 0.5179 GB, free: 24.44 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009523/0.2076, allocations: 1.678 MB / 0.5196 GB, free: 22.76 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.2076, allocations: 4 kB / 0.5196 GB, free: 22.75 MB / 314.7 MB Notification: Performance of FrontEnd: time 7.51e-07/0.2076, allocations: 0 / 0.5196 GB, free: 22.75 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.498e-06/0.2076, allocations: 0 / 0.5196 GB, free: 22.75 MB / 314.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.003233/0.2109, allocations: 1.767 MB / 0.5213 GB, free: 20.91 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.93e-05/0.2109, allocations: 8.875 kB / 0.5213 GB, free: 20.91 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001828/0.2127, allocations: 375.3 kB / 0.5217 GB, free: 20.54 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001258/0.214, allocations: 0.756 MB / 0.5224 GB, free: 19.74 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.429e-05/0.2141, allocations: 82.06 kB / 0.5225 GB, free: 19.66 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001185/0.2142, allocations: 111.9 kB / 0.5226 GB, free: 19.55 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001557/0.2157, allocations: 1.172 MB / 0.5237 GB, free: 18.32 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.412e-05/0.2158, allocations: 8 kB / 0.5237 GB, free: 18.31 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.228e-05/0.2159, allocations: 47.98 kB / 0.5238 GB, free: 18.26 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.396e-05/0.2159, allocations: 24 kB / 0.5238 GB, free: 18.24 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001757/0.2176, allocations: 1.038 MB / 0.5248 GB, free: 17.2 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004528/0.2222, allocations: 4.392 MB / 0.5291 GB, free: 12.61 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002767/0.225, allocations: 1.775 MB / 0.5308 GB, free: 10.62 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007452/0.2257, allocations: 369.3 kB / 0.5312 GB, free: 10.26 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000118/0.2259, allocations: 170.8 kB / 0.5314 GB, free: 10.05 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008901/0.2268, allocations: 0.5514 MB / 0.5319 GB, free: 9.461 MB / 314.7 MB Notification: Performance of pre-optimization done (n=79): time 2.254e-06/0.2268, allocations: 0 / 0.5319 GB, free: 9.461 MB / 314.7 MB Notification: Performance of matching and sorting (n=79): time 0.005877/0.2327, allocations: 1.713 MB / 0.5336 GB, free: 7.699 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.641e-05/0.2327, allocations: 277.6 kB / 0.5338 GB, free: 7.367 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004586/0.2332, allocations: 0.5613 MB / 0.5344 GB, free: 6.797 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.935e-05/0.2332, allocations: 41.7 kB / 0.5344 GB, free: 6.75 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001739/0.2334, allocations: 486.7 kB / 0.5349 GB, free: 6.266 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001197/0.2335, allocations: 256.4 kB / 0.5351 GB, free: 6.012 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002354/0.2338, allocations: 210.7 kB / 0.5353 GB, free: 5.797 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.944e-05/0.2339, allocations: 390.7 kB / 0.5357 GB, free: 5.406 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006222/0.2345, allocations: 322.4 kB / 0.536 GB, free: 5.094 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006918/0.2352, allocations: 0.5677 MB / 0.5366 GB, free: 4.43 MB / 314.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.01575/0.2509, allocations: 3.627 MB / 0.5401 GB, free: 0.6328 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.251, allocations: 7.938 kB / 0.5401 GB, free: 0.625 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002111/0.2531, allocations: 1.209 MB / 0.5413 GB, free: 15.39 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.172e-05/0.2531, allocations: 97.09 kB / 0.5414 GB, free: 15.27 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.2532, allocations: 8 kB / 0.5414 GB, free: 15.27 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004192/0.2536, allocations: 85.03 kB / 0.5415 GB, free: 15.18 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001/0.2546, allocations: 251.6 kB / 0.5417 GB, free: 14.93 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001224/0.2558, allocations: 1.475 MB / 0.5432 GB, free: 13.32 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000748/0.2566, allocations: 123 kB / 0.5433 GB, free: 13.2 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.344e-05/0.2567, allocations: 51.97 kB / 0.5433 GB, free: 13.15 MB / 330.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $PRE.irradiance.daysOfYear = PhotoVoltaics.Functions.dayOfTheYear(31, 12, irradiance.startYear). Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 27 (writeCSV.firstTrigger,$PRE.writeCSV.firstTrigger,irradiance.year,$PRE.irradiance.year,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,writeCSV.sampleTrigger,$whenCondition4,mpTracker.sampleTrigger,$whenCondition1,irradiance.localDays,irradiance.daysOfYear,$PRE.irradiance.daysOfYear,irradiance.dayOfYear,$PRE.irradiance.dayOfYear,irradiance.startDayOfYear,$PRE.irradiance.startDayOfYear,mpTracker.vRef,$PRE.mpTracker.vRef,$whenCondition3,$whenCondition2,integrator.local_reset,converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000385/0.2571, allocations: 361.3 kB / 0.5437 GB, free: 12.77 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001233/0.2572, allocations: 79.06 kB / 0.5437 GB, free: 12.69 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00232/0.2595, allocations: 1.261 MB / 0.545 GB, free: 11.4 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.211e-05/0.2596, allocations: 15.92 kB / 0.545 GB, free: 11.39 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-06/0.2596, allocations: 0 / 0.545 GB, free: 11.39 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.2596, allocations: 3.984 kB / 0.545 GB, free: 11.38 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005839/0.2654, allocations: 2.551 MB / 0.5475 GB, free: 8.746 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.2654, allocations: 3.984 kB / 0.5475 GB, free: 8.742 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005316/0.266, allocations: 131.8 kB / 0.5476 GB, free: 8.613 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007123/0.2667, allocations: 334.2 kB / 0.5479 GB, free: 8.277 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.208e-05/0.2668, allocations: 31.97 kB / 0.548 GB, free: 8.246 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001122/0.2679, allocations: 0.8896 MB / 0.5488 GB, free: 7.324 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.2679, allocations: 0 / 0.5488 GB, free: 7.324 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01895/0.2869, allocations: 8.247 MB / 0.5569 GB, free: 14.84 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002668/0.2872, allocations: 235.9 kB / 0.5571 GB, free: 14.59 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001119/0.2873, allocations: 31.92 kB / 0.5571 GB, free: 14.56 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006084/0.2879, allocations: 51.97 kB / 0.5572 GB, free: 14.51 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001168/0.288, allocations: 68.44 kB / 0.5573 GB, free: 14.45 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.271e-05/0.2881, allocations: 35.97 kB / 0.5573 GB, free: 14.41 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003893/0.2885, allocations: 386.8 kB / 0.5577 GB, free: 14.04 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2885, allocations: 0 / 0.5577 GB, free: 14.04 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001068/0.2896, allocations: 462.9 kB / 0.5581 GB, free: 13.58 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (converter.integrator.y,integrator.y,voltageSource.pin_p.reference.gamma) * 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005908/0.2902, allocations: 351.5 kB / 0.5584 GB, free: 13.31 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001851/0.292, allocations: 1.151 MB / 0.5596 GB, free: 12.11 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.292, allocations: 4.062 kB / 0.5596 GB, free: 12.11 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009484/0.293, allocations: 0.662 MB / 0.5602 GB, free: 11.41 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007113/0.2937, allocations: 142.3 kB / 0.5603 GB, free: 11.27 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003332/0.2971, allocations: 2.897 MB / 0.5632 GB, free: 8.301 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004594/0.2975, allocations: 1.046 MB / 0.5642 GB, free: 7.223 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005909/0.2981, allocations: 150.4 kB / 0.5643 GB, free: 7.07 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003023/0.2984, allocations: 99.34 kB / 0.5644 GB, free: 6.973 MB / 346.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2984, allocations: 4 kB / 0.5644 GB, free: 6.969 MB / 346.7 MB Notification: Performance of Templates: time 0.02089/0.3193, allocations: 15.79 MB / 0.5799 GB, free: 7.246 MB / 362.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)