Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/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/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/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 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) 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 PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo) Running command: translateModel(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629") translateModel(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.0272/0.0272, allocations: 5.386 MB / 20.51 MB, free: 2.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009422/0.0009419, allocations: 112.1 kB / 22.5 MB, free: 492 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001099/0.001099, allocations: 191.4 kB / 24.59 MB, free: 0.7227 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.228/1.228, allocations: 222.9 MB / 249.4 MB, free: 8.605 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008535/0.008535, allocations: 2.319 MB / 303.1 MB, free: 6.754 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001377, allocations: 88.3 kB / 366.4 MB, free: 7.379 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1863/0.1877, allocations: 51.21 MB / 417.6 MB, free: 26.67 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629): time 0.005457/0.1932, allocations: 6.748 MB / 424.4 MB, free: 19.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003796/0.1971, allocations: 3.123 MB / 427.5 MB, free: 16.76 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005942/0.1977, allocations: 20 kB / 427.5 MB, free: 16.74 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001873/0.1996, allocations: 1.031 MB / 428.6 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001347/0.2009, allocations: 0.7651 MB / 429.3 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001145/0.2021, allocations: 489.8 kB / 429.8 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007926/0.2029, allocations: 1.277 MB / 431.1 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009654/0.2039, allocations: 0.8591 MB / 431.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003605/0.2042, allocations: 0.5058 MB / 432.4 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004767/0.2047, allocations: 0.6691 MB / 433.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001144/0.2048, allocations: 84 kB / 433.2 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005323/0.2054, allocations: 371.7 kB / 433.6 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001181/0.2055, allocations: 235 kB / 433.8 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003244/0.2058, allocations: 0.579 MB / 434.4 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009471/0.2068, allocations: 1.674 MB / 436 MB, free: 8.176 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.2068, allocations: 0 / 436 MB, free: 8.176 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.42e-07/0.2068, allocations: 0 / 436 MB, free: 8.176 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.05e-05/0.2068, allocations: 4 kB / 436 MB, free: 8.172 MB / 302.1 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.003384/0.2102, allocations: 1.767 MB / 437.8 MB, free: 6.332 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.852e-05/0.2103, allocations: 8.031 kB / 437.8 MB, free: 6.324 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001844/0.2121, allocations: 367.3 kB / 438.2 MB, free: 5.965 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001325/0.2134, allocations: 0.76 MB / 438.9 MB, free: 5.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.806e-05/0.2135, allocations: 78.06 kB / 439 MB, free: 5.082 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001264/0.2136, allocations: 111.9 kB / 439.1 MB, free: 4.973 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001751/0.2154, allocations: 1.179 MB / 440.3 MB, free: 3.734 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.613e-05/0.2154, allocations: 3.938 kB / 440.3 MB, free: 3.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.193e-05/0.2155, allocations: 44 kB / 440.3 MB, free: 3.688 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.585e-05/0.2156, allocations: 32 kB / 440.4 MB, free: 3.656 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001816/0.2174, allocations: 1.034 MB / 441.4 MB, free: 2.625 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005202/0.2226, allocations: 4.404 MB / 445.8 MB, free: 14.02 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002717/0.2253, allocations: 1.78 MB / 447.6 MB, free: 12.03 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007451/0.2261, allocations: 373.3 kB / 448 MB, free: 11.66 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001585/0.2263, allocations: 170.8 kB / 448.1 MB, free: 11.46 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009679/0.2272, allocations: 0.5552 MB / 448.7 MB, free: 10.86 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 2.495e-06/0.2273, allocations: 0 / 448.7 MB, free: 10.86 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.006189/0.2335, allocations: 1.694 MB / 450.4 MB, free: 9.121 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001436/0.2336, allocations: 293.6 kB / 450.7 MB, free: 8.773 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007302/0.2344, allocations: 0.5575 MB / 451.2 MB, free: 8.207 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.589e-05/0.2344, allocations: 41.7 kB / 451.3 MB, free: 8.16 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003689/0.2348, allocations: 486.7 kB / 451.7 MB, free: 7.676 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002225/0.235, allocations: 260.4 kB / 452 MB, free: 7.418 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003317/0.2354, allocations: 210.7 kB / 452.2 MB, free: 7.203 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.2356, allocations: 382.8 kB / 452.6 MB, free: 6.82 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007468/0.2363, allocations: 326.4 kB / 452.9 MB, free: 6.504 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000895/0.2372, allocations: 0.5677 MB / 453.5 MB, free: 5.84 MB / 318.1 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.01827/0.2555, allocations: 3.619 MB / 457.1 MB, free: 2.051 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.047e-05/0.2555, allocations: 4 kB / 457.1 MB, free: 2.047 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002513/0.2581, allocations: 1.209 MB / 458.3 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.72e-05/0.2581, allocations: 97.09 kB / 458.4 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.273e-05/0.2581, allocations: 8 kB / 458.4 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004589/0.2586, allocations: 76.8 kB / 458.5 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001106/0.2597, allocations: 263.8 kB / 458.7 MB, free: 360 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001366/0.2611, allocations: 1.471 MB / 460.2 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008628/0.262, allocations: 119.1 kB / 460.3 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.304e-05/0.2621, allocations: 51.97 kB / 460.4 MB, free: 14.58 MB / 334.1 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.0004983/0.2626, allocations: 369.3 kB / 460.7 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001458/0.2627, allocations: 83.06 kB / 460.8 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002536/0.2653, allocations: 1.253 MB / 462.1 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.766e-06/0.2653, allocations: 11.94 kB / 462.1 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.394e-06/0.2653, allocations: 0 / 462.1 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.2653, allocations: 3.984 kB / 462.1 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006365/0.2717, allocations: 2.555 MB / 464.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.2717, allocations: 0 / 464.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000576/0.2723, allocations: 139.8 kB / 464.8 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008009/0.2731, allocations: 338.2 kB / 465.1 MB, free: 9.688 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.963e-05/0.2732, allocations: 31.97 kB / 465.1 MB, free: 9.656 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001293/0.2745, allocations: 0.8857 MB / 466 MB, free: 8.738 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.2745, allocations: 4.062 kB / 466 MB, free: 8.734 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005721/0.2802, allocations: 1.923 MB / 467.9 MB, free: 6.762 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003167/0.2806, allocations: 231.9 kB / 468.2 MB, free: 6.516 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001367/0.2807, allocations: 24 kB / 468.2 MB, free: 6.492 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006694/0.2814, allocations: 67.88 kB / 468.3 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001166/0.2815, allocations: 52.58 kB / 468.3 MB, free: 6.375 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.551e-05/0.2816, allocations: 43.97 kB / 468.3 MB, free: 6.332 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000453/0.282, allocations: 390.8 kB / 468.7 MB, free: 5.953 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.282, allocations: 0 / 468.7 MB, free: 5.953 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009184/0.283, allocations: 343 kB / 469.1 MB, free: 5.617 MB / 334.1 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.0006383/0.2836, allocations: 359.2 kB / 469.4 MB, free: 5.328 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002031/0.2857, allocations: 1.161 MB / 470.6 MB, free: 4.117 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2857, allocations: 0 / 470.6 MB, free: 4.117 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009897/0.2867, allocations: 0.6558 MB / 471.2 MB, free: 3.426 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007602/0.2874, allocations: 134.2 kB / 471.4 MB, free: 3.297 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003281/0.2907, allocations: 2.257 MB / 473.6 MB, free: 1.008 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000582/0.2913, allocations: 1.019 MB / 474.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000568/0.2919, allocations: 122.4 kB / 474.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000247/0.2922, allocations: 87.31 kB / 474.8 MB, free: 15.75 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2922, allocations: 0 / 474.8 MB, free: 15.75 MB / 350.1 MB Notification: Performance of Templates: time 0.0195/0.3117, allocations: 12.14 MB / 487 MB, free: 3.68 MB / 350.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.pipe 2>&1)