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/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_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/PhotoVoltaics 2.0.0/package.mo): time 0.0427/0.0427, allocations: 5.404 MB / 21.66 MB, free: 1.203 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.001177/0.001177, allocations: 104.2 kB / 23.65 MB, free: 0.7812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001095/0.001095, allocations: 197.5 kB / 25.78 MB, free: 4.531 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.279/1.279, allocations: 222.9 MB / 250.7 MB, free: 8.469 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009273/0.009273, allocations: 2.319 MB / 304.3 MB, free: 6.539 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001759/0.00176, allocations: 87.86 kB / 368.6 MB, free: 6.195 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2776/0.2794, allocations: 51.21 MB / 419.8 MB, free: 26.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808): time 0.006682/0.2861, allocations: 6.771 MB / 426.6 MB, free: 19.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004308/0.2904, allocations: 3.131 MB / 429.7 MB, free: 16.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009536/0.2914, allocations: 19.94 kB / 429.7 MB, free: 16.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002683/0.2941, allocations: 1.1 MB / 430.8 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001922/0.296, allocations: 0.834 MB / 431.7 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001551/0.2976, allocations: 0.5417 MB / 432.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00144/0.299, allocations: 1.387 MB / 433.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001409/0.3005, allocations: 1.02 MB / 434.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000744/0.3012, allocations: 0.5566 MB / 435.2 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008787/0.3021, allocations: 0.716 MB / 435.9 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002606/0.3024, allocations: 140 kB / 436 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008218/0.3032, allocations: 443.7 kB / 436.5 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002087/0.3034, allocations: 295 kB / 436.8 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005842/0.304, allocations: 0.6298 MB / 437.4 MB, free: 8.676 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00159/0.3056, allocations: 1.745 MB / 439.1 MB, free: 6.926 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.3056, allocations: 0 / 439.1 MB, free: 6.926 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.3057, allocations: 0 / 439.1 MB, free: 6.926 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.029e-05/0.3057, allocations: 0 / 439.1 MB, free: 6.926 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.004359/0.3101, allocations: 1.773 MB / 440.9 MB, free: 5.082 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.447e-05/0.3101, allocations: 8.031 kB / 440.9 MB, free: 5.074 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002043/0.3122, allocations: 375.2 kB / 441.3 MB, free: 4.707 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001618/0.3138, allocations: 0.7639 MB / 442 MB, free: 3.898 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.489e-05/0.3138, allocations: 82.06 kB / 442.1 MB, free: 3.816 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001522/0.314, allocations: 107.9 kB / 442.2 MB, free: 3.711 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001875/0.3159, allocations: 1.175 MB / 443.4 MB, free: 2.477 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.986e-05/0.3159, allocations: 7.938 kB / 443.4 MB, free: 2.469 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.214e-05/0.316, allocations: 48 kB / 443.5 MB, free: 2.422 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.683e-05/0.3161, allocations: 28 kB / 443.5 MB, free: 2.395 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001976/0.318, allocations: 1.03 MB / 444.5 MB, free: 1.363 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005932/0.324, allocations: 4.372 MB / 448.9 MB, free: 12.79 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002841/0.3268, allocations: 1.765 MB / 450.7 MB, free: 10.82 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007704/0.3276, allocations: 366 kB / 451 MB, free: 10.46 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001633/0.3278, allocations: 182.7 kB / 451.2 MB, free: 10.24 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009773/0.3288, allocations: 0.5475 MB / 451.7 MB, free: 9.656 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 5.631e-06/0.3288, allocations: 4 kB / 451.7 MB, free: 9.652 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.006187/0.335, allocations: 1.709 MB / 453.5 MB, free: 7.895 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001419/0.3352, allocations: 277.7 kB / 453.7 MB, free: 7.562 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007617/0.3359, allocations: 0.5536 MB / 454.3 MB, free: 7 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.07e-05/0.336, allocations: 41.7 kB / 454.3 MB, free: 6.953 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003657/0.3364, allocations: 494.6 kB / 454.8 MB, free: 6.461 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002294/0.3366, allocations: 264.4 kB / 455.1 MB, free: 6.199 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003641/0.337, allocations: 206.7 kB / 455.3 MB, free: 5.988 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.3372, allocations: 382.8 kB / 455.6 MB, free: 5.605 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007868/0.338, allocations: 326.4 kB / 456 MB, free: 5.289 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009477/0.3389, allocations: 0.5682 MB / 456.5 MB, free: 4.625 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.01825/0.3572, allocations: 3.631 MB / 460.2 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.407e-06/0.3572, allocations: 0 / 460.2 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002756/0.36, allocations: 1.209 MB / 461.4 MB, free: 15.59 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.383e-05/0.3601, allocations: 89.09 kB / 461.4 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.528e-05/0.3601, allocations: 8 kB / 461.5 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004777/0.3606, allocations: 89.03 kB / 461.5 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001149/0.3617, allocations: 255.5 kB / 461.8 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001574/0.3633, allocations: 1.581 MB / 463.4 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009386/0.3643, allocations: 111 kB / 463.5 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.743e-05/0.3644, allocations: 51.95 kB / 463.5 MB, free: 13.25 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.0005399/0.3649, allocations: 373.4 kB / 463.9 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001472/0.3651, allocations: 79.06 kB / 464 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002567/0.3677, allocations: 1.261 MB / 465.2 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.637e-06/0.3677, allocations: 12 kB / 465.2 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-06/0.3677, allocations: 4 kB / 465.2 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.05e-05/0.3677, allocations: 3.984 kB / 465.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00645/0.3742, allocations: 2.543 MB / 467.8 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.416e-06/0.3742, allocations: 4 kB / 467.8 MB, free: 8.828 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006129/0.3748, allocations: 131.8 kB / 467.9 MB, free: 8.699 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007973/0.3756, allocations: 342.2 kB / 468.3 MB, free: 8.355 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.502e-05/0.3757, allocations: 35.97 kB / 468.3 MB, free: 8.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001322/0.3771, allocations: 0.8819 MB / 469.2 MB, free: 7.406 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.3771, allocations: 3.938 kB / 469.2 MB, free: 7.402 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005868/0.3829, allocations: 1.924 MB / 471.1 MB, free: 5.434 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004413/0.3834, allocations: 235.8 kB / 471.3 MB, free: 5.184 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000143/0.3836, allocations: 32 kB / 471.4 MB, free: 5.152 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006648/0.3842, allocations: 47.95 kB / 471.4 MB, free: 5.105 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001593/0.3844, allocations: 60.58 kB / 471.5 MB, free: 5.047 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.325e-05/0.3845, allocations: 35.97 kB / 471.5 MB, free: 5.012 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005129/0.385, allocations: 394.8 kB / 471.9 MB, free: 4.625 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.385, allocations: 0 / 471.9 MB, free: 4.625 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001022/0.386, allocations: 347 kB / 472.2 MB, free: 4.285 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.0007411/0.3868, allocations: 366.2 kB / 472.6 MB, free: 3.992 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002319/0.3891, allocations: 1.157 MB / 473.8 MB, free: 2.785 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.3891, allocations: 0 / 473.8 MB, free: 2.785 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001103/0.3902, allocations: 0.6595 MB / 474.4 MB, free: 2.086 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007934/0.3911, allocations: 142.1 kB / 474.5 MB, free: 1.949 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003676/0.3947, allocations: 1.773 MB / 476.3 MB, free: 148 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007139/0.3955, allocations: 1.014 MB / 477.3 MB, free: 15.1 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005226/0.396, allocations: 126.4 kB / 477.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002579/0.3963, allocations: 87.38 kB / 477.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3963, allocations: 0 / 477.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of Templates: time 0.02252/0.4188, allocations: 12.75 MB / 490.3 MB, free: 2.211 MB / 350.1 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 -s cvode -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.pipe 2>&1)